Explorar el Código

Add basic lua sampleù

Daniele Bartolini hace 12 años
padre
commit
5a57e5ad96
Se han modificado 2 ficheros con 14 adiciones y 0 borrados
  1. 10 0
      samples/01.hello-world/lua/game.lua
  2. 4 0
      samples/CMakeLists.txt

+ 10 - 0
samples/01.hello-world/lua/game.lua

@@ -0,0 +1,10 @@
+function init()
+	-- Set the title of the main window
+	Window.set_title("Hello world!")
+end
+
+function frame(dt)
+end
+
+function shutdown()
+end

+ 4 - 0
samples/CMakeLists.txt

@@ -44,3 +44,7 @@ include_directories(${CROWN_INCLUDES})
 link_directories(${CROWN_BINARY_DIR} ${CROWN_THIRD_LIBS})
 
 add_subdirectory(terrain)
+
+# Install samples
+install (DIRECTORY 01.hello-world DESTINATION samples)
+