diff options
Diffstat (limited to 'src/libjin-lua/embed')
-rw-r--r-- | src/libjin-lua/embed/ai.lua.h | 10 | ||||
-rw-r--r-- | src/libjin-lua/embed/app.lua.h | 208 | ||||
-rw-r--r-- | src/libjin-lua/embed/clear.bat | 3 | ||||
-rw-r--r-- | src/libjin-lua/embed/graphics.lua.h | 161 | ||||
-rw-r--r-- | src/libjin-lua/embed/je_lua_embed.h | 69 | ||||
-rw-r--r-- | src/libjin-lua/embed/keyboard.lua.h | 14 | ||||
-rw-r--r-- | src/libjin-lua/embed/mouse.lua.h | 14 | ||||
-rw-r--r-- | src/libjin-lua/embed/net.lua.h | 7 | ||||
-rw-r--r-- | src/libjin-lua/embed/path.lua.h | 14 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/ai/ai.lua | 8 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/ai/state_machine.lua | 7 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/app.lua | 137 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/graphics/graphics.lua | 162 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/keyboard/keyboard.lua | 12 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/mouse/mouse.lua | 12 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/net/net.lua | 4 | ||||
-rw-r--r-- | src/libjin-lua/embed/scripts/path/path.lua | 10 | ||||
-rw-r--r-- | src/libjin-lua/embed/state_machine.lua.h | 9 |
18 files changed, 0 insertions, 861 deletions
diff --git a/src/libjin-lua/embed/ai.lua.h b/src/libjin-lua/embed/ai.lua.h deleted file mode 100644 index b1dc681..0000000 --- a/src/libjin-lua/embed/ai.lua.h +++ /dev/null @@ -1,10 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char ai_lua[] = { -106,105,110,46,97,105,32,61,32,106,105,110,46,97,105,32,111,114,32,123, -125,32,13,10,13,10,108,111,99,97,108,32,106,97,32,61,32,106,105,110, -46,97,105,13,10,13,10,106,97,46,83,116,97,116,101,77,97,99,104,105, -110,101,84,121,112,101,32,61,32,123,13,10,32,32,32,32,83,84,69,80, -87,73,83,69,32,61,32,49,44,32,13,10,32,32,32,32,73,84,69,82, -65,84,73,86,69,32,61,32,50,44,13,10,125,13,10 -}; - diff --git a/src/libjin-lua/embed/app.lua.h b/src/libjin-lua/embed/app.lua.h deleted file mode 100644 index 3e2a7bb..0000000 --- a/src/libjin-lua/embed/app.lua.h +++ /dev/null @@ -1,208 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char app_lua[] = { -13,10,106,105,110,46,102,105,108,101,115,121,115,116,101,109,46,105,110,105, -116,40,41,13,10,106,105,110,46,102,105,108,101,115,121,115,116,101,109,46, -109,111,117,110,116,40,106,105,110,46,99,119,100,41,13,10,13,10,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,13,10,45,45,32,67,111,110,102, -105,103,32,103,97,109,101,13,10,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,13,10,13,10,106,105,110,46,99,111,110,102,105,103,32,32,61,32, -123,125,32,13,10,105,102,32,106,105,110,46,102,105,108,101,115,121,115,116, -101,109,46,101,120,105,115,116,40,34,99,111,110,102,105,103,46,108,117,97, -34,41,32,116,104,101,110,32,13,10,32,32,32,32,120,112,99,97,108,108, -40,102,117,110,99,116,105,111,110,40,41,106,105,110,46,99,111,110,102,105, -103,32,61,32,114,101,113,117,105,114,101,32,34,99,111,110,102,105,103,34, -32,101,110,100,44,32,102,117,110,99,116,105,111,110,40,41,101,110,100,41, -32,32,32,32,13,10,101,110,100,13,10,106,105,110,46,99,111,110,102,105, -103,46,119,105,100,116,104,32,32,32,32,32,32,61,32,106,105,110,46,99, -111,110,102,105,103,46,119,105,100,116,104,32,32,32,32,32,32,111,114,32, -53,56,48,32,13,10,106,105,110,46,99,111,110,102,105,103,46,104,101,105, -103,104,116,32,32,32,32,32,61,32,106,105,110,46,99,111,110,102,105,103, -46,104,101,105,103,104,116,32,32,32,32,32,111,114,32,52,53,48,32,13, -10,106,105,110,46,99,111,110,102,105,103,46,118,115,121,110,99,32,32,32, -32,32,32,61,32,106,105,110,46,99,111,110,102,105,103,46,118,115,121,110, -99,32,32,32,32,32,32,111,114,32,116,114,117,101,13,10,106,105,110,46, -99,111,110,102,105,103,46,116,105,116,108,101,32,32,32,32,32,32,61,32, -106,105,110,46,99,111,110,102,105,103,46,116,105,116,108,101,32,32,32,32, -32,32,111,114,32,40,34,106,105,110,32,118,34,32,46,46,32,106,105,110, -46,118,101,114,115,105,111,110,41,13,10,106,105,110,46,99,111,110,102,105, -103,46,114,101,115,105,122,97,98,108,101,32,32,61,32,106,105,110,46,99, -111,110,102,105,103,46,114,101,115,105,122,97,98,108,101,32,32,111,114,32, -102,97,108,115,101,32,13,10,106,105,110,46,99,111,110,102,105,103,46,102, -117,108,108,115,99,114,101,101,110,32,61,32,106,105,110,46,99,111,110,102, -105,103,46,102,117,108,108,115,99,114,101,101,110,32,111,114,32,102,97,108, -115,101,13,10,106,105,110,46,99,111,110,102,105,103,46,102,112,115,32,32, -32,32,32,32,32,32,61,32,106,105,110,46,99,111,110,102,105,103,46,102, -112,115,32,32,32,32,32,32,32,32,111,114,32,54,48,13,10,106,105,110, -46,99,111,110,102,105,103,46,105,99,111,110,32,32,32,32,32,32,32,61, -32,106,105,110,46,99,111,110,102,105,103,46,105,99,111,110,32,32,32,32, -32,32,32,111,114,32,34,34,13,10,13,10,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,13,10,45,45,32,68,101,102,97,117,108,116,32,103,97, -109,101,32,108,111,111,112,13,10,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,13,10,13,10,108,111,99,97,108,32,102,117,110,99,116,105,111,110, -32,99,97,108,108,40,102,117,110,99,44,32,46,46,46,41,13,10,32,32, -32,32,105,102,32,102,117,110,99,32,116,104,101,110,32,13,10,32,32,32, -32,32,32,32,32,114,101,116,117,114,110,32,102,117,110,99,40,46,46,46, -41,13,10,32,32,32,32,101,110,100,13,10,101,110,100,13,10,13,10,108, -111,99,97,108,32,115,116,101,112,32,61,32,106,105,110,46,116,105,109,101, -46,115,116,101,112,13,10,106,105,110,46,116,105,109,101,46,115,116,101,112, -32,61,32,110,105,108,13,10,13,10,102,117,110,99,116,105,111,110,32,106, -105,110,46,99,111,114,101,46,114,117,110,40,41,13,10,32,32,32,32,106, -105,110,46,103,114,97,112,104,105,99,115,46,114,101,115,101,116,40,41,13, -10,32,32,32,32,99,97,108,108,40,106,105,110,46,99,111,114,101,46,111, -110,76,111,97,100,41,13,10,32,32,32,32,108,111,99,97,108,32,100,116, -32,61,32,48,13,10,32,32,32,32,119,104,105,108,101,32,106,105,110,46, -99,111,114,101,46,114,117,110,110,105,110,103,40,41,32,100,111,13,10,32, -32,32,32,32,32,32,32,102,111,114,32,95,44,32,101,32,105,110,32,112, -97,105,114,115,40,106,105,110,46,101,118,101,110,116,46,112,111,108,108,40, -41,41,32,100,111,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32, -105,102,32,101,46,116,121,112,101,32,61,61,32,34,75,101,121,68,111,119, -110,34,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,32,32, -32,32,32,32,32,32,106,105,110,46,107,101,121,98,111,97,114,100,46,115, -101,116,40,101,46,107,101,121,44,32,116,114,117,101,41,32,13,10,32,32, -32,32,32,32,32,32,32,32,32,32,101,108,115,101,105,102,32,101,46,116, -121,112,101,32,61,61,32,34,75,101,121,85,112,34,32,116,104,101,110,32, -13,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,106,105, -110,46,107,101,121,98,111,97,114,100,46,115,101,116,40,101,46,107,101,121, -44,32,102,97,108,115,101,41,13,10,32,32,32,32,32,32,32,32,32,32, -32,32,101,110,100,13,10,32,32,32,32,32,32,32,32,32,32,32,32,99, -97,108,108,40,106,105,110,46,99,111,114,101,46,111,110,69,118,101,110,116, -44,32,101,41,13,10,32,32,32,32,32,32,32,32,101,110,100,13,10,32, -32,32,32,32,32,32,32,115,116,101,112,40,41,13,10,32,32,32,32,32, -32,32,32,100,116,32,61,32,106,105,110,46,116,105,109,101,46,103,101,116, -68,101,108,116,97,40,41,13,10,32,32,32,32,32,32,32,32,99,97,108, -108,40,106,105,110,46,99,111,114,101,46,111,110,85,112,100,97,116,101,44, -32,100,116,41,13,10,32,32,32,32,32,32,32,32,106,105,110,46,103,114, -97,112,104,105,99,115,46,99,108,101,97,114,40,41,32,32,32,32,32,32, -32,32,13,10,32,32,32,32,32,32,32,32,99,97,108,108,40,106,105,110, -46,99,111,114,101,46,111,110,68,114,97,119,41,13,10,32,32,32,32,32, -32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,112,114,101,115, -101,110,116,40,41,13,10,32,32,32,32,32,32,32,32,106,105,110,46,116, -105,109,101,46,115,108,101,101,112,40,48,46,48,48,49,41,13,10,32,32, -32,32,101,110,100,13,10,101,110,100,13,10,13,10,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,13,10,45,45,32,66,111,111,116,32,103,97,109, -101,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,13,10, -45,45,32,68,105,115,112,108,97,121,32,101,114,114,111,114,32,109,101,115, -115,97,103,101,46,13,10,108,111,99,97,108,32,102,117,110,99,116,105,111, -110,32,111,110,69,114,114,111,114,40,109,115,103,41,32,13,10,32,32,32, -32,106,105,110,46,97,117,100,105,111,46,100,101,115,116,114,111,121,40,41, -13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,115, -104,111,119,87,105,110,100,111,119,40,41,13,10,32,32,32,32,108,111,99, -97,108,32,101,114,114,32,61,32,34,69,114,114,111,114,58,92,110,34,32, -46,46,32,109,115,103,32,46,46,32,34,92,110,34,32,46,46,32,100,101, -98,117,103,46,116,114,97,99,101,98,97,99,107,40,41,13,10,32,32,32, -32,106,105,110,46,103,114,97,112,104,105,99,115,46,114,101,115,101,116,40, -41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46, -115,101,116,67,108,101,97,114,67,111,108,111,114,40,49,48,48,44,32,49, -48,48,44,32,49,48,48,44,32,50,53,53,41,13,10,32,32,32,32,106, -105,110,46,103,114,97,112,104,105,99,115,46,99,108,101,97,114,40,41,13, -10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,112,114, -105,110,116,40,101,114,114,44,32,53,44,32,53,41,13,10,32,32,32,32, -106,105,110,46,103,114,97,112,104,105,99,115,46,112,114,101,115,101,110,116, -40,41,13,10,32,32,32,32,119,104,105,108,101,32,106,105,110,46,99,111, -114,101,46,114,117,110,110,105,110,103,40,41,32,100,111,32,13,10,32,32, -32,32,32,32,32,32,102,111,114,32,95,44,32,101,32,105,110,32,112,97, -105,114,115,40,106,105,110,46,101,118,101,110,116,46,112,111,108,108,40,41, -41,32,100,111,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,105, -102,32,101,46,116,121,112,101,32,61,61,32,34,81,117,105,116,34,32,116, -104,101,110,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32, -32,32,106,105,110,46,99,111,114,101,46,115,116,111,112,40,41,13,10,32, -32,32,32,32,32,32,32,32,32,32,32,101,110,100,13,10,32,32,32,32, -32,32,32,32,101,110,100,13,10,32,32,32,32,32,32,32,32,106,105,110, -46,116,105,109,101,46,115,108,101,101,112,40,48,46,48,48,49,41,13,10, -32,32,32,32,101,110,100,13,10,101,110,100,13,10,13,10,45,45,32,78, -111,32,103,97,109,101,32,115,99,114,101,101,110,46,13,10,108,111,99,97, -108,32,102,117,110,99,116,105,111,110,32,110,111,71,97,109,101,40,41,13, -10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,115,104, -111,119,87,105,110,100,111,119,40,41,13,10,32,32,32,32,106,105,110,46, -103,114,97,112,104,105,99,115,46,114,101,115,101,116,40,41,13,10,32,32, -32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,115,101,116,67,108, -101,97,114,67,111,108,111,114,40,49,48,48,44,32,49,48,48,44,32,49, -48,48,44,32,50,53,53,41,13,10,32,32,32,32,106,105,110,46,103,114, -97,112,104,105,99,115,46,99,108,101,97,114,40,41,13,10,32,32,32,32, -106,105,110,46,103,114,97,112,104,105,99,115,46,112,114,105,110,116,40,34, -78,111,32,71,97,109,101,34,44,32,53,44,32,53,41,32,13,10,32,32, -32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,112,114,101,115,101, -110,116,40,41,13,10,32,32,32,32,119,104,105,108,101,32,106,105,110,46, -99,111,114,101,46,114,117,110,110,105,110,103,40,41,32,100,111,32,13,10, -32,32,32,32,32,32,32,32,102,111,114,32,95,44,32,101,32,105,110,32, -112,97,105,114,115,40,106,105,110,46,101,118,101,110,116,46,112,111,108,108, -40,41,41,32,100,111,32,13,10,32,32,32,32,32,32,32,32,32,32,32, -32,105,102,32,101,46,116,121,112,101,32,61,61,32,34,81,117,105,116,34, -32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32, -32,32,32,32,106,105,110,46,99,111,114,101,46,115,116,111,112,40,41,13, -10,32,32,32,32,32,32,32,32,32,32,32,32,101,110,100,13,10,32,32, -32,32,32,32,32,32,101,110,100,13,10,32,32,32,32,32,32,32,32,106, -105,110,46,116,105,109,101,46,115,108,101,101,112,40,48,46,48,48,49,41, -13,10,32,32,32,32,101,110,100,13,10,101,110,100,13,10,13,10,108,111, -99,97,108,32,102,117,110,99,116,105,111,110,32,98,111,111,116,40,41,32, -13,10,32,32,32,32,105,102,32,106,105,110,46,102,105,108,101,115,121,115, -116,101,109,46,101,120,105,115,116,40,34,109,97,105,110,46,108,117,97,34, -41,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,99,97,108, -108,40,102,117,110,99,116,105,111,110,40,41,32,13,10,32,32,32,32,32, -32,32,32,32,32,32,32,114,101,113,117,105,114,101,34,109,97,105,110,34, -32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,106,105,110,46,99, -111,114,101,46,114,117,110,40,41,13,10,32,32,32,32,32,32,32,32,101, -110,100,41,13,10,32,32,32,32,101,108,115,101,13,10,32,32,32,32,32, -32,32,32,110,111,71,97,109,101,40,41,13,10,32,32,32,32,101,110,100, -13,10,101,110,100,13,10,13,10,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,13,10,45,45,32,73,110,105,116,105,97,108,105,122,101,32,115,117, -98,32,115,121,115,116,101,109,115,13,10,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,13,10,13,10,106,105,110,46,97,117,100,105,111,46,105,110, -105,116,40,41,13,10,13,10,106,105,110,46,103,114,97,112,104,105,99,115, -46,105,110,105,116,40,106,105,110,46,99,111,110,102,105,103,41,13,10,13, -10,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,45,45,32,66, -111,111,116,32,103,97,109,101,13,10,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,13,10,13,10,120,112,99,97,108,108,40,98,111,111,116,44,32, -111,110,69,114,114,111,114,41,13,10,13,10,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,13,10,45,45,32,68,101,115,116,114,111,121,32,115,117, -98,45,115,121,115,116,101,109,115,13,10,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,13,10,13,10,106,105,110,46,103,114,97,112,104,105,99,115, -46,100,101,115,116,114,111,121,40,41,13,10,13,10,106,105,110,46,97,117, -100,105,111,46,100,101,115,116,114,111,121,40,41,13,10,13,10,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,13,10,45,45,32,81,117,105,116,32, -103,97,109,101,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, -45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,13, -10,13,10,106,105,110,46,99,111,114,101,46,113,117,105,116,40,41,13,10 -}; - diff --git a/src/libjin-lua/embed/clear.bat b/src/libjin-lua/embed/clear.bat deleted file mode 100644 index d0c57ed..0000000 --- a/src/libjin-lua/embed/clear.bat +++ /dev/null @@ -1,3 +0,0 @@ -for %%f in (*.lua.h) do ( - del /f %%f -)
\ No newline at end of file diff --git a/src/libjin-lua/embed/graphics.lua.h b/src/libjin-lua/embed/graphics.lua.h deleted file mode 100644 index 9e4c5d5..0000000 --- a/src/libjin-lua/embed/graphics.lua.h +++ /dev/null @@ -1,161 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char graphics_lua[] = { -13,10,106,105,110,46,103,114,97,112,104,105,99,115,32,61,32,106,105,110, -46,103,114,97,112,104,105,99,115,32,111,114,32,123,125,32,13,10,13,10, -108,111,99,97,108,32,106,103,32,61,32,106,105,110,46,103,114,97,112,104, -105,99,115,13,10,13,10,106,103,46,82,101,110,100,101,114,77,111,100,101, -32,61,32,123,13,10,32,32,32,32,70,73,76,76,32,61,32,49,44,32, -13,10,32,32,32,32,76,73,78,69,32,61,32,50,44,13,10,125,13,10, -13,10,106,103,46,83,112,114,105,116,101,79,114,105,103,105,110,32,61,32, -123,13,10,32,32,32,32,84,79,80,76,69,70,84,32,61,32,48,44,13, -10,32,32,32,32,84,79,80,67,69,78,84,69,82,32,61,32,49,44,13, -10,32,32,32,32,84,79,80,82,73,71,72,84,32,61,32,50,44,13,10, -32,32,32,32,77,73,68,68,76,69,76,69,70,84,32,61,32,51,44,13, -10,32,32,32,32,77,73,68,68,76,69,67,69,78,84,69,82,32,61,32, -52,44,13,10,32,32,32,32,77,73,68,68,76,69,82,73,71,72,84,32, -61,32,53,44,13,10,32,32,32,32,66,79,84,84,79,77,76,69,70,84, -32,61,32,54,44,13,10,32,32,32,32,66,79,84,84,79,77,67,69,78, -84,69,82,32,61,32,55,44,13,10,32,32,32,32,66,79,84,84,79,77, -82,73,71,72,84,32,61,32,56,13,10,125,13,10,13,10,106,103,46,83, -112,114,105,116,101,77,111,100,101,32,61,32,123,13,10,32,32,32,32,83, -73,78,71,76,69,32,61,32,49,44,13,10,32,32,32,32,82,65,78,68, -79,77,32,61,32,50,44,13,10,32,32,32,32,65,78,73,77,65,84,69, -68,32,61,32,51,13,10,125,13,10,13,10,45,45,32,66,117,105,108,116, -32,105,110,32,115,104,97,100,101,114,115,46,13,10,106,103,46,83,104,97, -100,101,114,115,32,61,32,110,105,108,13,10,108,111,99,97,108,32,102,117, -110,99,116,105,111,110,32,99,111,109,112,105,108,101,66,117,105,108,116,73, -110,83,104,97,100,101,114,115,40,41,32,13,10,32,32,32,32,105,102,32, -106,103,46,83,104,97,100,101,114,115,32,126,61,32,110,105,108,32,116,104, -101,110,32,13,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,13, -10,32,32,32,32,101,110,100,13,10,32,32,32,32,106,103,46,83,104,97, -100,101,114,115,32,61,32,123,125,13,10,9,106,103,46,83,104,97,100,101, -114,115,46,70,111,110,116,32,61,32,106,103,46,110,101,119,83,104,97,100, -101,114,91,91,13,10,9,9,35,86,69,82,84,69,88,95,83,72,65,68, -69,82,13,10,9,9,86,101,114,116,101,120,32,118,101,114,116,40,86,101, -114,116,101,120,32,118,41,13,10,9,9,123,13,10,9,9,9,114,101,116, -117,114,110,32,118,59,13,10,9,9,125,13,10,9,9,35,69,78,68,95, -86,69,82,84,69,88,95,83,72,65,68,69,82,13,10,9,9,35,70,82, -65,71,77,69,78,84,95,83,72,65,68,69,82,13,10,9,9,67,111,108, -111,114,32,102,114,97,103,40,67,111,108,111,114,32,99,111,108,44,32,84, -101,120,116,117,114,101,32,116,101,120,44,32,86,101,114,116,101,120,32,118, -41,13,10,9,9,123,13,10,9,9,9,114,101,116,117,114,110,32,67,111, -108,111,114,40,99,111,108,46,114,103,98,44,32,116,101,120,101,108,40,116, -101,120,44,32,118,46,117,118,41,46,97,41,59,13,10,9,9,125,13,10, -9,9,35,69,78,68,95,70,82,65,71,77,69,78,84,95,83,72,65,68, -69,82,13,10,9,93,93,13,10,9,106,103,46,83,104,97,100,101,114,115, -46,84,101,120,116,117,114,101,32,61,32,106,103,46,110,101,119,83,104,97, -100,101,114,91,91,13,10,9,9,35,86,69,82,84,69,88,95,83,72,65, -68,69,82,13,10,9,9,86,101,114,116,101,120,32,118,101,114,116,40,86, -101,114,116,101,120,32,118,41,13,10,9,9,123,13,10,9,9,9,114,101, -116,117,114,110,32,118,59,13,10,9,9,125,13,10,9,9,35,69,78,68, -95,86,69,82,84,69,88,95,83,72,65,68,69,82,13,10,9,9,35,70, -82,65,71,77,69,78,84,95,83,72,65,68,69,82,13,10,9,9,67,111, -108,111,114,32,102,114,97,103,40,67,111,108,111,114,32,99,111,108,44,32, -84,101,120,116,117,114,101,32,116,101,120,44,32,86,101,114,116,101,120,32, -118,41,13,10,9,9,123,13,10,9,9,9,114,101,116,117,114,110,32,99, -111,108,32,42,32,116,101,120,101,108,40,116,101,120,44,32,118,46,117,118, -41,59,13,10,9,9,125,13,10,9,9,35,69,78,68,95,70,82,65,71, -77,69,78,84,95,83,72,65,68,69,82,13,10,9,93,93,13,10,9,106, -103,46,83,104,97,100,101,114,115,46,83,112,114,105,116,101,32,61,32,106, -103,46,110,101,119,83,104,97,100,101,114,91,91,13,10,9,9,35,86,69, -82,84,69,88,95,83,72,65,68,69,82,13,10,9,9,86,101,114,116,101, -120,32,118,101,114,116,40,86,101,114,116,101,120,32,118,41,13,10,9,9, -123,13,10,9,9,9,114,101,116,117,114,110,32,118,59,13,10,9,9,125, -13,10,9,9,35,69,78,68,95,86,69,82,84,69,88,95,83,72,65,68, -69,82,13,10,9,9,35,70,82,65,71,77,69,78,84,95,83,72,65,68, -69,82,13,10,9,9,67,111,108,111,114,32,102,114,97,103,40,67,111,108, -111,114,32,99,111,108,44,32,84,101,120,116,117,114,101,32,116,101,120,44, -32,86,101,114,116,101,120,32,118,41,13,10,9,9,123,13,10,9,9,9, -114,101,116,117,114,110,32,99,111,108,32,42,32,116,101,120,101,108,40,116, -101,120,44,32,118,46,117,118,41,59,13,10,9,9,125,13,10,9,9,35, -69,78,68,95,70,82,65,71,77,69,78,84,95,83,72,65,68,69,82,13, -10,9,93,93,13,10,9,106,103,46,83,104,97,100,101,114,115,46,83,112, -114,105,116,101,66,97,116,99,104,32,61,32,106,103,46,110,101,119,83,104, -97,100,101,114,91,91,13,10,9,9,35,86,69,82,84,69,88,95,83,72, -65,68,69,82,13,10,9,9,86,101,114,116,101,120,32,118,101,114,116,40, -86,101,114,116,101,120,32,118,41,13,10,9,9,123,13,10,9,9,9,114, -101,116,117,114,110,32,118,59,13,10,9,9,125,13,10,9,9,35,69,78, -68,95,86,69,82,84,69,88,95,83,72,65,68,69,82,13,10,9,9,35, -70,82,65,71,77,69,78,84,95,83,72,65,68,69,82,13,10,9,9,67, -111,108,111,114,32,102,114,97,103,40,67,111,108,111,114,32,99,111,108,44, -32,84,101,120,116,117,114,101,32,116,101,120,44,32,86,101,114,116,101,120, -32,118,41,13,10,9,9,123,13,10,9,9,9,114,101,116,117,114,110,32, -99,111,108,32,42,32,116,101,120,101,108,40,116,101,120,44,32,118,46,117, -118,41,59,13,10,9,9,125,13,10,9,9,35,69,78,68,95,70,82,65, -71,77,69,78,84,95,83,72,65,68,69,82,13,10,9,93,93,13,10,32, -32,32,32,106,103,46,83,104,97,100,101,114,115,46,83,104,97,112,101,32, -61,32,106,103,46,110,101,119,83,104,97,100,101,114,91,91,13,10,32,32, -32,32,32,32,32,32,35,86,69,82,84,69,88,95,83,72,65,68,69,82, -13,10,9,32,32,32,32,86,101,114,116,101,120,32,118,101,114,116,40,86, -101,114,116,101,120,32,118,41,13,10,9,32,32,32,32,123,13,10,9,9, -32,32,32,32,114,101,116,117,114,110,32,118,59,13,10,9,32,32,32,32, -125,13,10,9,32,32,32,32,35,69,78,68,95,86,69,82,84,69,88,95, -83,72,65,68,69,82,13,10,9,32,32,32,32,35,70,82,65,71,77,69, -78,84,95,83,72,65,68,69,82,13,10,9,32,32,32,32,67,111,108,111, -114,32,102,114,97,103,40,67,111,108,111,114,32,99,111,108,44,32,84,101, -120,116,117,114,101,32,116,101,120,44,32,86,101,114,116,101,120,32,118,41, -13,10,9,32,32,32,32,123,13,10,9,9,32,32,32,32,114,101,116,117, -114,110,32,99,111,108,59,13,10,9,32,32,32,32,125,13,10,9,32,32, -32,32,35,69,78,68,95,70,82,65,71,77,69,78,84,95,83,72,65,68, -69,82,13,10,32,32,32,32,93,93,13,10,32,32,32,32,106,103,46,83, -104,97,100,101,114,115,46,77,101,115,104,32,61,32,106,103,46,110,101,119, -83,104,97,100,101,114,91,91,32,13,10,32,32,32,32,32,32,32,9,35, -86,69,82,84,69,88,95,83,72,65,68,69,82,13,10,32,32,32,32,32, -32,32,32,105,110,32,86,101,99,52,32,99,111,108,111,114,59,13,10,9, -9,86,101,114,116,101,120,32,118,101,114,116,40,86,101,114,116,101,120,32, -118,41,13,10,9,9,123,13,10,9,9,9,114,101,116,117,114,110,32,118, -59,13,10,9,9,125,13,10,9,9,35,69,78,68,95,86,69,82,84,69, -88,95,83,72,65,68,69,82,13,10,9,9,35,70,82,65,71,77,69,78, -84,95,83,72,65,68,69,82,13,10,9,9,67,111,108,111,114,32,102,114, -97,103,40,67,111,108,111,114,32,99,111,108,44,32,84,101,120,116,117,114, -101,32,116,101,120,44,32,86,101,114,116,101,120,32,118,41,13,10,9,9, -123,13,10,9,9,9,114,101,116,117,114,110,32,99,111,108,32,42,32,116, -101,120,101,108,40,116,101,120,44,32,118,46,117,118,41,32,42,32,118,46, -99,111,108,111,114,59,13,10,9,9,125,13,10,9,9,35,69,78,68,95, -70,82,65,71,77,69,78,84,95,83,72,65,68,69,82,32,13,10,32,32, -32,32,93,93,13,10,9,106,103,46,83,104,97,100,101,114,115,46,68,101, -102,97,117,108,116,32,61,32,106,103,46,110,101,119,83,104,97,100,101,114, -91,91,13,10,9,9,35,86,69,82,84,69,88,95,83,72,65,68,69,82, -13,10,9,9,86,101,114,116,101,120,32,118,101,114,116,40,86,101,114,116, -101,120,32,118,41,13,10,9,9,123,13,10,9,9,9,114,101,116,117,114, -110,32,118,59,13,10,9,9,125,13,10,9,9,35,69,78,68,95,86,69, -82,84,69,88,95,83,72,65,68,69,82,13,10,9,9,35,70,82,65,71, -77,69,78,84,95,83,72,65,68,69,82,13,10,9,9,67,111,108,111,114, -32,102,114,97,103,40,67,111,108,111,114,32,99,111,108,44,32,84,101,120, -116,117,114,101,32,116,101,120,44,32,86,101,114,116,101,120,32,118,41,13, -10,9,9,123,13,10,9,9,9,114,101,116,117,114,110,32,99,111,108,32, -42,32,116,101,120,101,108,40,116,101,120,44,32,118,46,117,118,41,59,13, -10,9,9,125,13,10,9,9,35,69,78,68,95,70,82,65,71,77,69,78, -84,95,83,72,65,68,69,82,13,10,9,93,93,32,13,10,101,110,100,13, -10,13,10,108,111,99,97,108,32,95,105,110,105,116,32,61,32,106,103,46, -105,110,105,116,13,10,108,111,99,97,108,32,105,110,105,116,105,97,108,105, -122,101,100,32,61,32,102,97,108,115,101,13,10,106,103,46,105,110,105,116, -32,61,32,102,117,110,99,116,105,111,110,40,115,101,116,116,105,110,103,41, -32,13,10,32,32,32,32,105,102,32,105,110,105,116,105,97,108,105,122,101, -100,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,114,101,116, -117,114,110,32,105,110,105,116,105,97,108,105,122,101,100,13,10,32,32,32, -32,101,110,100,13,10,32,32,32,32,105,110,105,116,105,97,108,105,122,101, -100,32,61,32,95,105,110,105,116,40,115,101,116,116,105,110,103,41,13,10, -32,32,32,32,105,102,32,105,110,105,116,105,97,108,105,122,101,100,32,116, -104,101,110,32,13,10,32,32,32,32,32,32,32,32,99,111,109,112,105,108, -101,66,117,105,108,116,73,110,83,104,97,100,101,114,115,40,41,13,10,32, -32,32,32,32,32,32,32,106,103,46,117,115,101,83,104,97,100,101,114,40, -106,103,46,83,104,97,100,101,114,115,46,68,101,102,97,117,108,116,41,13, -10,32,32,32,32,101,110,100,13,10,32,32,32,32,114,101,116,117,114,110, -32,105,110,105,116,105,97,108,105,122,101,100,32,13,10,101,110,100,13,10, -13,10,106,103,46,117,110,117,115,101,83,104,97,100,101,114,32,61,32,102, -117,110,99,116,105,111,110,40,41,13,10,32,32,32,32,106,103,46,117,115, -101,83,104,97,100,101,114,40,106,103,46,83,104,97,100,101,114,115,46,68, -101,102,97,117,108,116,41,13,10,101,110,100,13,10,13,10,45,45,32,82, -101,115,101,116,32,97,108,108,32,97,116,116,114,105,98,117,116,101,115,32, -116,111,32,100,101,102,97,117,108,116,32,118,97,108,117,101,46,13,10,106, -103,46,114,101,115,101,116,32,61,32,102,117,110,99,116,105,111,110,40,41, -13,10,32,32,32,32,106,103,46,115,101,116,67,111,108,111,114,40,50,53, -53,44,32,50,53,53,44,32,50,53,53,44,32,50,53,53,41,13,10,32, -32,32,32,106,103,46,115,101,116,67,108,101,97,114,67,111,108,111,114,40, -48,44,32,48,44,32,48,44,32,50,53,53,41,13,10,32,32,32,32,106, -103,46,99,108,101,97,114,40,41,13,10,32,32,32,32,106,103,46,117,110, -115,101,116,70,111,110,116,40,41,13,10,32,32,32,32,106,103,46,117,110, -117,115,101,83,104,97,100,101,114,40,41,13,10,101,110,100,13,10 -}; - diff --git a/src/libjin-lua/embed/je_lua_embed.h b/src/libjin-lua/embed/je_lua_embed.h deleted file mode 100644 index 199de49..0000000 --- a/src/libjin-lua/embed/je_lua_embed.h +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef __JIN_LUA_EMBED_H__ -#define __JIN_LUA_EMBED_H__ -#include <cstring> - -#include "../common/je_lua.h" - -namespace JinEngine -{ - namespace Embed - { - - // Embed structure. - struct jin_Embed - { - const char* file, *source; - }; - - // Embed scripts. - #include "graphics.lua.h" - #include "keyboard.lua.h" - #include "mouse.lua.h" - #include "path.lua.h" - #include "app.lua.h" - - // In order. - static const jin_Embed modules[] = { - { "keyboard.lua", keyboard_lua }, - { "mouse.lua", mouse_lua }, - { "graphics.lua", graphics_lua }, - { "path.lua", path_lua }, - { 0, 0 } - }; - - static const jin_Embed bootscript = { "app.lua", app_lua }; - - static void run(lua_State* L) - { - jin_log_info("Load embeded scripts."); - const char* file, *source; - for (int i = 0; modules[i].file != 0; ++i) - { - file = modules[i].file; - source = modules[i].source; - jin_log_info("Embed script \"%s\".", file); - luax_clearstack(L); - if (luax_loadbuffer(L, source, strlen(source), file) == 0) - { - luax_call(L, 0, 0); - jin_log_info("Done."); - } - else - { - jin_log_error("Embed script \"%s\" failed.", file); - } - } - file = bootscript.file; - source = bootscript.source; - jin_log_info("Run boot script \"%s\".", file); - luax_clearstack(L); - if (luax_loadbuffer(L, source, strlen(source), file) == 0) - { - luax_call(L, 0, 0); - } - } - - } // namespace Embed -} // namespace JinEngine - -#endif // __JIN_LUA_EMBED_H__
\ No newline at end of file diff --git a/src/libjin-lua/embed/keyboard.lua.h b/src/libjin-lua/embed/keyboard.lua.h deleted file mode 100644 index 55f8016..0000000 --- a/src/libjin-lua/embed/keyboard.lua.h +++ /dev/null @@ -1,14 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char keyboard_lua[] = { -13,10,106,105,110,46,107,101,121,98,111,97,114,100,32,61,32,106,105,110, -46,107,101,121,98,111,97,114,100,32,111,114,32,123,125,32,13,10,13,10, -108,111,99,97,108,32,107,101,121,115,32,61,32,123,125,32,13,10,13,10, -102,117,110,99,116,105,111,110,32,106,105,110,46,107,101,121,98,111,97,114, -100,46,105,115,80,114,101,115,115,101,100,40,107,41,32,13,10,32,32,32, -32,114,101,116,117,114,110,32,107,101,121,115,91,107,93,13,10,101,110,100, -32,32,13,10,13,10,102,117,110,99,116,105,111,110,32,106,105,110,46,107, -101,121,98,111,97,114,100,46,115,101,116,40,107,44,32,115,116,97,116,117, -115,41,32,13,10,32,32,32,32,107,101,121,115,91,107,93,32,61,32,115, -116,97,116,117,115,32,13,10,101,110,100,32,13,10 -}; - diff --git a/src/libjin-lua/embed/mouse.lua.h b/src/libjin-lua/embed/mouse.lua.h deleted file mode 100644 index 225c4d0..0000000 --- a/src/libjin-lua/embed/mouse.lua.h +++ /dev/null @@ -1,14 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char mouse_lua[] = { -13,10,106,105,110,46,109,111,117,115,101,32,61,32,106,105,110,46,109,111, -117,115,101,32,111,114,32,123,125,32,13,10,13,10,108,111,99,97,108,32, -98,117,116,116,111,110,32,61,32,123,125,32,13,10,13,10,102,117,110,99, -116,105,111,110,32,106,105,110,46,109,111,117,115,101,46,105,115,68,111,119, -110,40,98,116,110,41,32,13,10,32,32,32,32,114,101,116,117,114,110,32, -98,117,116,116,111,110,91,98,116,110,93,13,10,101,110,100,32,13,10,13, -10,102,117,110,99,116,105,111,110,32,106,105,110,46,109,111,117,115,101,46, -115,101,116,40,98,116,110,44,32,115,116,97,116,117,115,41,32,13,10,32, -32,32,32,98,117,116,116,111,110,91,98,116,110,93,32,61,32,115,116,97, -116,117,115,13,10,101,110,100,32,13,10 -}; - diff --git a/src/libjin-lua/embed/net.lua.h b/src/libjin-lua/embed/net.lua.h deleted file mode 100644 index eebafbf..0000000 --- a/src/libjin-lua/embed/net.lua.h +++ /dev/null @@ -1,7 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char net_lua[] = { -13,10,106,105,110,46,110,101,116,32,61,32,106,105,110,46,110,101,116,32, -111,114,32,123,125,32,13,10,13,10,108,111,99,97,108,32,106,110,32,61, -32,106,105,110,46,110,101,116,13,10 -}; - diff --git a/src/libjin-lua/embed/path.lua.h b/src/libjin-lua/embed/path.lua.h deleted file mode 100644 index b989df0..0000000 --- a/src/libjin-lua/embed/path.lua.h +++ /dev/null @@ -1,14 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char path_lua[] = { -13,10,106,105,110,46,112,97,116,104,32,61,32,106,105,110,46,112,97,116, -104,32,111,114,32,123,125,32,13,10,13,10,45,45,32,71,97,109,101,32, -114,111,111,116,32,100,105,114,101,99,116,111,114,121,46,13,10,106,105,110, -46,99,119,100,32,61,32,106,105,110,46,97,114,103,115,91,39,99,119,100, -39,93,32,111,114,32,39,46,39,32,13,10,13,10,45,45,32,71,101,116, -32,102,117,108,108,32,112,97,116,104,32,111,102,32,97,32,103,105,118,101, -110,32,112,97,116,104,46,13,10,102,117,110,99,116,105,111,110,32,106,105, -110,46,112,97,116,104,46,102,117,108,108,40,112,97,116,104,41,13,10,32, -32,32,32,114,101,116,117,114,110,32,106,105,110,46,99,119,100,32,46,46, -32,39,47,39,32,46,46,32,112,97,116,104,13,10,101,110,100,13,10 -}; - diff --git a/src/libjin-lua/embed/scripts/ai/ai.lua b/src/libjin-lua/embed/scripts/ai/ai.lua deleted file mode 100644 index fb8ffa7..0000000 --- a/src/libjin-lua/embed/scripts/ai/ai.lua +++ /dev/null @@ -1,8 +0,0 @@ -jin.ai = jin.ai or {} - -local ja = jin.ai - -ja.StateMachineType = { - STEPWISE = 1, - ITERATIVE = 2, -} diff --git a/src/libjin-lua/embed/scripts/ai/state_machine.lua b/src/libjin-lua/embed/scripts/ai/state_machine.lua deleted file mode 100644 index b4ec768..0000000 --- a/src/libjin-lua/embed/scripts/ai/state_machine.lua +++ /dev/null @@ -1,7 +0,0 @@ -jin.ai = jin.ai or {} - -local statemachine = {} - -jin.ai.newStateMachine = function() - -end diff --git a/src/libjin-lua/embed/scripts/app.lua b/src/libjin-lua/embed/scripts/app.lua deleted file mode 100644 index a55b598..0000000 --- a/src/libjin-lua/embed/scripts/app.lua +++ /dev/null @@ -1,137 +0,0 @@ - -jin.filesystem.init() -jin.filesystem.mount(jin.cwd) - -------------------------------------------------------------------------- --- Config game -------------------------------------------------------------------------- - -jin.config = {} -if jin.filesystem.exist("config.lua") then - xpcall(function()jin.config = require "config" end, function()end) -end -jin.config.width = jin.config.width or 580 -jin.config.height = jin.config.height or 450 -jin.config.vsync = jin.config.vsync or true -jin.config.title = jin.config.title or ("jin v" .. jin.version) -jin.config.resizable = jin.config.resizable or false -jin.config.fullscreen = jin.config.fullscreen or false -jin.config.fps = jin.config.fps or 60 -jin.config.icon = jin.config.icon or "" - -------------------------------------------------------------------------- --- Default game loop -------------------------------------------------------------------------- - -local function call(func, ...) - if func then - return func(...) - end -end - -local step = jin.time.step -jin.time.step = nil - -function jin.core.run() - jin.graphics.reset() - call(jin.core.onLoad) - local dt = 0 - while jin.core.running() do - for _, e in pairs(jin.event.poll()) do - if e.type == "KeyDown" then - jin.keyboard.set(e.key, true) - elseif e.type == "KeyUp" then - jin.keyboard.set(e.key, false) - end - call(jin.core.onEvent, e) - end - step() - dt = jin.time.getDelta() - call(jin.core.onUpdate, dt) - jin.graphics.clear() - call(jin.core.onDraw) - jin.graphics.present() - jin.time.sleep(0.001) - end -end - -------------------------------------------------------------------------- --- Boot game -------------------------------------------------------------------------- - --- Display error message. -local function onError(msg) - jin.audio.destroy() - jin.graphics.showWindow() - local err = "Error:\n" .. msg .. "\n" .. debug.traceback() - jin.graphics.reset() - jin.graphics.setClearColor(100, 100, 100, 255) - jin.graphics.clear() - jin.graphics.print(err, 5, 5) - jin.graphics.present() - while jin.core.running() do - for _, e in pairs(jin.event.poll()) do - if e.type == "Quit" then - jin.core.stop() - end - end - jin.time.sleep(0.001) - end -end - --- No game screen. -local function noGame() - jin.graphics.showWindow() - jin.graphics.reset() - jin.graphics.setClearColor(100, 100, 100, 255) - jin.graphics.clear() - jin.graphics.print("No Game", 5, 5) - jin.graphics.present() - while jin.core.running() do - for _, e in pairs(jin.event.poll()) do - if e.type == "Quit" then - jin.core.stop() - end - end - jin.time.sleep(0.001) - end -end - -local function boot() - if jin.filesystem.exist("main.lua") then - call(function() - require"main" - jin.core.run() - end) - else - noGame() - end -end - -------------------------------------------------------------------------- --- Initialize sub systems -------------------------------------------------------------------------- - -jin.audio.init() - -jin.graphics.init(jin.config) - -------------------------------------------------------------------------- --- Boot game -------------------------------------------------------------------------- - -xpcall(boot, onError) - -------------------------------------------------------------------------- --- Destroy sub-systems -------------------------------------------------------------------------- - -jin.graphics.destroy() - -jin.audio.destroy() - -------------------------------------------------------------------------- --- Quit game -------------------------------------------------------------------------- - -jin.core.quit() diff --git a/src/libjin-lua/embed/scripts/graphics/graphics.lua b/src/libjin-lua/embed/scripts/graphics/graphics.lua deleted file mode 100644 index 65a320f..0000000 --- a/src/libjin-lua/embed/scripts/graphics/graphics.lua +++ /dev/null @@ -1,162 +0,0 @@ - -jin.graphics = jin.graphics or {} - -local jg = jin.graphics - -jg.RenderMode = { - FILL = 1, - LINE = 2, -} - -jg.SpriteOrigin = { - TOPLEFT = 0, - TOPCENTER = 1, - TOPRIGHT = 2, - MIDDLELEFT = 3, - MIDDLECENTER = 4, - MIDDLERIGHT = 5, - BOTTOMLEFT = 6, - BOTTOMCENTER = 7, - BOTTOMRIGHT = 8 -} - -jg.SpriteMode = { - SINGLE = 1, - RANDOM = 2, - ANIMATED = 3 -} - --- Built in shaders. -jg.Shaders = nil -local function compileBuiltInShaders() - if jg.Shaders ~= nil then - return - end - jg.Shaders = {} - jg.Shaders.Font = jg.newShader[[ - #VERTEX_SHADER - Vertex vert(Vertex v) - { - return v; - } - #END_VERTEX_SHADER - #FRAGMENT_SHADER - Color frag(Color col, Texture tex, Vertex v) - { - return Color(col.rgb, texel(tex, v.uv).a); - } - #END_FRAGMENT_SHADER - ]] - jg.Shaders.Texture = jg.newShader[[ - #VERTEX_SHADER - Vertex vert(Vertex v) - { - return v; - } - #END_VERTEX_SHADER - #FRAGMENT_SHADER - Color frag(Color col, Texture tex, Vertex v) - { - return col * texel(tex, v.uv); - } - #END_FRAGMENT_SHADER - ]] - jg.Shaders.Sprite = jg.newShader[[ - #VERTEX_SHADER - Vertex vert(Vertex v) - { - return v; - } - #END_VERTEX_SHADER - #FRAGMENT_SHADER - Color frag(Color col, Texture tex, Vertex v) - { - return col * texel(tex, v.uv); - } - #END_FRAGMENT_SHADER - ]] - jg.Shaders.SpriteBatch = jg.newShader[[ - #VERTEX_SHADER - Vertex vert(Vertex v) - { - return v; - } - #END_VERTEX_SHADER - #FRAGMENT_SHADER - Color frag(Color col, Texture tex, Vertex v) - { - return col * texel(tex, v.uv); - } - #END_FRAGMENT_SHADER - ]] - jg.Shaders.Shape = jg.newShader[[ - #VERTEX_SHADER - Vertex vert(Vertex v) - { - return v; - } - #END_VERTEX_SHADER - #FRAGMENT_SHADER - Color frag(Color col, Texture tex, Vertex v) - { - return col; - } - #END_FRAGMENT_SHADER - ]] - jg.Shaders.Mesh = jg.newShader[[ - #VERTEX_SHADER - in Vec4 color; - Vertex vert(Vertex v) - { - return v; - } - #END_VERTEX_SHADER - #FRAGMENT_SHADER - Color frag(Color col, Texture tex, Vertex v) - { - return col * texel(tex, v.uv) * v.color; - } - #END_FRAGMENT_SHADER - ]] - jg.Shaders.Default = jg.newShader[[ - #VERTEX_SHADER - Vertex vert(Vertex v) - { - return v; - } - #END_VERTEX_SHADER - #FRAGMENT_SHADER - Color frag(Color col, Texture tex, Vertex v) - { - return col * texel(tex, v.uv); - } - #END_FRAGMENT_SHADER - ]] -end - -local _init = jg.init -local initialized = false -jg.init = function(setting) - if initialized then - return initialized - end - initialized = _init(setting) - if initialized then - compileBuiltInShaders() - jg.useShader(jg.Shaders.Default) - end - return initialized -end - -jg.unuseShader = function() - jg.useShader(jg.Shaders.Default) -end - --- Reset all attributes to default value. -jg.reset = function() - jg.setColor(255, 255, 255, 255) - jg.setClearColor(0, 0, 0, 255) - jg.clear() - jg.unsetFont() - jg.unuseShader() -end diff --git a/src/libjin-lua/embed/scripts/keyboard/keyboard.lua b/src/libjin-lua/embed/scripts/keyboard/keyboard.lua deleted file mode 100644 index fa42b3a..0000000 --- a/src/libjin-lua/embed/scripts/keyboard/keyboard.lua +++ /dev/null @@ -1,12 +0,0 @@ - -jin.keyboard = jin.keyboard or {} - -local keys = {} - -function jin.keyboard.isPressed(k) - return keys[k] -end - -function jin.keyboard.set(k, status) - keys[k] = status -end diff --git a/src/libjin-lua/embed/scripts/mouse/mouse.lua b/src/libjin-lua/embed/scripts/mouse/mouse.lua deleted file mode 100644 index 1d3d8df..0000000 --- a/src/libjin-lua/embed/scripts/mouse/mouse.lua +++ /dev/null @@ -1,12 +0,0 @@ - -jin.mouse = jin.mouse or {} - -local button = {} - -function jin.mouse.isDown(btn) - return button[btn] -end - -function jin.mouse.set(btn, status) - button[btn] = status -end diff --git a/src/libjin-lua/embed/scripts/net/net.lua b/src/libjin-lua/embed/scripts/net/net.lua deleted file mode 100644 index 946b55f..0000000 --- a/src/libjin-lua/embed/scripts/net/net.lua +++ /dev/null @@ -1,4 +0,0 @@ - -jin.net = jin.net or {} - -local jn = jin.net diff --git a/src/libjin-lua/embed/scripts/path/path.lua b/src/libjin-lua/embed/scripts/path/path.lua deleted file mode 100644 index c6bcf41..0000000 --- a/src/libjin-lua/embed/scripts/path/path.lua +++ /dev/null @@ -1,10 +0,0 @@ - -jin.path = jin.path or {} - --- Game root directory. -jin.cwd = jin.args['cwd'] or '.' - --- Get full path of a given path. -function jin.path.full(path) - return jin.cwd .. '/' .. path -end diff --git a/src/libjin-lua/embed/state_machine.lua.h b/src/libjin-lua/embed/state_machine.lua.h deleted file mode 100644 index 5c78cd6..0000000 --- a/src/libjin-lua/embed/state_machine.lua.h +++ /dev/null @@ -1,9 +0,0 @@ -/*Auto generated, don't modify by hand.*/ -static char state_machine_lua[] = { -106,105,110,46,97,105,32,61,32,106,105,110,46,97,105,32,111,114,32,123, -125,32,13,10,13,10,108,111,99,97,108,32,115,116,97,116,101,109,97,99, -104,105,110,101,32,61,32,123,125,13,10,13,10,106,105,110,46,97,105,46, -110,101,119,83,116,97,116,101,77,97,99,104,105,110,101,32,61,32,102,117, -110,99,116,105,111,110,40,41,32,13,10,13,10,101,110,100,13,10 -}; - |