Browse Source

Add BAT and SH file for Lua Sample.

Aster Jian 12 years ago
parent
commit
e97a4f6407

+ 1 - 0
Bin/01_LuaHelloWorld.bat

@@ -0,0 +1 @@
+Urho3D.exe Data/LuaScripts/01_HelloWorld.lua %*

+ 1 - 0
Bin/01_LuaHelloWorld.sh

@@ -0,0 +1 @@
+$( dirname $0 )/Urho3D LuaScripts/01_HelloWorld.lua $@

+ 1 - 1
Bin/Data/LuaScripts/TestScene.lua

@@ -92,7 +92,7 @@ function InitScene()
     -- Create the camera outside the scene so it is unaffected by scene load/save
     -- Create the camera outside the scene so it is unaffected by scene load/save
     cameraNode = Node(context)
     cameraNode = Node(context)
     camera = cameraNode:CreateCamera()
     camera = cameraNode:CreateCamera()
-    cameraNode:SetPosition(Vector3(0, 2, 0))
+    cameraNode.position = Vector3(0, 2, 0)
 
 
     if not engine:IsHeadless() then
     if not engine:IsHeadless() then
         renderer:SetViewport(0, Viewport:new(context, testScene, camera))
         renderer:SetViewport(0, Viewport:new(context, testScene, camera))

+ 1 - 0
Bin/LuaSpriteTest.bat

@@ -0,0 +1 @@
+Urho3D.exe LuaScripts/SpriteTest.lua %*

+ 1 - 0
Bin/LuaSpriteTest.sh

@@ -0,0 +1 @@
+$( dirname $0 )/Urho3D LuaScripts/SpriteTest.lua $@

+ 1 - 0
Bin/LuaTestScene.bat

@@ -0,0 +1 @@
+Urho3D.exe LuaScripts/TestScene.lua %*

+ 1 - 0
Bin/LuaTestScene.sh

@@ -0,0 +1 @@
+$( dirname $0 )/Urho3D LuaScripts/TestScene.lua $@