diff --git a/samples/transform-pin/moai.png b/samples/transform-pin/moai.png deleted file mode 100644 index 8a9974bd65..0000000000 Binary files a/samples/transform-pin/moai.png and /dev/null differ diff --git a/samples/transform-pin/run.bat b/samples/transform-pin/run.bat deleted file mode 100644 index d5fad5e750..0000000000 --- a/samples/transform-pin/run.bat +++ /dev/null @@ -1,24 +0,0 @@ -::----------------------------------------------------------------:: -:: Copyright (c) 2010-2017 Zipline Games, Inc. -:: All Rights Reserved. -:: http://getmoai.com -::----------------------------------------------------------------:: - -@echo off - -:: verify paths -if not exist "%MOAI_BIN%\moai.exe" ( - echo. - echo -------------------------------------------------------------------------------- - echo ERROR: The MOAI_BIN environment variable either doesn't exist or it's pointing - echo to an invalid path. Please point it at a folder containing moai.exe. - echo -------------------------------------------------------------------------------- - echo. - goto end -) - -:: run moai -"%MOAI_BIN%\moai" "main.lua" - -:end -pause \ No newline at end of file diff --git a/samples/transform-pin/run.sh b/samples/transform-pin/run.sh deleted file mode 100755 index 612def2f86..0000000000 --- a/samples/transform-pin/run.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -#-------------------------------------------------------------------------------------- -# Copyright (c) 2010-2013 Zipline Games, Inc. -# All Rights Reserved. -# http://getmoai.com -#-------------------------------------------------------------------------------------- - -cd `dirname $0` - -# Verify paths -if [ ! -f "$MOAI_BIN/moai" ]; then - echo "---------------------------------------------------------------------------" - echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" - echo "invalid path. Please point it at a folder containing moai executable" - echo "---------------------------------------------------------------------------" - exit 1 -fi - -# Run moai -$MOAI_BIN/moai main.lua diff --git a/src/moai-sim/MOAICamera.cpp b/src/moai-sim/MOAICamera.cpp index 2b6545c04a..728b51d55e 100644 --- a/src/moai-sim/MOAICamera.cpp +++ b/src/moai-sim/MOAICamera.cpp @@ -415,7 +415,7 @@ ZLMatrix4x4 MOAICamera::GetProjMtx ( const MOAIViewport& viewport ) const { float xScale = ( 2.0f / viewport.Width ()) * viewScale.mX; float yScale = ( 2.0f / viewport.Height ()) * viewScale.mY; - mtx.Scale ( xScale, yScale, 0.0 ); + mtx.Scale ( xScale, yScale, -1.0 ); // Z must be non-zero to produce invertible projection matrix } } } diff --git a/src/moai-sim/MOAIViewport.cpp b/src/moai-sim/MOAIViewport.cpp index 27d2faad40..841ae76a38 100644 --- a/src/moai-sim/MOAIViewport.cpp +++ b/src/moai-sim/MOAIViewport.cpp @@ -200,7 +200,7 @@ ZLMatrix4x4 MOAIViewport::GetProjMtx () const { float xScale = ( 2.0f / rect.Width ()) * viewScale.mX; float yScale = ( 2.0f / rect.Height ()) * viewScale.mY; - mtx.Scale ( xScale, yScale, -1.0f ); + mtx.Scale ( xScale, yScale, -1.0f ); // Z must be non-zero to produce invertible projection matrix proj.Append ( mtx ); // offset