├── PainterEngine Game ├── PainterEngine Game Client │ ├── Game_UI.c │ ├── Game_UI.h │ ├── Game_UI_Map.c │ ├── Game_UI_Map.h │ ├── Game_UI_Message.c │ ├── Game_UI_Message.h │ ├── Game_UI_RankPanel.c │ ├── Game_UI_RankPanel.h │ ├── Game_UI_ScorePanel.c │ ├── Game_UI_ScorePanel.h │ ├── Game_UI_StatusPanel.c │ ├── Game_UI_StatusPanel.h │ ├── PainterEngine Game Client.aps │ ├── PainterEngine Game Client.rc │ ├── PainterEngine Game Client.vcxproj │ ├── PainterEngine Game Client.vcxproj.filters │ ├── PainterEngine Game Client.vcxproj.user │ ├── PainterEngine_ApplicationClient.c │ ├── PainterEngine_ApplicationClient.h │ ├── PainterEngine_GameClientStartup.h │ ├── __main.c │ └── resource.h ├── PainterEngine Game Server │ ├── PainterEngine Game Server.aps │ ├── PainterEngine Game Server.rc │ ├── PainterEngine Game Server.vcxproj │ ├── PainterEngine Game Server.vcxproj.filters │ ├── PainterEngine Game Server.vcxproj.user │ ├── PainterEngine_ApplicationServer.c │ ├── PainterEngine_ApplicationServer.h │ ├── PainterEngine_GameServerStartup.h │ ├── __main.c │ └── resource.h ├── PainterEngine Game.sln ├── PainterEngine Game.suo ├── PainterEngine Game │ ├── Game_ObjectTypes.h │ ├── Game_Object_Alien.c │ ├── Game_Object_Alien.h │ ├── Game_Object_Base.c │ ├── Game_Object_Base.h │ ├── Game_Object_Blackhole.c │ ├── Game_Object_Blackhole.h │ ├── Game_Object_BlackholeExplosion.c │ ├── Game_Object_BlackholeExplosion.h │ ├── Game_Object_FireExplosion.c │ ├── Game_Object_FireExplosion.h │ ├── Game_Object_LaunchFire.c │ ├── Game_Object_LaunchFire.h │ ├── Game_Object_Mine.c │ ├── Game_Object_Mine.h │ ├── Game_Object_Missile.c │ ├── Game_Object_Missile.h │ ├── Game_Object_Nuclear.c │ ├── Game_Object_Nuclear.h │ ├── Game_Object_Pickup.c │ ├── Game_Object_Pickup.h │ ├── Game_Object_PickupExplosion.c │ ├── Game_Object_PickupExplosion.h │ ├── Game_Object_Piercer.c │ ├── Game_Object_Piercer.h │ ├── Game_Object_ProtectShield.c │ ├── Game_Object_ProtectShield.h │ ├── Game_Object_Railgun.c │ ├── Game_Object_Railgun.h │ ├── Game_Object_RailgunExplosion.c │ ├── Game_Object_RailgunExplosion.h │ ├── Game_Object_RailgunFire.c │ ├── Game_Object_RailgunFire.h │ ├── Game_Object_Ship.c │ ├── Game_Object_Ship.h │ ├── Game_Object_Shotgun.c │ ├── Game_Object_Shotgun.h │ ├── Game_Object_Stone.c │ ├── Game_Object_Stone.h │ ├── Game_Object_Treasure.c │ ├── Game_Object_Treasure.h │ ├── Game_Object_TreasureTag.c │ ├── Game_Object_TreasureTag.h │ ├── Game_Play.c │ ├── Game_Play.h │ ├── Game_ResoucesLoader.c │ ├── Game_ResoucesLoader.h │ ├── Game_Text.h │ ├── PainterEngine Game.vcxproj │ ├── PainterEngine Game.vcxproj.filters │ ├── PainterEngine Game.vcxproj.user │ ├── PainterEngine_Startup.c │ └── PainterEngine_Startup.h └── PainterEngine │ ├── Debug │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── Lib-link.read.1.tlog │ ├── Lib-link.write.1.tlog │ ├── PX_3D.obj │ ├── PX_3D_ObjData.obj │ ├── PX_AES.obj │ ├── PX_ANN.obj │ ├── PX_Animation.obj │ ├── PX_Arle.obj │ ├── PX_Base64.obj │ ├── PX_BaseGeo.obj │ ├── PX_Bitmap.obj │ ├── PX_BpNeural.obj │ ├── PX_Effect.obj │ ├── PX_Font.obj │ ├── PX_Hashmap.obj │ ├── PX_Huffman.obj │ ├── PX_Json.obj │ ├── PX_KalmanFilter.obj │ ├── PX_Lexer.obj │ ├── PX_Linker.obj │ ├── PX_List.obj │ ├── PX_Log.obj │ ├── PX_MFCC.obj │ ├── PX_MODBUS.obj │ ├── PX_Memory.obj │ ├── PX_MemoryPool.obj │ ├── PX_Object.obj │ ├── PX_Packet.obj │ ├── PX_ParallelCore.obj │ ├── PX_Partical.obj │ ├── PX_Quadtree.obj │ ├── PX_Quicksort.obj │ ├── PX_Resource.obj │ ├── PX_Script_ASMCompiler.obj │ ├── PX_Script_Interpreter.obj │ ├── PX_Script_VM.obj │ ├── PX_Sha256.obj │ ├── PX_Sound.obj │ ├── PX_SoundLab.obj │ ├── PX_SoundModule.obj │ ├── PX_String.obj │ ├── PX_Surface.obj │ ├── PX_Sync.obj │ ├── PX_TRaw.obj │ ├── PX_Texture.obj │ ├── PX_Tuning.obj │ ├── PX_Typedef.obj │ ├── PX_Vector.obj │ ├── PX_Wave.obj │ ├── PX_World.obj │ ├── PX_curve25519.obj │ ├── PX_rbtree.obj │ ├── PainterEngine.Build.CppClean.log │ ├── PainterEngine.lastbuildstate │ ├── PainterEngine.log │ ├── PainterEngine.write.1.tlog │ ├── PainterEngine_Console.obj │ ├── PainterEngine_MessageBox.obj │ ├── PainterEngine_Runtime.obj │ ├── Platform_Windows_D2D.obj │ ├── Platform_Windows_DSound.obj │ ├── cl.command.1.tlog │ ├── lib.command.1.tlog │ ├── px_udp.obj │ ├── vc100.idb │ └── vc100.pdb │ ├── PainterEngine.vcxproj │ ├── PainterEngine.vcxproj.filters │ ├── PainterEngine.vcxproj.user │ └── Release │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── Lib-link.read.1.tlog │ ├── Lib-link.write.1.tlog │ ├── PX_3D.obj │ ├── PX_3D_ObjData.obj │ ├── PX_AES.obj │ ├── PX_ANN.obj │ ├── PX_Animation.obj │ ├── PX_Arle.obj │ ├── PX_Base64.obj │ ├── PX_BaseGeo.obj │ ├── PX_Bitmap.obj │ ├── PX_BpNeural.obj │ ├── PX_Effect.obj │ ├── PX_Font.obj │ ├── PX_Hashmap.obj │ ├── PX_Huffman.obj │ ├── PX_Json.obj │ ├── PX_KalmanFilter.obj │ ├── PX_Lexer.obj │ ├── PX_Linker.obj │ ├── PX_List.obj │ ├── PX_Log.obj │ ├── PX_MFCC.obj │ ├── PX_MODBUS.obj │ ├── PX_Memory.obj │ ├── PX_MemoryPool.obj │ ├── PX_Object.obj │ ├── PX_Packet.obj │ ├── PX_ParallelCore.obj │ ├── PX_Partical.obj │ ├── PX_Quadtree.obj │ ├── PX_Quicksort.obj │ ├── PX_Resource.obj │ ├── PX_Script_ASMCompiler.obj │ ├── PX_Script_Interpreter.obj │ ├── PX_Script_VM.obj │ ├── PX_Sha256.obj │ ├── PX_Sound.obj │ ├── PX_SoundLab.obj │ ├── PX_SoundModule.obj │ ├── PX_String.obj │ ├── PX_Surface.obj │ ├── PX_Sync.obj │ ├── PX_TRaw.obj │ ├── PX_Texture.obj │ ├── PX_Tuning.obj │ ├── PX_Typedef.obj │ ├── PX_Vector.obj │ ├── PX_Wave.obj │ ├── PX_World.obj │ ├── PX_curve25519.obj │ ├── PX_rbtree.obj │ ├── PainterEngine.Build.CppClean.log │ ├── PainterEngine.lastbuildstate │ ├── PainterEngine.log │ ├── PainterEngine.vcxprojResolveAssemblyReference.cache │ ├── PainterEngine.write.1.tlog │ ├── PainterEngine_Console.obj │ ├── PainterEngine_MessageBox.obj │ ├── PainterEngine_Runtime.obj │ ├── Platform_Windows_D2D.obj │ ├── Platform_Windows_DSound.obj │ ├── cl.command.1.tlog │ ├── lib.command.1.tlog │ ├── px_udp.obj │ └── vc100.pdb ├── PainterEngine Startup ├── PainterEngine Network │ └── GameServer_Network.h ├── PainterEngine Startup.opensdf ├── PainterEngine Startup.sln ├── PainterEngine Startup.suo ├── PainterEngine Startup │ ├── PainterEngine Startup.aps │ ├── PainterEngine Startup.rc │ ├── PainterEngine Startup.vcxproj │ ├── PainterEngine Startup.vcxproj.filters │ ├── PainterEngine Startup.vcxproj.user │ ├── PainterEngine_Application.c │ ├── PainterEngine_Application.h │ ├── PainterEngine_Lobby.c │ ├── PainterEngine_Lobby.h │ ├── PainterEngine_Login.c │ ├── PainterEngine_Login.h │ ├── PainterEngine_SignUp.c │ ├── PainterEngine_SignUp.h │ ├── PainterEngine_Startup.c │ ├── PainterEngine_Startup.h │ ├── __main.c │ └── resource.h ├── PainterEngine StartupServer │ ├── GameLoginServer_Lobby.c │ ├── GameLoginServer_Lobby.h │ ├── PainterEngine StartupServer.aps │ ├── PainterEngine StartupServer.rc │ ├── PainterEngine StartupServer.vcxproj │ ├── PainterEngine StartupServer.vcxproj.filters │ ├── PainterEngine StartupServer.vcxproj.user │ ├── PainterEngine_Application.c │ ├── PainterEngine_Application.h │ ├── PainterEngine_Startup.c │ ├── PainterEngine_Startup.h │ ├── PainterEngine_StartupServer_Database.c │ ├── PainterEngine_StartupServer_Database.h │ ├── PainterEngine_StartupServer_Lobby.c │ ├── PainterEngine_StartupServer_Lobby.h │ ├── PainterEngine_StartupServer_Login.c │ ├── PainterEngine_StartupServer_Login.h │ ├── PainterEngine_StartupServer_SignUp.c │ ├── PainterEngine_StartupServer_SignUp.h │ ├── __main.c │ └── resource.h └── PainterEngine │ ├── PainterEngine.vcxproj │ ├── PainterEngine.vcxproj.filters │ └── PainterEngine.vcxproj.user ├── PainterEngine ├── architecture │ ├── PainterEngine_Console.c │ ├── PainterEngine_Console.h │ ├── PainterEngine_MessageBox.c │ ├── PainterEngine_MessageBox.h │ ├── PainterEngine_Runtime.c │ └── PainterEngine_Runtime.h ├── core │ ├── PX_3D.c │ ├── PX_3D.h │ ├── PX_AES.c │ ├── PX_AES.h │ ├── PX_ANN.c │ ├── PX_ANN.h │ ├── PX_Arle.c │ ├── PX_Arle.h │ ├── PX_Base64.c │ ├── PX_Base64.h │ ├── PX_BaseGeo.c │ ├── PX_BaseGeo.h │ ├── PX_Bitmap.c │ ├── PX_Bitmap.h │ ├── PX_BpNeural.c │ ├── PX_BpNeural.h │ ├── PX_Core.h │ ├── PX_Effect.c │ ├── PX_Effect.h │ ├── PX_Font.c │ ├── PX_Font.h │ ├── PX_Hashmap.c │ ├── PX_Hashmap.h │ ├── PX_Huffman.c │ ├── PX_Huffman.h │ ├── PX_KalmanFilter.c │ ├── PX_KalmanFilter.h │ ├── PX_Linker.c │ ├── PX_Linker.h │ ├── PX_List.c │ ├── PX_List.h │ ├── PX_Log.c │ ├── PX_Log.h │ ├── PX_MFCC.c │ ├── PX_MFCC.h │ ├── PX_MathTable.h │ ├── PX_Memory.c │ ├── PX_Memory.h │ ├── PX_MemoryPool.c │ ├── PX_MemoryPool.h │ ├── PX_Packet.c │ ├── PX_Packet.h │ ├── PX_ParallelCore.c │ ├── PX_ParallelCore.h │ ├── PX_Quadtree.c │ ├── PX_Quadtree.h │ ├── PX_Quicksort.c │ ├── PX_Quicksort.h │ ├── PX_Sha256.c │ ├── PX_Sha256.h │ ├── PX_Sound.c │ ├── PX_Sound.h │ ├── PX_SoundModule.c │ ├── PX_SoundModule.h │ ├── PX_String.c │ ├── PX_String.h │ ├── PX_Surface.c │ ├── PX_Surface.h │ ├── PX_TRaw.c │ ├── PX_TRaw.h │ ├── PX_Texture.c │ ├── PX_Texture.h │ ├── PX_Tuning.c │ ├── PX_Tuning.h │ ├── PX_Typedef.c │ ├── PX_Typedef.h │ ├── PX_Vector.c │ ├── PX_Vector.h │ ├── PX_Wave.c │ ├── PX_Wave.h │ ├── PX_curve25519.c │ ├── PX_curve25519.h │ ├── PX_rbtree.c │ └── PX_rbtree.h ├── kernel │ ├── PX_2dxCommon.h │ ├── PX_3D_ObjData.c │ ├── PX_3D_ObjData.h │ ├── PX_Animation.c │ ├── PX_Animation.h │ ├── PX_Json.c │ ├── PX_Json.h │ ├── PX_Kernel.h │ ├── PX_Lexer.c │ ├── PX_Lexer.h │ ├── PX_MODBUS.c │ ├── PX_MODBUS.h │ ├── PX_Object.c │ ├── PX_Object.h │ ├── PX_Partical.c │ ├── PX_Partical.h │ ├── PX_Resource.c │ ├── PX_Resource.h │ ├── PX_ScriptCore.h │ ├── PX_Script_ASMCompiler.c │ ├── PX_Script_ASMCompiler.h │ ├── PX_Script_Interpreter.c │ ├── PX_Script_Interpreter.h │ ├── PX_Script_VM.c │ ├── PX_Script_VM.h │ ├── PX_SoundLab.c │ ├── PX_SoundLab.h │ ├── PX_Sync.c │ ├── PX_Sync.h │ ├── PX_World.c │ ├── PX_World.h │ └── ParticalScript_module.txt ├── platform │ └── windows │ │ ├── Platform_Windows_Audio.h │ │ ├── Platform_Windows_D2D.cbak │ │ ├── Platform_Windows_D2D.cpp │ │ ├── Platform_Windows_D2D.h │ │ ├── Platform_Windows_D2D.hcbak │ │ ├── Platform_Windows_D2D_DINPUT.cpp │ │ ├── Platform_Windows_D2D_DINPUT.h │ │ ├── Platform_Windows_D3D.cpp │ │ ├── Platform_Windows_D3D.h │ │ ├── Platform_Windows_DSound.cpp │ │ ├── Platform_Windows_SerialPort.c │ │ ├── Platform_Windows_SerialPort.h │ │ ├── Platform_Windows_WaveOut.c │ │ ├── makefile │ │ ├── module │ │ ├── PainterEngine_Application.c │ │ ├── PainterEngine_Application.h │ │ ├── PainterEngine_Startup.c │ │ ├── PainterEngine_Startup.h │ │ └── __main.c │ │ ├── px_udp.c │ │ └── px_udp.h └── supports │ ├── PainterEngine_makefile │ └── makefile │ ├── demo │ ├── 2dx-shell.ps1 │ ├── Effect │ │ ├── MatrixEffect_ui.c │ │ └── MatrixEffect_ui.h │ ├── PainterEngine_2dxMakeTool.exe │ ├── PainterEngine_PngToTRaw.exe │ ├── bunny.obj │ ├── clock.2dx │ ├── fox animation run │ │ ├── 2dx-shell.ps1 │ │ ├── FileToC.exe │ │ ├── PainterEngine_2dxMakeTool.exe │ │ ├── PainterEngine_PngToTRaw.exe │ │ ├── fox console logo.png │ │ ├── fox console logo.traw │ │ ├── fox.psb │ │ ├── fox_console_logo.traw.h │ │ ├── jump 0.png │ │ ├── jump down.png │ │ ├── jump up.png │ │ ├── makefile.txt │ │ ├── run 1.png │ │ ├── run 2.png │ │ ├── run 3.png │ │ ├── run 4.png │ │ ├── run 5.png │ │ ├── run 6.png │ │ ├── stand 1.png │ │ ├── stand 2.png │ │ ├── stand 3.png │ │ ├── stand 4.png │ │ ├── stand 5.png │ │ ├── stand 6.png │ │ ├── stand 7.png │ │ ├── stand 8.png │ │ ├── stand 8.sai2 │ │ ├── walk 1.png │ │ ├── walk 2.png │ │ ├── walk 3.png │ │ ├── walk 4.png │ │ ├── walk 5.png │ │ └── walk 6.png │ ├── fox animation │ │ ├── 2dx-shell.ps1 │ │ ├── FileToC.exe │ │ ├── PainterEngine_2dxMakeTool.exe │ │ ├── PainterEngine_PngToTRaw.exe │ │ ├── fox console logo.png │ │ ├── fox console logo.traw │ │ ├── fox.psb │ │ ├── fox_console_logo.traw.h │ │ ├── jump 0.png │ │ ├── jump down.png │ │ ├── jump up.png │ │ ├── makefile.txt │ │ ├── release │ │ │ ├── fox.2dx │ │ │ ├── loginfox.2dx │ │ │ └── release.2dx │ │ ├── run 1.png │ │ ├── run 2.png │ │ ├── run 3.png │ │ ├── run 4.png │ │ ├── run 5.png │ │ ├── run 6.png │ │ ├── stand 1.png │ │ ├── stand 2.png │ │ ├── stand 3.png │ │ ├── stand 4.png │ │ ├── stand 5.png │ │ ├── stand 6.png │ │ ├── stand 7.png │ │ ├── stand 8.png │ │ ├── stand 8.sai2 │ │ ├── walk 1.png │ │ ├── walk 2.png │ │ ├── walk 3.png │ │ ├── walk 4.png │ │ ├── walk 5.png │ │ └── walk 6.png │ ├── loading │ │ ├── 1.png │ │ ├── 1.traw │ │ ├── 10.png │ │ ├── 10.traw │ │ ├── 11.png │ │ ├── 11.traw │ │ ├── 12.png │ │ ├── 12.traw │ │ ├── 2.png │ │ ├── 2.traw │ │ ├── 2dxs.txt │ │ ├── 3.png │ │ ├── 3.traw │ │ ├── 4.png │ │ ├── 4.traw │ │ ├── 5.png │ │ ├── 5.traw │ │ ├── 6.png │ │ ├── 6.traw │ │ ├── 7.png │ │ ├── 7.traw │ │ ├── 8.png │ │ ├── 8.traw │ │ ├── 9.png │ │ └── 9.traw │ ├── partical.txt │ ├── source │ │ ├── 2dx.txt │ │ ├── 3D.txt │ │ ├── 3d pixelshader.txt │ │ ├── Ann.txt │ │ ├── BP ANN.txt │ │ ├── Bitmap.txt │ │ ├── GUI.txt │ │ ├── Partical.txt │ │ ├── Protocal.txt │ │ ├── Script.txt │ │ ├── Texture.txt │ │ ├── Traw.txt │ │ ├── accelerate.txt │ │ ├── main.txt │ │ ├── sound.txt │ │ └── tuning.txt │ ├── star.png │ ├── star.psd │ ├── star.traw │ ├── star2.png │ └── star2.traw │ ├── documents │ ├── PainterEngine API Manual.docx │ └── 一个轻量级内存池的实现.docx │ ├── logo │ ├── fox.ico │ └── foxlogo.png │ └── win_makefile │ └── makefile ├── 开源及版权声明.png └── 最终编译版本 └── PainterEngine Game Release.zip /PainterEngine Game/PainterEngine Game Client/Game_UI.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Client/Game_UI.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_UI_H 2 | #define GAME_UI_H 3 | #include "../PainterEngine Game/Game_Play.h" 4 | #include "../PainterEngine Game/Game_ObjectTypes.h" 5 | #include "Game_UI_StatusPanel.h" 6 | #include "Game_UI_Map.h" 7 | #include "Game_UI_ScorePanel.h" 8 | #include "Game_UI_RankPanel.h" 9 | #include "Game_UI_Message.h" 10 | 11 | 12 | 13 | typedef struct 14 | { 15 | px_texture *pTexture; 16 | px_float rotation; 17 | }Game_Object_Cursor; 18 | 19 | typedef struct 20 | { 21 | PX_Instance *pIns; 22 | Game_Play *pPlay; 23 | Game_Object_Cursor cursor; 24 | Game_UI_StatusPanel uiPanel; 25 | Game_UI_Map uiMap; 26 | Game_UI_ScorePanel uiScorePanel; 27 | Game_UI_RankPanel uiRankPanel; 28 | Game_UI_Message uiMessage; 29 | }Game_UI; 30 | 31 | px_bool Game_UIInitialize(PX_Instance *pIns,Game_UI *ui,Game_Play *pPlay); 32 | px_void Game_UIRender(px_surface *renderSurface,Game_UI *ui,px_int monitorPlayer,px_int fps,px_dword elpased); 33 | px_void Game_UIPostEvent(Game_UI *ui,PX_Object_Event e); 34 | #endif 35 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI_Map.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_UI_MAP_H 2 | #define GAME_UI_MAP_H 3 | #include "../PainterEngine Game/Game_Play.h" 4 | #include "../PainterEngine Game/Game_ObjectTypes.h" 5 | 6 | #define GAME_UI_MAP_SCALE 100 7 | 8 | typedef struct 9 | { 10 | PX_Instance *pIns; 11 | Game_Play *pPlay; 12 | px_dword elpased; 13 | px_float scale; 14 | px_float rotation; 15 | px_shape map_star; 16 | px_shape map_treasure; 17 | px_texture backgroundTexture; 18 | px_texture renderTarget; 19 | }Game_UI_Map; 20 | 21 | px_bool Game_UI_MapInitialize(PX_Instance *pIns,Game_UI_Map *map,Game_Play *pPlay,px_int size); 22 | px_void Game_UI_MapRender(px_surface *renderSurface,Game_UI_Map *map,px_dword elpased); 23 | px_void Game_UI_MapPostEvent(Game_UI_Map *map,PX_Object_Event e); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI_Message.c: -------------------------------------------------------------------------------- 1 | #include "Game_UI_Message.h" 2 | 3 | px_bool Game_UI_MessageInitialize(Game_UI_Message *ui,PX_Instance *pIns,Game_Play *pPlay) 4 | { 5 | ui->currentElpased=0; 6 | ui->currentIndex=-1; 7 | ui->pIns=pIns; 8 | ui->pPlay=pPlay; 9 | return PX_TRUE; 10 | } 11 | 12 | px_void Game_UI_MessageRender(px_surface *renderSurface,Game_UI_Message *ui,px_dword elpased) 13 | { 14 | ui->currentElpased+=elpased; 15 | 16 | if (ui->currentElpased>8000) 17 | { 18 | if (ui->currentIndexpPlay->Messages.size-1) 19 | { 20 | ui->currentIndex++; 21 | ui->currentElpased=0; 22 | } 23 | } 24 | 25 | if (ui->currentIndexpPlay->Messages.size) 26 | { 27 | if (ui->currentElpased<=8000) 28 | { 29 | Game_Play_Message *pMessage=PX_VECTORAT(Game_Play_Message,&ui->pPlay->Messages,ui->currentIndex); 30 | 31 | if (ui->currentElpased>=3000) 32 | { 33 | px_uchar a=(px_uchar)((8000-ui->currentElpased)/5000.0f*255); 34 | PX_FontModuleDrawText(renderSurface,ui->pIns->runtime.width/2,128,pMessage->Message,PX_COLOR(a,255,0,0),&ui->pIns->FontModule32,PX_FONT_ALIGN_XCENTER); 35 | } 36 | else 37 | { 38 | PX_FontModuleDrawText(renderSurface,ui->pIns->runtime.width/2,128,pMessage->Message,PX_COLOR(255,255,0,0),&ui->pIns->FontModule32,PX_FONT_ALIGN_XCENTER); 39 | } 40 | } 41 | } 42 | 43 | } 44 | 45 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI_Message.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_UI_MESSAGE_H 2 | #define GAME_UI_MESSAGE_H 3 | 4 | #include "../PainterEngine Game/Game_Play.h" 5 | #include "../PainterEngine Game/Game_ObjectTypes.h" 6 | 7 | typedef struct 8 | { 9 | PX_Instance *pIns; 10 | Game_Play *pPlay; 11 | px_int currentIndex; 12 | px_dword currentElpased; 13 | }Game_UI_Message; 14 | 15 | px_bool Game_UI_MessageInitialize(Game_UI_Message *ui,PX_Instance *pIns,Game_Play *pPlay); 16 | px_void Game_UI_MessageRender(px_surface *renderSurface,Game_UI_Message *ui,px_dword elpased); 17 | 18 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI_RankPanel.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_UI_RANKPANEL_H 2 | #define GAME_UI_RANKPANEL_H 3 | 4 | #include "../PainterEngine Game/Game_Play.h" 5 | #include "../PainterEngine Game/Game_ObjectTypes.h" 6 | 7 | typedef struct 8 | { 9 | PX_Instance *pIns; 10 | Game_Play *pPlay; 11 | }Game_UI_RankPanel; 12 | 13 | px_bool Game_UI_RankPanelInitialize(Game_UI_RankPanel *ui,PX_Instance *pIns,Game_Play *pPlay); 14 | px_void Game_UI_RankPanelRender(px_surface *renderSurface,Game_UI_RankPanel *ui,px_dword elpased); 15 | 16 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI_ScorePanel.c: -------------------------------------------------------------------------------- 1 | #include "Game_UI_ScorePanel.h" 2 | 3 | px_bool Game_UI_ScorePanelInitialize(Game_UI_ScorePanel *ui,PX_Instance *pIns,Game_Play *pPlay) 4 | { 5 | ui->pIns=pIns; 6 | ui->pPlay=pPlay; 7 | ui->displayScore=0; 8 | return PX_TRUE; 9 | } 10 | 11 | px_void Game_UI_ScorePanelRender(px_surface *renderSurface,Game_UI_ScorePanel *ui,px_int monitorPlayer,px_dword elpased) 12 | { 13 | px_float score; 14 | px_char ScoreContent[32]; 15 | px_word ScoreContentw[32]; 16 | 17 | if (monitorPlayer>PX_COUNTOF(ui->pPlay->Players)) 18 | { 19 | PX_ASSERT(); 20 | return; 21 | } 22 | score=ui->pPlay->Players[monitorPlayer].Score; 23 | if (ui->displayScore>score) 24 | { 25 | ui->displayScore-=elpased; 26 | if (ui->displayScoredisplayScore=(px_int)score; 29 | } 30 | } 31 | else 32 | { 33 | ui->displayScore+=elpased; 34 | if (ui->displayScore>score) 35 | { 36 | ui->displayScore=(px_int)score; 37 | } 38 | } 39 | 40 | PX_FontModuleDrawText(renderSurface,ui->pIns->runtime.width/2+92,48,(px_word *)L"Score:",PX_COLOR(255,0,0,0),&ui->pIns->FontModule24,PX_FONT_ALIGN_XRIGHT); 41 | PX_itoa((px_int)ui->displayScore,ScoreContent,sizeof(ScoreContent),10); 42 | PX_FontModule_atow(ScoreContent,ScoreContentw); 43 | PX_FontModuleDrawText(renderSurface,ui->pIns->runtime.width/2+104,64,ScoreContentw,PX_COLOR(255,0,0,0),&ui->pIns->FontModuleScore,PX_FONT_ALIGN_XLEFT); 44 | } 45 | 46 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI_ScorePanel.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_UI_SCOREPANEL_H 2 | #define GAME_UI_SCOREPANEL_H 3 | 4 | #include "../PainterEngine Game/Game_Play.h" 5 | #include "../PainterEngine Game/Game_ObjectTypes.h" 6 | 7 | typedef struct 8 | { 9 | PX_Instance *pIns; 10 | Game_Play *pPlay; 11 | px_int displayScore; 12 | }Game_UI_ScorePanel; 13 | 14 | px_bool Game_UI_ScorePanelInitialize(Game_UI_ScorePanel *ui,PX_Instance *pIns,Game_Play *pPlay); 15 | px_void Game_UI_ScorePanelRender(px_surface *renderSurface,Game_UI_ScorePanel *ui,px_int monitorPlayer,px_dword elpased); 16 | 17 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/Game_UI_StatusPanel.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_UI_PANEL_H 2 | #define GAME_UI_PANEL_H 3 | 4 | #include "../PainterEngine Game/Game_Play.h" 5 | #include "../PainterEngine Game/Game_ObjectTypes.h" 6 | 7 | #define GAME_UI_MAX_SUPPORT_WEAPON 16 8 | 9 | typedef struct 10 | { 11 | PX_Instance *pIns; 12 | Game_Play *pPlay; 13 | px_int lastAtom; 14 | px_dword weaponSwitchElpased; 15 | px_dword lastWeaponIndex; 16 | px_dword flashelpased; 17 | px_dword lastWeaponCount; 18 | px_shape *weaponlogo[GAME_UI_MAX_SUPPORT_WEAPON]; 19 | }Game_UI_StatusPanel; 20 | 21 | px_bool Game_UI_StatusPanelInitialize(PX_Instance *pIns,Game_UI_StatusPanel *ui,Game_Play *pPlay); 22 | px_void Game_UI_StatusPanelRender(px_surface *renderSurface,Game_UI_StatusPanel *ui,px_int monitorPlayer,px_int fps,px_dword elpased); 23 | px_void Game_UI_StatusPanelPostEvent(Game_UI_StatusPanel *ui,PX_Object_Event e); 24 | 25 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/PainterEngine Game Client.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Client/PainterEngine Game Client.aps -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/PainterEngine Game Client.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Client/PainterEngine Game Client.rc -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/PainterEngine Game Client.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/PainterEngine_ApplicationClient.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Client/PainterEngine_ApplicationClient.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/PainterEngine_ApplicationClient.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_APPLICATION_H 2 | #define PAINTERENGINE_APPLICATION_H 3 | #include "../PainterEngine Game/PainterEngine_Startup.h" 4 | #include "../PainterEngine Game/Game_Play.h" 5 | #include "PainterEngine_GameClientStartup.h" 6 | #include "Game_UI.h" 7 | 8 | ////////////////////////////////////////////////////////////////////////// 9 | //Configures 10 | #define PX_WINDOW_NAME "" 11 | 12 | #define PX_WINDOW_WIDTH 1200 13 | #define PX_WINDOW_HEIGHT 800 14 | 15 | //memorypool for runtime(bytes) 16 | #define PX_MEMORY_UI_SIZE (1024*1024*32) 17 | #define PX_MEMORY_RESOURCES_SIZE (1024*1024*96) 18 | #define PX_MEMORY_GAME_SIZE (1024*1024*32) 19 | ////////////////////////////////////////////////////////////////////////// 20 | 21 | typedef enum 22 | { 23 | PX_APPLICATION_STATUS_DOWNLOADING, 24 | PX_APPLICATION_STATUS_CONNECTING, 25 | PX_APPLICATION_STATUS_WAITING, 26 | PX_APPLICATION_STATUS_GAMING, 27 | PX_APPLICATION_STATUS_GAMEOVER, 28 | }PX_APPLICATION_STATUS; 29 | 30 | #define PX_APPLICATION_CONNECTIONTIMEOUT_DELAY 45000 31 | 32 | 33 | typedef struct 34 | { 35 | PX_Instance Instance; 36 | 37 | PX_UDP udp; 38 | PX_SyncFrame_Client SyncFrameClient; 39 | PX_SyncData_Client SyncDataClient; 40 | 41 | PX_MessageBox messagebox,SyncMessageBox; 42 | Game_Play play; 43 | Game_UI ui; 44 | 45 | px_int avg_fps; 46 | px_int sum_fps; 47 | px_dword fps_elpased; 48 | 49 | px_dword gameTime; 50 | px_dword syncTime; 51 | px_dword controllerSyncTime; 52 | px_dword remianUpdateTime; 53 | px_dword connectionTimeOutElpased; 54 | 55 | px_int ObMonitorPlayer; 56 | px_dword enterGameOverElpased; 57 | px_dword gameOverElpased; 58 | 59 | PX_APPLICATION_STATUS status; 60 | Game_Play_Instr LastCursorInstr; 61 | }PX_Application; 62 | 63 | extern PX_Application App; 64 | 65 | px_bool PX_ApplicationInitialize(PX_Application *App,const px_char ServerIpAddr[],px_ushort dataPort,px_ushort syncPort,px_dword client_id,px_dword server_id); 66 | px_void PX_ApplicationUpdate(PX_Application *App,px_dword elpased); 67 | px_void PX_ApplicationRender(PX_Application *App,px_dword elpased); 68 | px_void PX_ApplicationPostEvent(PX_Application *App,PX_Object_Event e); 69 | px_void PX_ApplicationSaveReplay(PX_Application *App); 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/PainterEngine_GameClientStartup.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_GAMECLIENTSTARTUP_H 2 | #define PAINTERENGINE_GAMECLIENTSTARTUP_H 3 | 4 | #include "../../PainterEngine/core/PX_Core.h" 5 | 6 | typedef struct 7 | { 8 | px_char IpAddr[32]; 9 | px_ushort syncDataPort; 10 | px_ushort syncFramePort; 11 | px_dword clientID; 12 | px_dword serverID; 13 | }PX_GameClientStartUp; 14 | 15 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/__main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Client/__main.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Client/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Client/resource.h -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Server/PainterEngine Game Server.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Server/PainterEngine Game Server.aps -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Server/PainterEngine Game Server.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Server/PainterEngine Game Server.rc -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Server/PainterEngine Game Server.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 源文件 23 | 24 | 25 | 26 | 27 | 头文件 28 | 29 | 30 | 头文件 31 | 32 | 33 | 头文件 34 | 35 | 36 | 37 | 38 | 资源文件 39 | 40 | 41 | 42 | 43 | 资源文件 44 | 45 | 46 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Server/PainterEngine Game Server.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Server/PainterEngine_ApplicationServer.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_APPLICATION_H 2 | #define PAINTERENGINE_APPLICATION_H 3 | #include "../PainterEngine Game/PainterEngine_Startup.h" 4 | #include "../PainterEngine Game/Game_Play.h" 5 | #include "PainterEngine_GameServerStartup.h" 6 | 7 | ////////////////////////////////////////////////////////////////////////// 8 | //Configures 9 | #define PX_WINDOW_NAME "" 10 | 11 | #define PX_WINDOW_WIDTH 0 12 | #define PX_WINDOW_HEIGHT 0 13 | 14 | //memorypool for runtime(bytes) 15 | #define PX_MEMORY_UI_SIZE (1024*1024) 16 | #define PX_MEMORY_RESOURCES_SIZE (1024*1024*2) 17 | #define PX_MEMORY_GAME_SIZE (1024*1024*32) 18 | 19 | #define PX_APPLICATION_GAMEOVER_DELAY 6000 20 | #define PX_APPLICATION_CONNECTIONTIMEOUT_DELAY 30000 21 | ////////////////////////////////////////////////////////////////////////// 22 | 23 | typedef enum 24 | { 25 | PX_APPLICATION_STATUS_CONNECTING, 26 | PX_APPLICATION_STATUS_GAMMING, 27 | }PX_APPLICATION_STATUS; 28 | 29 | typedef struct 30 | { 31 | PX_Instance Instance; 32 | Game_Play play; 33 | PX_UDP GameUDP,DataUDP; 34 | px_dword syncTime; 35 | px_dword gameovrtelpased; 36 | PX_APPLICATION_STATUS status; 37 | px_dword connectionTimeOutElpased; 38 | PX_SyncFrame_Server SyncFrameServer; 39 | PX_SyncData_Server SyncDataServer; 40 | }PX_Application; 41 | 42 | extern PX_Application App; 43 | 44 | px_bool PX_ApplicationInitialize(PX_Application *App,px_ushort dataport,px_ushort gameport,PX_GameServerStartUp_PlayerNetInfo PlayerNet[],PX_GameStartUp_GameDesc *gameDesc,PX_GameStartUp_PlayerDataDesc PlayerDataDesc[],px_int PlayerCount); 45 | px_void PX_ApplicationUpdate(PX_Application *App,px_dword elpased); 46 | px_void PX_ApplicationRender(PX_Application *App,px_dword elpased); 47 | px_void PX_ApplicationPostEvent(PX_Application *App,PX_Object_Event e); 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Server/PainterEngine_GameServerStartup.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_GAMESERVERSTARTUP_H 2 | #define PAINTERENGINE_GAMESERVERSTARTUP_H 3 | 4 | #include "../../PainterEngine/core/PX_Core.h" 5 | #define PAINTERENGINE_GAMESERVER_RESULT_PORT 47760 6 | 7 | 8 | typedef struct 9 | { 10 | px_ushort dataport; 11 | px_ushort gameport; 12 | px_dword playerCount; 13 | }PX_GameServerStartUp_Info; 14 | 15 | typedef struct 16 | { 17 | px_dword clientID; 18 | px_dword serverID; 19 | }PX_GameServerStartUp_PlayerNetInfo; 20 | 21 | typedef struct 22 | { 23 | px_char account[32]; 24 | px_dword group; 25 | px_dword rank; 26 | px_dword gameType; 27 | px_dword score; 28 | }PX_GameServer_PlayerResult; 29 | 30 | //Game_Play_PlayerDataDesc 31 | 32 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game Server/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game Server/resource.h -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game.suo -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_ObjectTypes.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_TYPE_H 2 | #define GAME_OBJECT_TYPE_H 3 | 4 | #include "Game_Object_Ship.h" 5 | #include "Game_Object_Stone.h" 6 | #include "Game_Object_Alien.h" 7 | #include "Game_Object_TreasureTag.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Alien.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_ALIEN_H 2 | #define GAME_OBJECT_ALIEN_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | #include "Game_Object_Pickup.h" 7 | 8 | #define GAME_ALIEN_GEN_SPACE 300 9 | #define GAME_ALIEN_SPEED 80 10 | #define GAME_ALIEN_DEFAULT_LIFE 80 11 | 12 | typedef struct 13 | { 14 | px_float life; 15 | px_point velocity; 16 | PX_Animation animation; 17 | px_bool animationTag; 18 | px_dword beAttackElpased; 19 | 20 | PX_Instance *pIns; 21 | PX_World *pWorld; 22 | }Game_Object_Alien; 23 | 24 | px_void Game_Object_AlienCreate(PX_Instance *pIns,PX_World *pWorld); 25 | 26 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Blackhole.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game/Game_Object_Blackhole.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Blackhole.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_BLACKHOLE_H 2 | #define GAME_OBJECT_BLACKHOLE_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_BlackholeExplosion.h" 6 | 7 | #define GAME_OBJECT_BLACKHOLE_ALIVE_TIME 8000 8 | #define GAME_OBJECT_BLACKHOLE_DEFAULT_SPEED 80 9 | #define GAME_OBJECT_BLACKHOLE_DAMAGE 150 10 | #define GAME_OBJECT_BLACKHOLE_SEARCH 400 11 | #define GAME_OBJECT_BLACKHOLE_SEARCH_COUNT 64 12 | 13 | typedef struct 14 | { 15 | PX_World *pWorld; 16 | PX_Instance *pIns; 17 | px_int Player; 18 | px_dword elpased; 19 | PX_Animation animation; 20 | px_point velocity; 21 | px_point direction; 22 | px_float angle; 23 | }Game_Object_BlackHole; 24 | 25 | px_void Game_Object_BlackHoleCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_int group,px_int player); 26 | 27 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_BlackholeExplosion.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_BLACKHOLEEXPLOSION_H 2 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_H 3 | 4 | #include "Game_Object_Base.h" 5 | 6 | 7 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_STAGE1 600 8 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_STAGE2 14000 9 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_STAGE3 400 10 | 11 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_ALIVE_TIME 15000 12 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_SEARCH_REGION 300 13 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_SEARCH_DAMAGEREGION 50 14 | 15 | #define GAME_OBJECT_BLACKHOLEEXPLOSION_DAMAGE 100 16 | 17 | typedef struct 18 | { 19 | px_float resx,resy; 20 | px_float resSize; 21 | px_dword alive; 22 | }Game_Object_BlackHoleExplosion_echo; 23 | 24 | typedef struct 25 | { 26 | PX_Instance *pIns; 27 | PX_World *pWorld; 28 | px_int player; 29 | px_dword elpased; 30 | px_dword soundPlayElpased; 31 | px_dword lastEcho; 32 | Game_Object_BlackHoleExplosion_echo echo[10]; 33 | }Game_Object_BlackHoleExplosion; 34 | 35 | px_void Game_Object_BlackHoleExplosionCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_int player); 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_FireExplosion.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_FIREEXPLOSION_H 2 | #define GAME_OBJECT_FIREEXPLOSION_H 3 | 4 | #include "Game_Object_Base.h" 5 | 6 | #define GAME_OBJECT_FIREEXPLOSION_DEFAULT_TIME 1000 7 | typedef struct 8 | { 9 | PX_World *pWorld; 10 | PX_Instance *pIns; 11 | px_dword alive; 12 | px_float range; 13 | px_bool ring; 14 | PX_Partical_Launcher launcher; 15 | }Game_Object_FireExplosion; 16 | 17 | px_void Game_Object_FireExplosionCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_float range,px_bool ring); 18 | 19 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_LaunchFire.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_LAUNCHFIRE_H 2 | #define GAME_OBJECT_LAUNCHFIRE_H 3 | 4 | #include "Game_Object_Base.h" 5 | 6 | #define GAME_OBJECT_SHOTGUNFIREASH_ALIVE_TIME 300 7 | 8 | typedef struct 9 | { 10 | PX_Instance *pIns; 11 | PX_World *pWorld; 12 | PX_Partical_Launcher launcher; 13 | px_dword alive; 14 | }Game_Object_LaunchFire; 15 | 16 | px_void Game_Object_LaunchFireCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_point velocity,const px_char sndKey[]); 17 | #endif 18 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Mine.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_MINE_H 2 | #define GAME_OBJECT_MINE_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | 7 | #define GAME_OBJECT_MINE_PREPARE_TIME 3000 8 | #define GAME_OBJECT_MINE_ALIVE_TIME 20000 9 | #define GAME_OBJECT_MINE_LAUNCH_SPEED 600 10 | #define GAME_OBJECT_MINE_DEFAULT_SPEED 200 11 | #define GAME_OBJECT_MINE_DAMAGE 35 12 | #define GAME_OBJECT_MINE_SEARCH 150 13 | 14 | typedef struct 15 | { 16 | PX_World *pWorld; 17 | PX_Instance *pIns; 18 | px_int Player; 19 | px_dword elpased; 20 | px_bool brun; 21 | PX_Animation animation; 22 | px_point velocity; 23 | px_float angle; 24 | }Game_Object_Mine; 25 | 26 | px_void Game_Object_MineCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_int group,px_int player); 27 | 28 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Missile.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_MISSILE_H 2 | #define GAME_OBJECT_MISSILE_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | 7 | #define GAME_OBJECT_MISSILE_PREPARE_TIME 500 8 | #define GAME_OBJECT_MISSILE_ALIVE_TIME 10000 9 | #define GAME_OBJECT_MISSILE_DEFAULT_SPEED1 500 10 | #define GAME_OBJECT_MISSILE_MAX_SPEED2 1000 11 | #define GAME_OBJECT_MISSILE_DAMAGE 25 12 | #define GAME_OBJECT_MISSILE_SEARCH 200 13 | 14 | typedef struct 15 | { 16 | PX_World *pWorld; 17 | PX_Instance *pIns; 18 | px_int Player; 19 | px_dword elpased; 20 | px_bool brun; 21 | PX_Animation animation; 22 | px_point velocity; 23 | px_point direction; 24 | }Game_Object_Missile; 25 | 26 | px_void Game_Object_MissileCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_int group,px_int player); 27 | 28 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Nuclear.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game/Game_Object_Nuclear.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Nuclear.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_NUCLEAR_H 2 | #define GAME_OBJECT_NUCLEAR_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | 7 | #define GAME_OBJECT_NUCLEAR_ALIVE_TIME 8000 8 | #define GAME_OBJECT_NUCLEAR_DEFAULT_SPEED 80 9 | #define GAME_OBJECT_NUCLEAR_DAMAGE 150 10 | #define GAME_OBJECT_NUCLEAR_SEARCH 400 11 | #define GAME_OBJECT_NUCLEAR_SEARCH_COUNT 64 12 | typedef struct 13 | { 14 | PX_World *pWorld; 15 | PX_Instance *pIns; 16 | px_int Player; 17 | px_dword elpased; 18 | PX_Animation animation; 19 | px_point velocity; 20 | px_point direction; 21 | }Game_Object_Nuclear; 22 | 23 | px_void Game_Object_NuclearCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_int group,px_int player); 24 | 25 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Pickup.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_PICKUP_H 2 | #define GAME_OBJECT_PICKUP_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_PickupExplosion.h" 6 | 7 | #define GAME_OBJECT_MISSILE_PICKUP_TIME 30000 8 | typedef enum 9 | { 10 | GAME_OBJECT_PICKUP_QUILITY_NORMAL, 11 | GAME_OBJECT_PICKUP_QUILITY_HIGH, 12 | }GAME_OBJECT_PICKUP_QUALITY; 13 | 14 | typedef struct 15 | { 16 | PX_World *pWorld; 17 | PX_Instance *pIns; 18 | px_shape *logo; 19 | px_dword elpased; 20 | px_point velocity; 21 | GAME_OBJECT_PICKUP_QUALITY quality; 22 | GAME_OBJECT_PICKETUP_TYPE type; 23 | }Game_Object_Pickup; 24 | 25 | px_void Game_Object_PickupCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,GAME_OBJECT_PICKETUP_TYPE type,GAME_OBJECT_PICKUP_QUALITY quality); 26 | px_void Game_Object_PickupRandCreate1(PX_Instance *pIns,PX_World *pWorld,px_point position); 27 | px_void Game_Object_PickupRandCreate2(PX_Instance *pIns,PX_World *pWorld,px_point position); 28 | px_void Game_Object_PickupRandCreate3(PX_Instance *pIns,PX_World *pWorld,px_point position); 29 | px_void Game_Object_PickupRandCreate4(PX_Instance *pIns,PX_World *pWorld,px_point position); 30 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_PickupExplosion.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_PICKUPEXPLOSION_H 2 | #define GAME_OBJECT_PICKUPEXPLOSION_H 3 | 4 | #include "Game_Object_Base.h" 5 | 6 | #define GAME_OBJECT_PICKUPEXPLOSION_ALIVE 500 7 | 8 | typedef enum 9 | { 10 | GAME_OBJECT_PICKETUP_TYPE_BLACKHOLE, 11 | GAME_OBJECT_PICKETUP_TYPE_MINE, 12 | GAME_OBJECT_PICKETUP_TYPE_MISSILE, 13 | GAME_OBJECT_PICKETUP_TYPE_NUCLEAR, 14 | GAME_OBJECT_PICKETUP_TYPE_RAILGUN, 15 | GAME_OBJECT_PICKETUP_TYPE_MACHINEGUN, 16 | GAME_OBJECT_PICKETUP_TYPE_HEALTH, 17 | GAME_OBJECT_PICKETUP_TYPE_SHIELD, 18 | GAME_OBJECT_PICKETUP_TYPE_SPEEDUP, 19 | GAME_OBJECT_PICKETUP_TYPE_POWERUP, 20 | GAME_OBJECT_PICKETUP_TYPE_PROTECTSHIELD, 21 | GAME_OBJECT_PICKETUP_TYPE_PIERCER, 22 | }GAME_OBJECT_PICKETUP_TYPE; 23 | 24 | typedef struct 25 | { 26 | PX_World *pWorld; 27 | PX_Instance *pIns; 28 | px_shape *logo; 29 | px_dword elpased; 30 | GAME_OBJECT_PICKETUP_TYPE type; 31 | }Game_Object_PickupExplosion; 32 | 33 | px_void Game_Object_PickupExplosionCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,GAME_OBJECT_PICKETUP_TYPE type); 34 | 35 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Piercer.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_PIERCER_H 2 | #define GAME_OBJECT_PIERCER_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | 7 | #define GAME_OBJECT_PIERCER_ALIVE_TIME 2000 8 | #define GAME_OBJECT_PIERCER_DEFAULT_SPEED 650 9 | #define GAME_OBJECT_PIERCER_DAMAGE 6 10 | 11 | typedef struct 12 | { 13 | PX_World *pWorld; 14 | PX_Instance *pIns; 15 | px_int Player; 16 | px_dword alive; 17 | PX_Animation animation; 18 | px_point velocity; 19 | px_point direction; 20 | 21 | }Game_Object_Piercer; 22 | 23 | px_void Game_Object_PiercerCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_point refvelocity,px_int group,px_int Player); 24 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_ProtectShield.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_PROTECTSHIELD_H 2 | #define GAME_OBJECT_PROTECTSHIELD_H 3 | 4 | #include "Game_Object_Base.h" 5 | 6 | 7 | #define GAME_OBJECT_PROTECTSHIELD_ALIVE_TIME 10000 8 | #define GAME_OBJECT_PROTECTSHIELD_DIAMETER 96 9 | typedef struct 10 | { 11 | PX_Instance *pIns; 12 | PX_World *pWorld; 13 | px_float angle; 14 | px_dword elpased; 15 | PX_Object *attachShipObject; 16 | px_int player; 17 | }Game_Object_ProtectShield; 18 | 19 | px_void Game_Object_ProtectShieldCreate(PX_Instance *pIns,PX_World *pWorld,PX_Object *pShipObject,px_int player); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Railgun.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_RAILGUN_H 2 | #define GAME_OBJECT_RAILGUN_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_RailgunExplosion.h" 6 | 7 | #define GAME_OBJECT_RAILGUN_ALIVE_TIME 6800 8 | #define GAME_OBJECT_RAILGUN_DEFAULT_SPEED 350 9 | #define GAME_OBJECT_RAILGUN_FOLLOW_SPEED 200 10 | #define GAME_OBJECT_RAILGUN_DAMAGE 5 11 | #define GAME_OBJECT_RAILGUN_SEARCH 200 12 | typedef struct 13 | { 14 | PX_World *pWorld; 15 | PX_Instance *pIns; 16 | px_int Player; 17 | px_dword alive; 18 | PX_Animation animation; 19 | px_point velocity; 20 | px_point direction; 21 | }Game_Object_Railgun; 22 | 23 | px_void Game_Object_RailgunCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_point refvelocity,px_int group,px_int Player); 24 | 25 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_RailgunExplosion.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_RAILGUNEXPLOSION_H 2 | #define GAME_OBJECT_RAILGUNEXPLOSION_H 3 | 4 | #include "Game_Object_Base.h" 5 | 6 | #define GAME_OBJECT_RAILGUNEXPLOSION_ALIVE_TIME 600 7 | 8 | typedef struct 9 | { 10 | PX_Instance *pIns; 11 | PX_World *pWorld; 12 | PX_Animation Animation; 13 | px_dword alive; 14 | }Game_Object_RailgunExplosion; 15 | 16 | px_void Game_Object_RailgunExplosionCreate(PX_Instance *pIns,PX_World *pWorld,px_point position); 17 | 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_RailgunFire.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_RAILGUNFIREASH_H 2 | #define GAME_OBJECT_RAILGUNFIREASH_H 3 | 4 | #include "Game_Object_Base.h" 5 | 6 | 7 | #define GAME_OBJECT_RAILGUNFIRE_ALIVE_TIME 480 8 | 9 | typedef struct 10 | { 11 | PX_Instance *pIns; 12 | PX_World *pWorld; 13 | PX_Animation Animation; 14 | px_dword alive; 15 | }Game_Object_RailgunFire; 16 | 17 | px_void Game_Object_RailgunFireCreate(PX_Instance *pIns,PX_World *pWorld,px_point position); 18 | 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Ship.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game/Game_Object_Ship.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Shotgun.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_SHOTGUN_H 2 | #define GAME_OBJECT_SHOTGUN_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | 7 | #define GAME_OBJECT_SHUTGUN_ALIVE_TIME 2000 8 | #define GAME_OBJECT_SHUTGUN_DEFAULT_SPEED 600 9 | #define GAME_OBJECT_SHUTGUN_DAMAGE 4 10 | typedef struct 11 | { 12 | PX_World *pWorld; 13 | PX_Instance *pIns; 14 | px_int Player; 15 | px_dword alive; 16 | px_dword show_impact_region; 17 | px_texture *tex; 18 | px_point velocity; 19 | px_point direction; 20 | 21 | }Game_Object_ShotGun; 22 | 23 | px_void Game_Object_ShotgunCreate(PX_Instance *pIns,PX_World *pWorld,px_point position,px_point direction,px_point refvelocity,px_int group,px_int Player); 24 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Stone.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_STONE_H 2 | #define GAME_OBJECT_STONE_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | #include "Game_Object_Pickup.h" 7 | 8 | #define GAME_STONE_GEN_SPACE 300 9 | #define GAME_STONE_DEFALUE_MIN_ROTATION_SPEED 10 10 | #define GAME_STONE_DEFALUE_MAX_ROTATION_SPEED 360 11 | 12 | typedef struct 13 | { 14 | px_float life; 15 | px_float scale; 16 | px_point velocity; 17 | px_float rotation; 18 | px_float rotationSpeed; 19 | px_texture *pTexture; 20 | px_bool show_impact_region; 21 | px_dword beAttackElpased; 22 | 23 | PX_Instance *pIns; 24 | PX_World *pWorld; 25 | }Game_Object_Stone; 26 | px_void Game_Object_StoneCreate(PX_Instance *pIns,PX_World *pWorld); 27 | 28 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_Treasure.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_TREASURE_H 2 | #define GAME_OBJECT_TREASURE_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_FireExplosion.h" 6 | #include "Game_Object_Pickup.h" 7 | 8 | #define GAME_TREASURE_DEFALUE_MAX_ROTATION_SPEED 60 9 | #define GAME_TREASURE_DEFALUE_ALIVE_TIME 30000 10 | #define GAME_TREASURE_DEFALUE_LIFE 60 11 | typedef struct 12 | { 13 | px_float life; 14 | px_point velocity; 15 | px_float rotation; 16 | px_float rotationSpeed; 17 | px_texture *pTexture; 18 | px_texture *centerTexture; 19 | px_dword beAttackElpased; 20 | px_dword elpased; 21 | PX_Instance *pIns; 22 | PX_World *pWorld; 23 | }Game_Object_Treasure; 24 | 25 | px_void Game_Object_TreasureCreate(PX_Instance *pIns,PX_World *pWorld,px_point position); 26 | 27 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_TreasureTag.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game/Game_Object_TreasureTag.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Object_TreasureTag.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_OBJECT_TREASURETAG_H 2 | #define GAME_OBJECT_TREASURETAG_H 3 | 4 | #include "Game_Object_Base.h" 5 | #include "Game_Object_Treasure.h" 6 | 7 | #define GAME_TREASURETAG_DEFALUE_MAX_ROTATION_SPEED 60 8 | #define GAME_TREASURETAG_DEFALUE_ALIVE_TIME 10000 9 | typedef struct 10 | { 11 | px_point velocity; 12 | px_float rotation; 13 | px_float rotationSpeed; 14 | px_shape *pShape; 15 | px_dword elpased; 16 | PX_Instance *pIns; 17 | PX_World *pWorld; 18 | }Game_Object_TreasureTag; 19 | 20 | px_void Game_Object_TreasureTagCreate(PX_Instance *pIns,PX_World *pWorld,px_point position); 21 | 22 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_Play.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine Game/Game_Play.c -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/Game_ResoucesLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_RESOURCELOADER_H 2 | #define GAME_RESOURCELOADER_H 3 | #include "PainterEngine_Startup.h" 4 | #include "Game_Text.h" 5 | 6 | typedef enum 7 | { 8 | GAME_RESOURCESLOADER_TYPE_CLIENT, 9 | GAME_RESOURCESLOADER_TYPE_SERVER 10 | }GAME_RESOURCESLOADER_TYPE; 11 | 12 | px_bool Game_ResourcesLoaderInitialize(PX_Instance *Ins,GAME_RESOURCESLOADER_TYPE type); 13 | 14 | #endif -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine Game/PainterEngine Game.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/CL.read.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/CL.write.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/Lib-link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/Lib-link.read.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/Lib-link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/Lib-link.write.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_3D.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_3D.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_3D_ObjData.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_3D_ObjData.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_AES.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_AES.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_ANN.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_ANN.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Animation.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Animation.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Arle.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Arle.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Base64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Base64.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_BaseGeo.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_BaseGeo.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Bitmap.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Bitmap.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_BpNeural.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_BpNeural.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Effect.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Effect.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Font.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Font.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Hashmap.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Hashmap.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Huffman.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Huffman.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Json.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Json.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_KalmanFilter.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_KalmanFilter.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Lexer.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Lexer.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Linker.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Linker.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_List.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Log.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Log.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_MFCC.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_MFCC.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_MODBUS.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_MODBUS.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Memory.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Memory.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_MemoryPool.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_MemoryPool.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Object.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Object.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Packet.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Packet.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_ParallelCore.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_ParallelCore.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Partical.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Partical.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Quadtree.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Quadtree.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Quicksort.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Quicksort.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Resource.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Resource.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Script_ASMCompiler.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Script_ASMCompiler.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Script_Interpreter.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Script_Interpreter.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Script_VM.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Script_VM.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Sha256.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Sha256.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Sound.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Sound.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_SoundLab.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_SoundLab.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_SoundModule.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_SoundModule.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_String.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_String.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Surface.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Surface.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Sync.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Sync.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_TRaw.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_TRaw.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Texture.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Texture.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Tuning.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Tuning.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Typedef.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Typedef.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Vector.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Vector.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_Wave.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_Wave.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_World.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_World.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_curve25519.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_curve25519.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PX_rbtree.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PX_rbtree.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PainterEngine.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100 2 | Debug|Win32|I:\PainterEngine Game\| 3 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PainterEngine.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PainterEngine.write.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PainterEngine_Console.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PainterEngine_Console.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PainterEngine_MessageBox.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PainterEngine_MessageBox.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/PainterEngine_Runtime.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/PainterEngine_Runtime.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/Platform_Windows_D2D.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/Platform_Windows_D2D.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/Platform_Windows_DSound.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/Platform_Windows_DSound.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/cl.command.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/lib.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/lib.command.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/px_udp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/px_udp.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/vc100.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/vc100.idb -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Debug/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Debug/vc100.pdb -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/PainterEngine.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/Lib-link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/Lib-link.read.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/Lib-link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/Lib-link.write.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_3D.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_3D.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_3D_ObjData.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_3D_ObjData.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_AES.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_AES.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_ANN.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_ANN.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Animation.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Animation.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Arle.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Arle.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Base64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Base64.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_BaseGeo.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_BaseGeo.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Bitmap.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Bitmap.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_BpNeural.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_BpNeural.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Effect.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Effect.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Font.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Font.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Hashmap.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Hashmap.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Huffman.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Huffman.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Json.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Json.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_KalmanFilter.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_KalmanFilter.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Lexer.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Lexer.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Linker.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Linker.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_List.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Log.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Log.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_MFCC.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_MFCC.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_MODBUS.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_MODBUS.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Memory.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Memory.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_MemoryPool.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_MemoryPool.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Object.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Object.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Packet.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Packet.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_ParallelCore.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_ParallelCore.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Partical.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Partical.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Quadtree.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Quadtree.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Quicksort.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Quicksort.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Resource.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Resource.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Script_ASMCompiler.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Script_ASMCompiler.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Script_Interpreter.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Script_Interpreter.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Script_VM.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Script_VM.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Sha256.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Sha256.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Sound.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Sound.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_SoundLab.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_SoundLab.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_SoundModule.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_SoundModule.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_String.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_String.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Surface.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Surface.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Sync.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Sync.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_TRaw.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_TRaw.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Texture.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Texture.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Tuning.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Tuning.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Typedef.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Typedef.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Vector.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Vector.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_Wave.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_Wave.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_World.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_World.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_curve25519.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_curve25519.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PX_rbtree.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PX_rbtree.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PainterEngine.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100 2 | Release|Win32|I:\PainterEngine Game\| 3 | -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PainterEngine.vcxprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PainterEngine.vcxprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PainterEngine.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PainterEngine.write.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PainterEngine_Console.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PainterEngine_Console.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PainterEngine_MessageBox.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PainterEngine_MessageBox.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/PainterEngine_Runtime.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/PainterEngine_Runtime.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/Platform_Windows_D2D.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/Platform_Windows_D2D.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/Platform_Windows_DSound.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/Platform_Windows_DSound.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/lib.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/lib.command.1.tlog -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/px_udp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/px_udp.obj -------------------------------------------------------------------------------- /PainterEngine Game/PainterEngine/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Game/PainterEngine/Release/vc100.pdb -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup.opensdf: -------------------------------------------------------------------------------- 1 | DBinaryDESKTOP-J0MM6H2 -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PainterEngine Startup", "PainterEngine Startup\PainterEngine Startup.vcxproj", "{9CA1D561-2288-4FDC-8FB1-3C00129BD215}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PainterEngine StartupServer", "PainterEngine StartupServer\PainterEngine StartupServer.vcxproj", "{E69A703F-4313-4499-9CA0-E34B8FB82054}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PainterEngine", "PainterEngine\PainterEngine.vcxproj", "{67600C31-1E03-4592-9506-BBC62F033423}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Win32 = Debug|Win32 13 | Release|Win32 = Release|Win32 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {9CA1D561-2288-4FDC-8FB1-3C00129BD215}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {9CA1D561-2288-4FDC-8FB1-3C00129BD215}.Debug|Win32.Build.0 = Debug|Win32 18 | {9CA1D561-2288-4FDC-8FB1-3C00129BD215}.Release|Win32.ActiveCfg = Release|Win32 19 | {9CA1D561-2288-4FDC-8FB1-3C00129BD215}.Release|Win32.Build.0 = Release|Win32 20 | {E69A703F-4313-4499-9CA0-E34B8FB82054}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {E69A703F-4313-4499-9CA0-E34B8FB82054}.Debug|Win32.Build.0 = Debug|Win32 22 | {E69A703F-4313-4499-9CA0-E34B8FB82054}.Release|Win32.ActiveCfg = Release|Win32 23 | {E69A703F-4313-4499-9CA0-E34B8FB82054}.Release|Win32.Build.0 = Release|Win32 24 | {67600C31-1E03-4592-9506-BBC62F033423}.Debug|Win32.ActiveCfg = Debug|Win32 25 | {67600C31-1E03-4592-9506-BBC62F033423}.Debug|Win32.Build.0 = Debug|Win32 26 | {67600C31-1E03-4592-9506-BBC62F033423}.Release|Win32.ActiveCfg = Release|Win32 27 | {67600C31-1E03-4592-9506-BBC62F033423}.Release|Win32.Build.0 = Release|Win32 28 | EndGlobalSection 29 | GlobalSection(SolutionProperties) = preSolution 30 | HideSolutionNode = FALSE 31 | EndGlobalSection 32 | EndGlobal 33 | -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup.suo -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine Startup.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine Startup.aps -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine Startup.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine Startup.rc -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine Startup.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine_Application.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine_Application.c -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine_Application.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_APPLICATION_H 2 | #define PAINTERENGINE_APPLICATION_H 3 | #include "PainterEngine_Startup.h" 4 | 5 | #include "PainterEngine_Login.h" 6 | #include "PainterEngine_SignUp.h" 7 | #include "PainterEngine_Lobby.h" 8 | 9 | ////////////////////////////////////////////////////////////////////////// 10 | //Configures 11 | #define PX_WINDOW_NAME "" 12 | 13 | #define PX_WINDOW_WIDTH 800 14 | #define PX_WINDOW_HEIGHT 600 15 | 16 | //memorypool for runtime(bytes) 17 | #define PX_MEMORY_UI_SIZE (1024*1024*8) 18 | #define PX_MEMORY_RESOURCES_SIZE (1024*1024*32) 19 | #define PX_MEMORY_GAME_SIZE (1024*1024) 20 | 21 | 22 | ////////////////////////////////////////////////////////////////////////// 23 | 24 | ////////////////////////////////////////////////////////////////////////// 25 | //Configurations 26 | 27 | #define PX_APPLICATION_CLIENTLOGIN_PORT 31415 28 | #define PX_SIGNUP_SERVER_PORT 31416 29 | #define PX_LOBBY_SERVER_PORT 31417 30 | #define PX_LOBBY_SERVER_LARGEDATAPORT 31418 31 | 32 | typedef enum 33 | { 34 | GAMESTARTUP_STATUS_LOGIN, 35 | GAMESTARTUP_STATUS_SIGNUP, 36 | GAMESTARTUP_STATUS_LOBBY, 37 | }GAMESTARTUP_STATUS; 38 | 39 | 40 | typedef struct 41 | { 42 | PX_Instance Instance; 43 | PX_MessageBox messagebox; 44 | PX_SignUp signup; 45 | PX_Login login; 46 | PX_Lobby lobby; 47 | GAMESTARTUP_STATUS status; 48 | PX_Json ConfigJson; 49 | }PX_Application; 50 | 51 | extern PX_Application App; 52 | 53 | px_bool PX_ApplicationInitialize(PX_Application *pApp); 54 | px_void PX_ApplicationUpdate(PX_Application *App,px_dword elpased); 55 | px_void PX_ApplicationRender(PX_Application *App,px_dword elpased); 56 | px_void PX_ApplicationPostEvent(PX_Application *App,PX_Object_Event e); 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine_Lobby.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine_Lobby.c -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine_Login.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine_Login.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine_SignUp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine_SignUp.c -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine_SignUp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine_SignUp.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/PainterEngine_Startup.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/PainterEngine_Startup.c -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine Startup/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine Startup/resource.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/GameLoginServer_Lobby.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/GameLoginServer_Lobby.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine StartupServer.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/PainterEngine StartupServer.aps -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine StartupServer.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/PainterEngine StartupServer.rc -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine StartupServer.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine_Application.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/PainterEngine_Application.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine_Startup.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_STARTUP_H 2 | #define PAINTERENGINE_STARTUP_H 3 | 4 | #include "../../../PainterEngine/platform/windows/Platform_Windows_D2D.h" 5 | #include "../../../PainterEngine/Architecture/PainterEngine_Console.h" 6 | #include "../../../PainterEngine/Architecture/PainterEngine_MessageBox.h" 7 | #include "../../../PainterEngine/platform/windows/px_udp.h" 8 | #include "../PainterEngine Network/GameServer_Network.h" 9 | 10 | typedef struct 11 | { 12 | PX_Runtime runtime; 13 | PX_Console console; 14 | PX_SoundPlay soundplay; 15 | }PX_Instance; 16 | 17 | 18 | ////////////////////////////////////////////////////////////////////////// 19 | 20 | typedef struct 21 | { 22 | px_byte *buffer; 23 | px_uint size; 24 | }PX_IO_Data; 25 | 26 | px_bool PX_InstanceInitialize(PX_Instance *Instance,px_char *name,px_int width,px_int height,px_uint ui_size,px_uint resource_size,px_uint game_size); 27 | PX_IO_Data PX_LoadFileToIOData(px_char *path); 28 | px_void PX_FreeIOData(PX_IO_Data *io); 29 | px_bool PX_LoadTextureFromFile(px_memorypool *mp,px_texture *tex,px_char *path); 30 | px_bool PX_LoadShapeFromFile(px_memorypool *mp,px_shape *shape,px_char *path); 31 | px_bool PX_LoadSoundFromFile(px_memorypool *mp,px_shape *shape,px_char *path); 32 | px_bool PX_LoadAnimationLibraryFromFile(px_memorypool *mp,PX_Animationlibrary *lib,px_char *path); 33 | px_bool PX_LoadScriptFromFile(px_memory *code,px_char *path); 34 | px_bool PX_LoadJsonFromFile(PX_Json *json,const px_char *path); 35 | px_bool PX_LoadScriptInstanceFromFile(px_memorypool *mp,PX_ScriptVM_Instance *ins,px_char *path); 36 | px_bool PX_LoadTextureToResource(PX_Runtime *runtime,px_char Path[],px_char key[]); 37 | px_bool PX_LoadShapeToResource(PX_Runtime *runtime,px_char Path[],px_char key[]); 38 | px_bool PX_LoadAnimationToResource(PX_Runtime *runtime,px_char Path[],px_char key[]); 39 | px_bool PX_LoadScriptToResource(PX_Runtime *runtime,px_char Path[],px_char key[]); 40 | px_bool PX_LoadSoundToResource(PX_Runtime *runtime,px_char Path[],px_char key[]); 41 | 42 | px_bool PX_CopyFile(const px_char resFile[],const px_char DestFile[]); 43 | #endif 44 | -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine_StartupServer_Lobby.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/PainterEngine_StartupServer_Lobby.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine_StartupServer_Login.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/PainterEngine_StartupServer_Login.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/PainterEngine_StartupServer_SignUp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/PainterEngine_StartupServer_SignUp.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine StartupServer/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine Startup/PainterEngine StartupServer/resource.h -------------------------------------------------------------------------------- /PainterEngine Startup/PainterEngine/PainterEngine.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /PainterEngine/architecture/PainterEngine_Console.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_CONSOLE_H 2 | #define PX_CONSOLE_H 3 | 4 | 5 | #include "PainterEngine_Runtime.h" 6 | 7 | #define PC_CONSOLE_DEFAULT_MAX_COLUMN 48 8 | #define PC_RESOURCE_PATH "." 9 | 10 | typedef px_bool (*console_registry_hostcall)(PX_ScriptVM_Instance *Ins); 11 | typedef struct 12 | { 13 | PX_Object *Root; 14 | PX_Object *Area; 15 | PX_Object *Input; 16 | px_int max_column; 17 | px_int column; 18 | px_bool show; 19 | px_vector pObjects; 20 | px_int id; 21 | PX_Runtime *runtime; 22 | union 23 | { 24 | px_void *user_ptr; 25 | px_int user_int; 26 | px_float user_float; 27 | }; 28 | 29 | const px_char *script_header_append; 30 | console_registry_hostcall registry_call; 31 | }PX_Console; 32 | 33 | typedef struct 34 | { 35 | px_int id; 36 | PX_Object *Object; 37 | }PX_ConsoleColumn; 38 | 39 | 40 | px_bool PX_ConsoleInitialize(PX_Runtime *runtime,PX_Console *pc); 41 | px_void PX_ConsoleRegistryScriptHeader(PX_Console *pc,const px_char *header); 42 | px_void PX_ConsoleRegistryHostCall(PX_Console *pc,console_registry_hostcall call_func); 43 | px_void PX_ConsoleShow(PX_Console *pc,px_bool b); 44 | px_void PX_ConsolePostEvent(PX_Console *pc,PX_Object_Event e); 45 | px_void PX_ConsoleUpdate(PX_Console *pc,px_dword elpased); 46 | px_void PX_ConsoleRender(PX_Console *pc,px_dword elpased); 47 | PX_Object * PX_ConsolePrintText(PX_Console *pc,const px_char *text); 48 | PX_Object * PX_ConsolePrintImage(PX_Console *pc,px_char *res_image_key); 49 | PX_Object * PX_ConsolePrintShape(PX_Console *pc,px_char *res_image_key,px_color color); 50 | PX_Object * PX_ConsolePrintAnimation(PX_Console *pc,px_char *res_animation_key); 51 | PX_Object * PX_ConsolePrintPartical(PX_Console *pc,px_int x,px_int y,px_char *res_texture,px_char *script,px_char *_init,px_char *_create,px_char *_updata); 52 | PX_Object * PX_ConsoleShowImage(PX_Console *pc,px_char *res_image_key); 53 | px_void PX_ConsoleClear(PX_Console *pc); 54 | px_bool PX_ConsoleExecute(PX_Console *pc,char *pshellstr); 55 | 56 | #endif 57 | 58 | -------------------------------------------------------------------------------- /PainterEngine/architecture/PainterEngine_Runtime.c: -------------------------------------------------------------------------------- 1 | #include "PainterEngine_Runtime.h" 2 | 3 | 4 | px_void PE_MP_ErrorCall(PX_MEMORYPOOL_ERROR err) 5 | { 6 | switch(err) 7 | { 8 | case PX_MEMORYPOOL_ERROR_INVALID_ACCESS: 9 | PX_ERROR("Memory access error"); 10 | break; 11 | case PX_MEMORYPOOL_ERROR_INVALID_ADDRESS: 12 | PX_ERROR("Memory address error"); 13 | break; 14 | case PX_MEMORYPOOL_ERROR_OUTOFMEMORY: 15 | PX_ERROR("Out of memory"); 16 | break; 17 | } 18 | } 19 | 20 | 21 | 22 | px_bool PX_RuntimeInitialize(PX_Runtime *pe,px_int width,px_int height,px_void *runtime_memoryPtr,px_uint size,px_uint ui_size,px_uint resource_size,px_uint game_size) 23 | { 24 | pe->width=width; 25 | pe->height=height; 26 | 27 | pe->mp=MP_Create(runtime_memoryPtr,size); 28 | pe->mp_ui=MP_Create(MP_Malloc(&pe->mp,ui_size),ui_size); 29 | pe->mp_resources=MP_Create(MP_Malloc(&pe->mp,resource_size),resource_size); 30 | pe->mp_game=MP_Create(MP_Malloc(&pe->mp,game_size),game_size); 31 | 32 | 33 | MP_ErrorCatch(&pe->mp_ui,PE_MP_ErrorCall); 34 | MP_ErrorCatch(&pe->mp_resources,PE_MP_ErrorCall); 35 | MP_ErrorCatch(&pe->mp_game,PE_MP_ErrorCall); 36 | 37 | //resources 38 | if(!PX_ResourceLibraryInit(&pe->mp_resources,&pe->ResourceLibrary))return PX_FALSE; 39 | //surface 40 | if (width==0||height==0) 41 | { 42 | pe->RenderSurface.height=0; 43 | pe->RenderSurface.width=0; 44 | pe->RenderSurface.surfaceBuffer=PX_NULL; 45 | pe->RenderSurface.MP=PX_NULL; 46 | } 47 | else 48 | { 49 | if(!PX_SurfaceCreate(&pe->mp,width,height,&pe->RenderSurface)) 50 | { 51 | return PX_FALSE; 52 | } 53 | PX_SurfaceClear(&pe->RenderSurface,0,0,pe->RenderSurface.width-1,pe->RenderSurface.height-1,PX_COLOR(255,255,255,255)); 54 | } 55 | 56 | return PX_TRUE; 57 | } 58 | 59 | px_memorypool PX_RuntimeCreateCalcMemoryPool(PX_Runtime *pe) 60 | { 61 | return MP_Create(MP_Malloc(&pe->mp,PE_MEMORY_CALC_SIZE),PE_MEMORY_CALC_SIZE); 62 | } 63 | 64 | px_void PX_RuntimeFreeCalcMemoryPool(PX_Runtime *pe,px_memorypool mp) 65 | { 66 | MP_Free(&pe->mp,mp.StartAddr); 67 | } 68 | 69 | px_void PX_RuntimeRenderClear(PX_Runtime *runtime,px_color color) 70 | { 71 | PX_SurfaceClear(&runtime->RenderSurface,0,0,runtime->RenderSurface.width-1,runtime->RenderSurface.height-1,color); 72 | } 73 | -------------------------------------------------------------------------------- /PainterEngine/architecture/PainterEngine_Runtime.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_RUNTIME_H 2 | #define PAINTERENGINE_RUNTIME_H 3 | 4 | #include "../Kernel/PX_Kernel.h" 5 | 6 | #define PE_MEMORY_CALC_SIZE 1024*1024*2//2M 7 | 8 | typedef struct 9 | { 10 | px_int width; 11 | px_int height; 12 | px_memorypool mp; 13 | px_memorypool mp_ui; 14 | px_memorypool mp_resources; 15 | px_memorypool mp_game; 16 | px_memorypool partical_mp,explode_mp; 17 | PX_ResourceLibrary ResourceLibrary; 18 | px_surface RenderSurface; 19 | }PX_Runtime; 20 | 21 | 22 | px_bool PX_RuntimeInitialize(PX_Runtime *pe,px_int surface_width,px_int surface_height,px_void *runtime_memoryPtr,px_uint size,px_uint ui_size,px_uint resource_size,px_uint game_size); 23 | px_memorypool PX_RuntimeCreateCalcMemoryPool(PX_Runtime *pe); 24 | px_void PX_RuntimeFreeCalcMemoryPool(PX_Runtime *pe,px_memorypool mp); 25 | px_void PX_RuntimeRenderClear(PX_Runtime *runtime,px_color color); 26 | #endif 27 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_AES.h: -------------------------------------------------------------------------------- 1 | #ifndef __PX_MATH_AES 2 | #define __PX_MATH_AES 3 | #include "PX_Typedef.h" 4 | 5 | #define PX_AES_BLOCK_BYTES_SIZE 16 6 | #define PX_AES_SEED_KEY_SIZE 32 7 | #define PX_AES_KEYSCHEDULE_MAX_ROW 60 8 | #define PX_AES_KEYSCHEDULE_MAX_COLUMN 4 9 | #define PX_AES_STATE_MATRIX_SIZE 4 10 | 11 | typedef enum 12 | { 13 | PX_AES_KeySize_Bits128, PX_AES_KeySize_Bits192, PX_AES_KeySize_Bits256 14 | }PX_AES_KeySize; 15 | 16 | typedef px_uchar AES_BYTE; 17 | 18 | typedef struct 19 | { 20 | AES_BYTE key[PX_AES_SEED_KEY_SIZE]; // the seed key. size will be 4 * keySize from ctor. 21 | AES_BYTE w[PX_AES_KEYSCHEDULE_MAX_ROW][PX_AES_KEYSCHEDULE_MAX_COLUMN]; // key schedule array. 22 | AES_BYTE State[PX_AES_STATE_MATRIX_SIZE][PX_AES_STATE_MATRIX_SIZE]; // State matrix always 4x4 23 | px_int Nb; // block size in 32-bit words. Always 4 for AES. (128 bits). 24 | px_int Nk; // key size in 32-bit words. 4, 6, 8. (128, 192, 256 bits). 25 | px_int Nr; // number of rounds. 10, 12, 14. 26 | }PX_AES; 27 | 28 | px_void PX_AES_Initialize(PX_AES *aesStruct,PX_AES_KeySize keySize,AES_BYTE keyByte[]); 29 | px_bool PX_AES_CipherBuffer(PX_AES *aesStruct,px_byte input[],px_int size,px_byte output[]); 30 | px_bool PX_AES_Cipher(PX_AES *aesStruct,px_byte input[16], px_byte output[16]); /* encipher 16-bit input */; 31 | px_void PX_AES_InvCipher(PX_AES *aesStruct,px_byte input[16], px_byte output[16]); /* decipher 16-bit input */; 32 | px_bool PX_AES_InvCipherBuffer(PX_AES *aesStruct,px_byte input[],px_int size,px_byte output[]); 33 | #endif 34 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_ANN.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_ANN_H 2 | #define PX_ANN_H 3 | 4 | #include "PX_MemoryPool.h" 5 | 6 | typedef enum 7 | { 8 | PX_ANN_LAYER_WEIGHT_INITMODE_CONST, 9 | PX_ANN_LAYER_WEIGHT_INITMODE_RAND, 10 | PX_ANN_LAYER_WEIGHT_INITMODE_GAUSSRAND, 11 | }PX_ANN_LAYER_WEIGHT_INITMODE; 12 | 13 | typedef enum 14 | { 15 | PX_ANN_ACTIVATION_FUNCTION_SIGMOID, 16 | PX_ANN_ACTIVATION_FUNCTION_TANH, 17 | PX_ANN_ACTIVATION_FUNCTION_LINEAR, 18 | PX_ANN_ACTIVATION_FUNCTION_RELU, 19 | }PX_ANN_ACTIVATION_FUNCTION; 20 | 21 | typedef enum 22 | { 23 | PX_ANN_REGULARZATION_NONE, 24 | PX_ANN_REGULARZATION_L1, 25 | PX_ANN_REGULARZATION_L2 26 | }PX_ANN_REGULARZATION; 27 | 28 | typedef struct __PX_ANN_Layer 29 | { 30 | px_double *net; 31 | px_double *out; 32 | px_double *back; 33 | px_double *w; 34 | px_double *bias; 35 | px_int Neurals; 36 | px_int w_count; 37 | px_double weight_init; 38 | PX_ANN_ACTIVATION_FUNCTION activation; 39 | PX_ANN_LAYER_WEIGHT_INITMODE w_initMode; 40 | struct __PX_ANN_Layer *pNext,*pPrevious; 41 | }PX_ANN_Layer; 42 | 43 | typedef struct 44 | { 45 | px_int LayerCount; 46 | PX_ANN_Layer *Layer; 47 | px_double learningRate; 48 | px_double regularization_rate; 49 | PX_ANN_REGULARZATION regularzation; 50 | px_memorypool *mp; 51 | }PX_ANN; 52 | 53 | 54 | typedef struct 55 | { 56 | px_dword LayerCount; 57 | px_double learningRate; 58 | px_double regularization_rate; 59 | px_dword regularzation; 60 | }PX_ANN_Data_Header; 61 | 62 | typedef struct 63 | { 64 | px_int weight_count; 65 | px_dword NeuralsCount; 66 | px_dword activation; 67 | }PX_ANN_Data_LayerHeader; 68 | 69 | px_bool PX_ANNInitialize(px_memorypool *mp,PX_ANN *ann,px_double learningRate,PX_ANN_REGULARZATION regularzation,px_double regularization_rate); 70 | px_bool PX_ANNAddLayer(PX_ANN *pAnn,px_int Neurals,px_double bias,PX_ANN_ACTIVATION_FUNCTION activation,PX_ANN_LAYER_WEIGHT_INITMODE mode,px_double weight_c); 71 | px_double PX_ANNTrain(PX_ANN *pAnn,px_double *input,px_double *expect); 72 | px_void PX_ANNForward(PX_ANN *pAnn,px_double *input); 73 | px_void PX_ANNGetOutput(PX_ANN *pAnn,px_double *result); 74 | px_void PX_ANNReset(PX_ANN *pANN); 75 | px_void PX_ANNFree(PX_ANN *pAnn); 76 | px_bool PX_ANNExport(PX_ANN *pAnn,px_void *buffer,px_int *size); 77 | px_bool PX_ANNImport(px_memorypool *mp,PX_ANN *pAnn,px_void *buffer,px_int size); 78 | #endif 79 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Arle.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_ARLE_H 2 | #define PX_ARLE_H 3 | #include "PX_Typedef.h" 4 | 5 | px_void PX_ArleCompress(px_byte *_in,px_uint input_size,px_byte *_out,px_uint *_outsize); 6 | px_void PX_ArleDecompress(px_byte *_in,px_uint input_size,px_byte *_out,px_uint *_outsize); 7 | #endif 8 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Base64.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_BASE64_H 2 | #define PX_BASE64_H 3 | #include "PX_Typedef.h" 4 | px_uint PX_Base64Encode(const px_byte *_in, px_uint input_size, px_char *out); 5 | px_uint PX_Base64Decode(const px_char *_in, px_uint input_size, px_byte *out); 6 | px_uint PX_Base64GetEncodeLen(px_uint codeLen); 7 | px_uint PX_Base64GetDecodeLen(px_uint codeLen); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_BaseGeo.h: -------------------------------------------------------------------------------- 1 | #ifndef PIXELSES_BASEGEO 2 | #define PIXELSES_BASEGEO 3 | 4 | #include "PX_Surface.h" 5 | 6 | px_void PX_GeoDrawLine(px_surface *psurface, px_int x0, px_int y0, px_int x1, px_int y1 ,px_int lineWidth, px_color color); 7 | px_void PX_GeoDrawBorder(px_surface *psurface, px_int left, px_int top, px_int right, px_int bottom ,px_int lineWidth,px_color color); 8 | px_void PX_GeoDrawRect(px_surface *psurface, px_int left, px_int top, px_int right, px_int bottom,px_color color); 9 | px_void PX_GeoDrawSolidCircle(px_surface *psurface, px_int x,px_int y,px_int Radius,px_color color ); 10 | px_void PX_GeoDrawCircle(px_surface *psurface,px_int x,px_int y,px_int Radius,px_int lineWidth,px_color color); 11 | px_void PX_GeoDrawRing(px_surface *psurface, px_int x,px_int y,px_int Radius,px_int lineWidth,px_color color,px_uint start_angle,px_uint end_angle); 12 | px_void PX_GeoDrawSector(px_surface *psurface, px_int x,px_int y,px_int Radius_outside,px_int Radius_inside,px_color color,px_uint start_angle,px_uint end_angle); 13 | px_void PX_GeoDrawSolidRoundRect(px_surface *psurface, px_int left, px_int top, px_int right, px_int bottom,px_float roundRaduis,px_color color); 14 | px_void PX_GeoDrawRoundRect(px_surface *psurface, px_int left, px_int top, px_int right, px_int bottom,px_float roundRaduis,px_float linewidth,px_color color); 15 | #endif 16 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Bitmap.h: -------------------------------------------------------------------------------- 1 | #ifndef PIXELSES_BITMAP 2 | #define PIXELSES_BITMAP 3 | 4 | #include "PX_Surface.h" 5 | 6 | typedef struct PX_BITMAPFILEHEADER { 7 | px_char bfType[2]; //Must be "BM" offset 0-1 8 | px_char bfSize[4]; //offset 2-5 9 | px_char bfReserbed[4]; //offset 6-13 10 | px_uchar bfOffbits[4]; 11 | } PX_BITMAPFILEHEADER; //14 Byte 12 | 13 | typedef struct PX_BITMAPINFOHEADER{ 14 | px_dword biSize; //offset 14-17 15 | px_dword biWidth; //offset 18-21 16 | px_dword biHeight; //offset 22-25 17 | px_word biPlanes; //offset 26-27 18 | px_word biBitCount; //offset 28-29 19 | px_dword biCompression; 20 | px_dword biSizeImage; 21 | px_dword biXPelsPerMeter; 22 | px_dword biYPelsPerMeter; 23 | px_dword biClrUsed; 24 | px_dword biClrImportant; 25 | } PX_BITMAPINFOHEADER; 26 | 27 | typedef struct PX_BITMAP_tagRBG24 28 | { 29 | px_char B; 30 | px_char G; 31 | px_char R; 32 | }PX_BITMAP_RGB24; 33 | 34 | typedef struct PX_BITMAP_tagRBG32 35 | { 36 | px_char B; 37 | px_char G; 38 | px_char R; 39 | px_char A; 40 | }PX_BITMAP_RGB32; 41 | 42 | //Bitmap Verify 43 | px_bool PX_BitmapVerify(void *BitmapBuffer,px_int size); 44 | 45 | //Get bitmap height 46 | px_uint PX_BitmapGetHeight(void *BitmapBuffer); 47 | //Get bitmap width 48 | px_uint PX_BitmapGetWidth(void *BitmapBuffer); 49 | //Get bitmap BitCount 50 | px_word PX_BitmapGetBitCount(void *BitmapBuffer); 51 | ////////////////////////////////////////////////////////////////////////// 52 | // Draw bitmap to panel 53 | // param:void *BitmapBuffer -Point to buffer of bitmap 54 | // param:int x -Offset of X 55 | // param:int y -Offset of Y 56 | ///////////////////////////////////////////////////////////////////////// 57 | px_void PX_BitmapRender(px_surface *psurface,void *BitmapBuffer,px_int BufferSize,int x,int y); 58 | 59 | ////////////////////////////////////////////////////////////////////////// 60 | // build bitmap from surface 61 | // param:px_memory *BitmapBuffer -Pointer of px_buffer to save bmpfile data 62 | ///////////////////////////////////////////////////////////////////////// 63 | 64 | px_bool PX_BitmapBuild(px_surface *psurface,px_char *BitmapBuffer,px_int *size); 65 | 66 | #endif -------------------------------------------------------------------------------- /PainterEngine/core/PX_BpNeural.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_BRNEURAL_H 2 | #define PX_BRNEURAL_H 3 | 4 | #include "PX_MemoryPool.h" 5 | 6 | typedef enum 7 | { 8 | PX_BPNERURALS_INITMODE_CONST, 9 | PX_BPNERURALS_INITMODE_RAND, 10 | PX_BPNERURALS_INITMODE_GAUSS, 11 | }PX_BPNERURALS_INITMODE; 12 | 13 | typedef enum 14 | { 15 | PX_BPNERURALS_ACTIVATION_FUNCTION_SIGMOID, 16 | PX_BPNERURALS_ACTIVATION_FUNCTION_TANH, 17 | }PX_BPNERURALS_ACTIVATION_FUNCTION; 18 | 19 | typedef struct 20 | { 21 | px_int inputCount; 22 | px_int hiddenCount; 23 | px_int outputCount; 24 | px_double bias1,bias2; 25 | px_double *input; 26 | px_double *netHidden; 27 | px_double *ih_w; 28 | px_double *hidden; 29 | px_double *ho_w; 30 | px_double *netOutput; 31 | px_double *output; 32 | px_double learningRate; 33 | px_memorypool *mp; 34 | PX_BPNERURALS_ACTIVATION_FUNCTION activationFunction; 35 | }PX_BpNeurals; 36 | 37 | 38 | 39 | px_bool PX_BpNeuralsInit(px_memorypool *mp,PX_BpNeurals *bpN,px_int inputCount,px_int hiddenCount,px_int outputCount,px_double bias1,px_double bias2,px_double learningRate,PX_BPNERURALS_ACTIVATION_FUNCTION activation,PX_BPNERURALS_INITMODE mode,px_double c); 40 | px_void PX_BpNeuralsTrain(PX_BpNeurals *bpN,px_double *input,px_double *expect); 41 | px_void PX_BpNeuralsForward(PX_BpNeurals *bpN,px_double *input,px_double *output); 42 | px_void PX_BpNeuralsFree(PX_BpNeurals *bpN); 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Core.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | /* 3 | PainterEngine Core 4 | (C)2019 DBinary 5 | 6 | This program is free software; you can redistribute it and/or modify 7 | it under the terms of the BSD General Public License 8 | */ 9 | ////////////////////////////////////////////////////////////////////////// 10 | 11 | #ifndef __PX_CORE_H 12 | #define __PX_CORE_H 13 | #include "PX_Texture.h" 14 | #include "PX_BaseGeo.h" 15 | #include "PX_Font.h" 16 | #include "PX_String.h" 17 | #include "PX_Memory.h" 18 | #include "PX_Hashmap.h" 19 | #include "PX_Vector.h" 20 | #include "PX_List.h" 21 | #include "PX_AES.h" 22 | #include "PX_ANN.h" 23 | #include "PX_Sound.h" 24 | #include "PX_Effect.h" 25 | #include "PX_Quicksort.h" 26 | #include "PX_Quadtree.h" 27 | #include "PX_curve25519.h" 28 | #include "PX_Sha256.h" 29 | #include "PX_Arle.h" 30 | #include "PX_Huffman.h" 31 | #include "PX_Packet.h" 32 | #include "PX_Base64.h" 33 | #include "PX_3D.h" 34 | #include "PX_MFCC.h" 35 | #include "PX_KalmanFilter.h" 36 | #include "PX_SoundModule.h" 37 | #endif 38 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Effect.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_EFFECT_H 2 | #define PX_EFFECT_H 3 | #include "PX_Surface.h" 4 | 5 | px_bool PX_EffectShine(px_surface *s,px_int radius,px_color color,px_float intension); 6 | px_bool PX_EffectOutline(px_surface *s,px_int radius,px_color color); 7 | #endif 8 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Font.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/core/PX_Font.c -------------------------------------------------------------------------------- /PainterEngine/core/PX_Hashmap.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PX_HASHMAP_H__ 3 | #define PX_HASHMAP_H__ 4 | 5 | #include "PX_MemoryPool.h" 6 | #include "PX_rbtree.h" 7 | 8 | #define PX_HASHMAP_STRINGKEY_LEN 64 9 | 10 | 11 | typedef enum 12 | { 13 | PX_HASHMAP_RETURN_OK, 14 | PX_HASHMAP_RETURN_NULL, 15 | PX_HASHMAP_RETURN_KEYEXIST, 16 | PX_HASHMAP_RETURN_OUTOFMEMORY, 17 | PX_HASHMAP_RETURN_FULL, 18 | }PX_HASHMAP_RETURN; 19 | 20 | 21 | 22 | typedef struct 23 | { 24 | px_memorypool *mp; 25 | px_int size; 26 | struct px_rb_root root; 27 | }px_map; 28 | 29 | typedef struct __px_map_element 30 | { 31 | struct px_rb_node node;//must be first member 32 | px_char string[PX_HASHMAP_STRINGKEY_LEN]; 33 | union 34 | { 35 | px_void *Ptr; 36 | px_int _int; 37 | px_float _float; 38 | }; 39 | 40 | }px_map_element; 41 | 42 | 43 | 44 | px_bool PX_MapInit(px_memorypool *mp,px_map *hashmap); 45 | 46 | PX_HASHMAP_RETURN PX_MapPut(px_map * m,const px_char stringkey[], px_void * value); 47 | PX_HASHMAP_RETURN PX_MapPutInt(px_map * m,const px_char stringkey[], px_int value); 48 | PX_HASHMAP_RETURN PX_MapPutFloat(px_map * m,const px_char stringkey[], px_float value); 49 | PX_HASHMAP_RETURN PX_MapErase(px_map * m,const px_char stringkey[]); 50 | px_map_element * PX_MapFirst(px_map * m); 51 | px_map_element * PX_MapNext(px_map * m,px_map_element *node); 52 | px_void *PX_MapGet(px_map * m, const px_char stringkey[]); 53 | px_bool PX_MapGetInt(px_map * m, const px_char stringkey[],px_int *_int); 54 | px_bool PX_MapGetFloat(px_map * m, const px_char stringkey[],px_float *_float); 55 | px_void PX_MapFree(px_map * m); 56 | px_int PX_MapGetSize(px_map * m); 57 | 58 | 59 | #endif -------------------------------------------------------------------------------- /PainterEngine/core/PX_Huffman.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_HUFFMAN_H 2 | #define PX_HUFFMAN_H 3 | #include "PX_Quicksort.h" 4 | 5 | px_void PX_huffmanCompress(px_byte *_in,px_uint input_size,px_byte *_out,px_uint *out_size); 6 | px_void PX_huffmanDecompress(px_byte *_in,px_uint input_size,px_byte *_out,px_uint *out_size); 7 | #endif 8 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_KalmanFilter.c: -------------------------------------------------------------------------------- 1 | #include "PX_KalmanFilter.h" 2 | 3 | px_void PX_KalmanFilterInitialize(PX_KalmanFilter *filter,px_double A,px_double B,px_double Q,px_double H,px_double R) 4 | { 5 | filter->A=A; 6 | filter->B=B; 7 | filter->H=H; 8 | filter->Kk=0; 9 | filter->Pk=1; 10 | filter->Q=Q; 11 | filter->R=R; 12 | filter->Xk=0; 13 | } 14 | 15 | px_void PX_KalmanFilterUpdate(PX_KalmanFilter *filter,px_double Zk,px_double uk,px_double wk) 16 | { 17 | filter->Xk=filter->A*filter->Xk+filter->B*uk; 18 | filter->Pk=filter->A*filter->Pk*filter->A+filter->Q; 19 | 20 | filter->Kk=filter->Pk/(filter->H*filter->Pk*filter->H+filter->R); 21 | filter->Xk=filter->Xk+filter->Kk*(Zk-filter->Xk); 22 | filter->Pk=(1-filter->Kk*filter->H)*filter->Pk; 23 | } 24 | 25 | px_double PX_KalmanFilterGetGuess(PX_KalmanFilter *filter) 26 | { 27 | return filter->Xk; 28 | } 29 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_KalmanFilter.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_KALMANFILTER_H 2 | #define PX_KALMANFILTER_H 3 | #include "PX_Typedef.h" 4 | 5 | typedef struct 6 | { 7 | px_double Xk,Kk,Pk; 8 | px_double A,B,Q,H,R; 9 | }PX_KalmanFilter; 10 | 11 | px_void PX_KalmanFilterInitialize(PX_KalmanFilter *filter,px_double A,px_double B,px_double Q,px_double H,px_double R); 12 | px_void PX_KalmanFilterUpdate(PX_KalmanFilter *filter,px_double Zk,px_double uk,px_double wk); 13 | px_double PX_KalmanFilterGetGuess(PX_KalmanFilter *filter); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Linker.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/core/PX_Linker.c -------------------------------------------------------------------------------- /PainterEngine/core/PX_Linker.h: -------------------------------------------------------------------------------- 1 | #ifndef __PX_LINKER_H 2 | #define __PX_LINKER_H 3 | 4 | 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_List.h: -------------------------------------------------------------------------------- 1 | #ifndef __PX_LIST_H 2 | #define __PX_LIST_H 3 | #include "PX_MemoryPool.h" 4 | typedef struct __px_list_node 5 | { 6 | px_void *pdata; 7 | struct __px_list_node *pnext; 8 | struct __px_list_node *ppre; 9 | }px_list_node; 10 | 11 | typedef struct __px_list 12 | { 13 | px_memorypool *mp; 14 | px_int size; 15 | struct __px_list_node *head; 16 | struct __px_list_node *end; 17 | }px_list; 18 | 19 | ////////////////////////////////////////////////////////////////////////// 20 | //List 21 | px_void PX_ListInit(px_memorypool *mp,px_list *list); 22 | px_void *PX_ListPush(px_list *list,px_void *data,px_int size); 23 | px_bool PX_ListPop(px_list *list,px_list_node *node); 24 | px_list_node* PX_ListAt(px_list *list,px_int index); 25 | px_int PX_ListSize(px_list *list); 26 | px_void PX_ListClear(px_list *list); 27 | px_void PX_ListFree(px_list *list); 28 | 29 | #define PX_LIST_NODEDATA(x) ((x)->pdata) 30 | #define PX_LISTAT(t,x,i) ((t *)(PX_ListAt(x,i)->pdata)) 31 | #endif 32 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Log.c: -------------------------------------------------------------------------------- 1 | #include "PX_Typedef.h" 2 | 3 | void PX_ASSERT() 4 | { 5 | #ifdef PX_DEBUG_MODE 6 | __debugbreak(); 7 | #endif 8 | } 9 | 10 | void PX_ERROR(px_char fmt[]) 11 | { 12 | PX_ASSERT(); 13 | } 14 | 15 | 16 | px_char * PX_GETLOG() 17 | { 18 | return ""; 19 | } 20 | 21 | void PX_LOG(px_char fmt[]) 22 | { 23 | 24 | //while(1); 25 | } 26 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Log.h: -------------------------------------------------------------------------------- 1 | #ifndef __PX_LOG_H 2 | #define __PX_LOG_H 3 | void PX_LOG(px_char fmt[]); 4 | void PX_ERROR(px_char fmt[]); 5 | px_char *PX_GETLOG(); 6 | void PX_ASSERT(); 7 | #endif 8 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_MFCC.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_MFCC_H 2 | #define PX_MFCC_H 3 | #include "PX_MemoryPool.h" 4 | 5 | #define PX_MFCC_FRAME_MAX_SIZE 2048 6 | #define PX_MFCC_DCT_FACTOR_SIZE 32 7 | typedef struct 8 | { 9 | px_double w[PX_MFCC_FRAME_MAX_SIZE]; 10 | }PX_MFCC_Filter; 11 | 12 | 13 | typedef struct 14 | { 15 | PX_MFCC_Filter filter[PX_MFCC_DCT_FACTOR_SIZE]; 16 | px_int N; 17 | }PX_MFCC; 18 | 19 | typedef struct 20 | { 21 | px_double factor[PX_MFCC_DCT_FACTOR_SIZE]; 22 | }PX_MFCC_FEATURE; 23 | 24 | px_void PX_MFCCInitialize(PX_MFCC *mfcc,px_int framesize,px_int sampleRate,px_int low,px_int high); 25 | px_bool PX_MFCCParse(PX_MFCC *mfcc,px_double *data,PX_MFCC_FEATURE *out); 26 | #endif 27 | 28 | 29 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Memory.h: -------------------------------------------------------------------------------- 1 | #ifndef __PX_MEMORY_H 2 | #define __PX_MEMORY_H 3 | 4 | #include "PX_MemoryPool.h" 5 | 6 | typedef struct __PX_memroy 7 | { 8 | px_byte *buffer; 9 | px_memorypool *mp; 10 | px_int usedsize; 11 | px_int allocsize; 12 | }px_memory; 13 | 14 | px_void PX_MemoryInit(px_memorypool *mp,px_memory *memory); 15 | px_void PX_MemoryClear(px_memory *memory); 16 | px_bool PX_MemoryAlloc(px_memory *memory,px_int size); 17 | px_bool PX_MemoryResize(px_memory *memory,px_int size); 18 | px_bool PX_MemoryCat(px_memory *memory,px_void *buffer,px_int size); 19 | px_bool PX_MemoryCopy(px_memory *memory,px_void *buffer,px_int startoffset,px_int size); 20 | px_byte *PX_MemoryFine(px_memory *memory,px_void *buffer,px_int size); 21 | px_void PX_MemoryFree(px_memory *memory); 22 | px_byte *PX_MemoryData(px_memory *memory); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Packet.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_PACKET_H 2 | #define PX_PACKET_H 3 | 4 | #include "PX_Arle.h" 5 | #include "PX_Huffman.h" 6 | 7 | #define PX_PACKET_ALOGRITHM_HUFFMAN 0 8 | #define PX_PACKET_ALOGRITHM_ARLE 1 9 | 10 | 11 | typedef struct 12 | { 13 | px_char magic[4];//PACK 14 | px_dword algorithm; 15 | px_dword CRC; 16 | }PX_Packet_Header; 17 | 18 | px_bool PX_PacketCompress(px_byte *_in,px_uint input_size,px_byte *_out,px_uint *out_size,px_dword algotithm); 19 | px_bool PX_PacketDecompress(px_byte *_in,px_uint input_size,px_byte *_out,px_uint *out_size); 20 | #endif 21 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_ParallelCore.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/core/PX_ParallelCore.c -------------------------------------------------------------------------------- /PainterEngine/core/PX_ParallelCore.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_PARALLELCORE_H 2 | #define PX_PARALLELCORE_H 3 | 4 | 5 | #endif 6 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Quadtree.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_QUADTREE_H 2 | #define PX_QUADTREE_H 3 | #include "PX_List.h" 4 | #include "PX_Vector.h" 5 | 6 | #define PX_AABB_TEST_COUNT 32 7 | 8 | typedef struct _PX_AABB 9 | { 10 | px_float Left,Right,Bottom,Top; 11 | px_int objectCount; 12 | px_int deep; 13 | px_list dataList; 14 | struct _PX_AABB *Area1; 15 | struct _PX_AABB *Area2; 16 | struct _PX_AABB *Area3; 17 | struct _PX_AABB *Area4; 18 | }PX_Quadtree_AABB; 19 | 20 | typedef struct 21 | { 22 | px_void *ptr; 23 | }PX_Quadtree_UserData; 24 | typedef struct 25 | { 26 | px_float x,y,height,width; 27 | PX_Quadtree_UserData userdata; 28 | }PX_Quadtree_AABB_BOX; 29 | 30 | 31 | typedef struct 32 | { 33 | px_memorypool *mp; 34 | px_int PX_AABB_MAX_DEEP; 35 | PX_Quadtree_AABB *AABB; 36 | px_vector boxes; 37 | px_vector Impacts; 38 | }PX_Quadtree; 39 | 40 | px_bool PX_QuadtreeCreate(px_memorypool *mp,PX_Quadtree *pQuadtree,px_float mapStartX,px_float mapStartY,px_float mapWidth,px_float mapHeight,px_int ObjectsCount,px_int deep); 41 | px_void PX_QuadtreeAddNode(PX_Quadtree *pQuadtree,px_float CenterX,px_float CenterY,px_float width,px_float height,PX_Quadtree_UserData userData); 42 | px_void PX_QuadtreeTestNode(PX_Quadtree *pQuadtree,px_float CenterX,px_float CenterY,px_float width,px_float height,PX_Quadtree_UserData user); 43 | px_void PX_QuadtreeResetTest(PX_Quadtree *pQuadtree); 44 | #endif 45 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Quicksort.c: -------------------------------------------------------------------------------- 1 | #include "PX_Quicksort.h" 2 | 3 | static void swap(PX_QuickSortAtom array[], px_int left, px_int right) 4 | { 5 | PX_QuickSortAtom temp; 6 | temp = array[left]; 7 | array[left] = array[right]; 8 | array[right] = temp; 9 | } 10 | 11 | 12 | static px_int partition_l(PX_QuickSortAtom array[], px_int left, px_int right, px_int pivot_index) 13 | { 14 | px_float pivot_value = array[pivot_index].power; 15 | px_int store_index = left; 16 | px_int i; 17 | 18 | swap(array, pivot_index, right); 19 | for (i = left; i < right; i++) 20 | if (array[i].power < pivot_value) { 21 | swap(array, i, store_index); 22 | ++store_index; 23 | } 24 | swap(array, store_index, right); 25 | return store_index; 26 | } 27 | 28 | static px_int partition_m(PX_QuickSortAtom array[], px_int left, px_int right, px_int pivot_index) 29 | { 30 | px_float pivot_value = array[pivot_index].power; 31 | px_int store_index = left; 32 | px_int i; 33 | 34 | swap(array, pivot_index, right); 35 | for (i = left; i < right; i++) 36 | if (array[i].power > pivot_value) { 37 | swap(array, i, store_index); 38 | ++store_index; 39 | } 40 | swap(array, store_index, right); 41 | return store_index; 42 | } 43 | 44 | void PX_Quicksort_MinToMax(PX_QuickSortAtom array[], px_int left, px_int right) 45 | { 46 | px_int pivot_index = left; 47 | px_int pivot_new_index; 48 | 49 | 50 | while (right > left) 51 | { 52 | pivot_new_index = partition_l(array, left, right, pivot_index); 53 | PX_Quicksort_MinToMax(array, left, pivot_new_index - 1); 54 | pivot_index = left = pivot_new_index + 1; 55 | 56 | } 57 | } 58 | 59 | void PX_Quicksort_MaxToMin(PX_QuickSortAtom array[], px_int left, px_int right) 60 | { 61 | px_int pivot_index = left; 62 | px_int pivot_new_index; 63 | 64 | 65 | while (right > left) 66 | { 67 | pivot_new_index = partition_m(array, left, right, pivot_index); 68 | PX_Quicksort_MaxToMin(array, left, pivot_new_index - 1); 69 | pivot_index = left = pivot_new_index + 1; 70 | 71 | } 72 | } 73 | 74 | 75 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Quicksort.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_QUICKSORT_H 2 | #define PX_QUICKSORT_H 3 | 4 | #include "PX_Typedef.h" 5 | 6 | typedef struct 7 | { 8 | px_float power; 9 | px_void *pData; 10 | }PX_QuickSortAtom; 11 | void PX_Quicksort_MinToMax(PX_QuickSortAtom array[], px_int left, px_int right); 12 | void PX_Quicksort_MaxToMin(PX_QuickSortAtom array[], px_int left, px_int right); 13 | #endif 14 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Sha256.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // WjCryptLib_Sha256 3 | // 4 | // Implementation of SHA256 hash function. 5 | // Original author: Tom St Denis, tomstdenis@gmail.com, http://libtom.org 6 | // Modified by WaterJuice retaining Public Domain license. 7 | // 8 | // This is free and unencumbered software released into the public domain - June 2013 waterjuice.org 9 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 10 | 11 | #pragma once 12 | 13 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 14 | // IMPORTS 15 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 16 | 17 | #include "PX_Typedef.h" 18 | 19 | typedef struct 20 | { 21 | px_uint64 length; 22 | px_uint32 state[8]; 23 | px_uint32 curlen; 24 | px_uchar buf[64]; 25 | } PX_Sha256Context; 26 | 27 | #define SHA256_HASH_SIZE ( 256 / 8 ) 28 | 29 | typedef struct 30 | { 31 | px_uchar bytes [SHA256_HASH_SIZE]; 32 | } PX_SHA256_HASH; 33 | 34 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 35 | // PUBLIC FUNCTIONS 36 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 37 | 38 | 39 | 40 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 41 | // Sha256Calculate 42 | // 43 | // Combines Sha256Initialise, Sha256Update, and Sha256Finalise into one function. Calculates the SHA256 hash of the 44 | // buffer. 45 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 46 | void 47 | PX_Sha256Calculate 48 | ( 49 | void* Buffer, // [in] 50 | px_uint32 BufferSize, // [in] 51 | PX_SHA256_HASH* Digest // [in] 52 | ); 53 | 54 | void PX_Sha256CalculateHashString(px_void *buffer,px_uint32 bufferSize,px_char stringKey[32]); -------------------------------------------------------------------------------- /PainterEngine/core/PX_Sound.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_SOUND_H 2 | #define PX_SOUND_H 3 | //painter engine sound-mixer 4 | //44100HZ 5 | //16bit 6 | //1/2-channel supported 7 | #include "PX_Wave.h" 8 | #include "PX_Vector.h" 9 | #include "PX_Tuning.h" 10 | 11 | #define PX_SOUND_DEFAULT_PARALLEL 8 12 | typedef enum 13 | { 14 | PX_SOUND_CHANNEL_ONE, 15 | PX_SOUND_CHANNEL_DOUBLE 16 | }PX_SOUND_CHANNEL; 17 | 18 | typedef enum 19 | { 20 | PX_SOUND_MIX_MODE_AVG, 21 | PX_SOUND_MIX_MODE_PARALLEL, 22 | }PX_SOUND_MIX_MODE; 23 | 24 | typedef struct 25 | { 26 | px_memorypool *mp; 27 | px_byte *buffer; 28 | px_int size; 29 | PX_SOUND_CHANNEL channel; 30 | }PX_SoundData; 31 | 32 | typedef struct 33 | { 34 | px_int offset; 35 | px_bool loop; 36 | PX_SoundData *data; 37 | }PX_Sound; 38 | 39 | typedef struct 40 | { 41 | px_memorypool *mp; 42 | px_int parallel; 43 | px_bool pause; 44 | volatile px_bool bLock; 45 | PX_SOUND_MIX_MODE mix_mode; 46 | PX_Sound Sounds[PX_SOUND_DEFAULT_PARALLEL]; 47 | }PX_SoundPlay; 48 | 49 | px_bool PX_SoundPlayInit(px_memorypool *mp,PX_SoundPlay *pSoundPlay); 50 | px_void PX_SoundPlayPause(PX_SoundPlay *pSoundPlay,px_bool pause); 51 | px_bool PX_SoundPlayAdd(PX_SoundPlay *pSoundPlay,PX_Sound sound); 52 | px_bool PX_SoundPlayRead(PX_SoundPlay *pSoundPlay,px_byte *pBuffer,px_int readSize); 53 | px_void PX_SoundPlayFree(PX_SoundPlay *pSoundPlay); 54 | px_void PX_SoundPlayClear(PX_SoundPlay *pSoundPlay); 55 | px_bool PX_SoundPlayGetDataCount(PX_SoundPlay *pSoundPlay); 56 | PX_Sound PX_SoundCreate(PX_SoundData *data,px_bool loop); 57 | px_bool PX_SoundStaticDataCreate(PX_SoundData *sounddata,px_memorypool *mp,px_byte *data,px_int datasize); 58 | px_void PX_SoundStaticDataFree(PX_SoundData *sounddata); 59 | #endif 60 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_SoundModule.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_SOUNDMODULE 2 | #define PX_SOUNDMODULE 3 | 4 | #include "../Core/PX_Core.h" 5 | 6 | #define PX_SOUNDMODULE_N 1024 7 | #define PX_SOUNDMODULE_FORMANT_COUNT 32 8 | #define PX_SOUNDMODULE_DEFALUT_SEARCH_HZ 90 9 | 10 | typedef struct 11 | { 12 | px_double A,W; 13 | }PX_SoundModule_Formant; 14 | 15 | typedef struct 16 | { 17 | px_memorypool *mp; 18 | px_double lastPhase[PX_SOUNDMODULE_N/2]; 19 | px_double remian[PX_SOUNDMODULE_N*2]; 20 | px_double halfRebuild[PX_SOUNDMODULE_N/2]; 21 | PX_SoundModule_Formant Formant[PX_SOUNDMODULE_FORMANT_COUNT]; 22 | 23 | px_int remainCount; 24 | px_int SampleRate; 25 | px_double searchHzW; 26 | px_double pitchShift; 27 | px_double ZCR_Low,ZCR_High; 28 | px_double amp_threshold; 29 | px_double amp_max; 30 | px_double Pitch_threshold_Low,Pitch_threshold_High; 31 | }PX_SoundModule; 32 | 33 | 34 | px_void PX_SoundModuleInitialize(px_memorypool *mp,PX_SoundModule *SoundModule,px_int SampleRate,px_double pitchShift,PX_SoundModule_Formant Formant[],px_int FormantCount); 35 | px_int PX_SoundModuleFilter(PX_SoundModule *SoundModule,_IN px_double _in[],px_int count,_OUT px_double _out[]); 36 | px_void PX_SoundModulePitchShift(PX_SoundModule *SoundModule,px_double pitchShift); 37 | px_void PX_SoundModuleSetZCR(PX_SoundModule *SoundModule,px_double low,px_double high); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Surface.h: -------------------------------------------------------------------------------- 1 | #ifndef __PX_SURFACE_H 2 | #define __PX_SURFACE_H 3 | #include "PX_MemoryPool.h" 4 | 5 | typedef struct _PX_Surface 6 | { 7 | px_color *surfaceBuffer; 8 | px_int height; 9 | px_int width; 10 | px_memorypool *MP; 11 | }px_surface; 12 | #define PX_SURFACECOLOR(main_pSurface,X,Y) ((main_pSurface)->surfaceBuffer[(X)+(main_pSurface)->width*(Y)]) 13 | #define PX_SurfaceGetPixel(main_pSurface,X,Y) PX_SURFACECOLOR(main_pSurface,X,Y) 14 | #define PX_SurfaceSetPixel(main_pSurface,X,Y,COLOR) ((main_pSurface)->surfaceBuffer[(X)+(main_pSurface)->width*(Y)]=COLOR) 15 | px_void PX_SurfaceDrawPixel(px_surface *ps,px_int x,px_int y,px_color color); 16 | px_void PX_SurfaceDrawPixelFaster(px_surface *psurface,px_int X,px_int Y,px_color COLOR); 17 | px_bool PX_SurfaceCreate(px_memorypool *mp,px_uint width,px_uint height,_OUT px_surface *surface); 18 | px_void PX_SurfaceClear(px_surface *ps, px_int left, px_int top, px_int right, px_int bottom,px_color color); 19 | px_void PX_SurfaceFree(px_surface *psurface); 20 | #endif 21 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_TRaw.h: -------------------------------------------------------------------------------- 1 | #ifndef _PX_TRAW_H 2 | #define _PX_TRAW_H 3 | 4 | #include "../Core/PX_Surface.h" 5 | 6 | typedef struct _PX_TRaw_Header 7 | { 8 | px_byte Magic[4];//TRAW 0x57415254 9 | px_int32 Width; 10 | px_int32 Height; 11 | }PX_TRaw_Header; 12 | 13 | px_bool PX_TRawVerify(px_void *data,px_int size); 14 | px_int PX_TRawGetWidth(px_void *data); 15 | px_int PX_TRawGetHeight(px_void *data); 16 | px_uint PX_TRawGetSize(PX_TRaw_Header *header); 17 | px_void PX_TRawRender(px_surface *psurface,px_void *data,px_int x,px_int y); 18 | px_bool PX_TRawBuild(px_surface *psurface,px_byte *TRawBuffer,px_int *size); 19 | #endif 20 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Tuning.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_TUNING 2 | #define PX_TUNING 3 | 4 | #include "../Core/PX_Core.h" 5 | 6 | #define PX_TUNING_MAX_EXECUTE_SIZE 8192 7 | #define PX_TUNING_DEFAULT_FRAME_SIZE 1024 8 | #define PX_TUNING_MAX_FRAME_SIZE 2048 9 | 10 | 11 | typedef struct 12 | { 13 | px_memorypool *mp; 14 | px_double previous_frame[PX_TUNING_MAX_FRAME_SIZE/2*3]; 15 | px_double half_previous_out[PX_TUNING_MAX_FRAME_SIZE/2]; 16 | px_double filter[PX_TUNING_MAX_FRAME_SIZE]; 17 | px_double window[PX_TUNING_MAX_FRAME_SIZE]; 18 | px_double fix[PX_TUNING_MAX_FRAME_SIZE]; 19 | px_double remian[PX_TUNING_MAX_EXECUTE_SIZE]; 20 | px_int SampleRate; 21 | px_int remainCount; 22 | px_double pitchShift,timeScale; 23 | px_double previousInterpolationValue; 24 | px_double previousInterpolationOffset; 25 | px_double spectrumInterpolationOffset; 26 | px_double spectrumInterpolationFactor; 27 | px_double interpolationFactor; 28 | px_double ZCR_Low,ZCR_High; 29 | px_double amp_threshold; 30 | px_double lastphase[PX_TUNING_MAX_FRAME_SIZE]; 31 | px_int N; 32 | }PX_Tuning; 33 | 34 | typedef enum 35 | { 36 | PX_TUNING_WINDOW_SIZE_8, 37 | PX_TUNING_WINDOW_SIZE_128, 38 | PX_TUNING_WINDOW_SIZE_256, 39 | PX_TUNING_WINDOW_SIZE_512, 40 | PX_TUNING_WINDOW_SIZE_1024, 41 | PX_TUNING_WINDOW_SIZE_2048, 42 | }PX_TUNING_WINDOW_SIZE; 43 | 44 | px_void PX_TuningInitialize(px_memorypool *mp,PX_Tuning *tuning,px_int SampleRate,px_double pitchShift,px_double timeShift,px_double window[],px_double filter[],px_double fix[],PX_TUNING_WINDOW_SIZE windowsize); 45 | px_int PX_TuningFilter(PX_Tuning *tuning,_IN px_double frame_unit[],px_int Size,_OUT px_double out_unit[]); 46 | px_void PX_TuningTimeScale(px_double timescale,px_double in[],px_int count,px_memory *out); 47 | px_void PX_TuningSetPitchShift(PX_Tuning *tuning,px_double pitchShift); 48 | px_void PX_TuningSetTimeScale(PX_Tuning *tuning,px_double TimeScale); 49 | px_void PX_TuningSetFilter(PX_Tuning *tuning,px_double filter[]); 50 | px_void PX_TuningSetFix(PX_Tuning *tuning,px_double fix[]); 51 | px_void PX_TuningSetZCR(PX_Tuning *tuning,px_double low,px_double high); 52 | #endif 53 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Vector.h: -------------------------------------------------------------------------------- 1 | #ifndef __PX_VECTOR_H 2 | #define __PX_VECTOR_H 3 | #include "PX_MemoryPool.h" 4 | typedef struct __px_vector 5 | { 6 | px_void *data; 7 | px_int nodesize; 8 | px_int size; 9 | px_int allocsize; 10 | px_memorypool *mp; 11 | }px_vector; 12 | 13 | px_bool PX_VectorInit(px_memorypool *mp,px_vector *vec,px_int nodeSize,px_int init_size); 14 | px_bool PX_VectorSet(px_vector *vec,px_uint index,px_void *data); 15 | px_bool PX_VectorAllocSize(px_vector *vec,px_int size); 16 | px_bool PX_VectorPushback(px_vector *vec,px_void *data); 17 | px_bool PX_VectorErase(px_vector *vec,px_int index); 18 | px_bool PX_VectorPop(px_vector *vec); 19 | #define PX_VectorSize(x) ((x)->size) 20 | #define PX_VECTORAT(t,vec,i) ((t *)((px_byte *)((vec)->data)+(vec)->nodesize*(i))) 21 | #define PX_VECTORLAST(t,vec) PX_VECTORAT(t,vec,(vec)->size-1) 22 | #define PX_VectorFree(x) (MP_Free((x)->mp,(x)->data)) 23 | #define PX_VectorClear(vec) ((vec)->size=0) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_Wave.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_WAVE_H 2 | #define PX_WAVE_H 3 | #include "PX_Typedef.h" 4 | 5 | typedef struct 6 | { 7 | px_byte szRiffId[4]; 8 | px_dword dwRiffSize; 9 | px_byte szRiffFormat[4]; 10 | }PX_WAVE_RIFF_HEADER; 11 | 12 | typedef struct 13 | { 14 | px_word wFormatTag; 15 | px_word wChannels; 16 | px_dword dwSamplesPerSec; 17 | px_dword dwAvgBytesPerSec; 18 | px_word wBlockAlign; 19 | px_word wBitsPerSample; 20 | }PX_WAVE_FORMAT; 21 | 22 | typedef struct 23 | { 24 | px_byte szFmtID[4]; // 'f','m','t',' ' please note the 25 | // space character at the fourth location. 26 | px_dword dwFmtSize; 27 | PX_WAVE_FORMAT wavFormat; 28 | }PX_WAVE_FMT_BLOCK; 29 | 30 | 31 | typedef struct 32 | { 33 | px_byte szDataID[4]; 34 | px_dword dwDataSize; 35 | }PX_WAVE_DATA_BLOCK; 36 | 37 | px_uint PX_WaveGetChannel(px_byte *buffer,px_int size); 38 | px_bool PX_WaveVerify(px_byte *buffer,px_int size); 39 | px_uint PX_WaveGetPCMSize(px_byte *buffer,px_int size); 40 | px_byte* PX_WaveGetPCMDataPtr(px_int index,px_byte *buffer,px_int size); 41 | 42 | #endif 43 | 44 | 45 | -------------------------------------------------------------------------------- /PainterEngine/core/PX_curve25519.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_CURVE25519_H 2 | #define PX_CURVE25519_H 3 | #include "PX_MemoryPool.h" 4 | /* 5 | To generate a private key, generate 32 random bytes and: 6 | px_byte mysecret[32]; 7 | mysecret[0] &= 248; 8 | mysecret[31] &= 127; 9 | mysecret[31] |= 64; 10 | To generate the public key, just do: 11 | 12 | static const uint8_t basepoint[32] = {9}; 13 | curve25519_donna(mypublic, mysecret, basepoint); 14 | To generate a shared key do: 15 | 16 | uint8_t shared_key[32]; 17 | curve25519_donna(shared_key, mysecret, theirpublic); 18 | */ 19 | px_void PX_Curve25519(px_byte *mypublic, const px_byte *secret, const px_byte *basepoint); 20 | #endif 21 | -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_2dxCommon.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_2DXCOMMON_H 2 | #define PX_2DXCOMMON_H 3 | #include "../Core/PX_Core.h" 4 | typedef struct 5 | { 6 | px_dword magic; 7 | px_dword framecount; 8 | px_dword animationCount; 9 | }PX_2DX_Header; 10 | 11 | 12 | typedef struct 13 | { 14 | px_dword size; 15 | }PX_2DX_CODE_Header; 16 | 17 | typedef enum 18 | { 19 | PX_2DX_OPCODE_FRAME =1, 20 | PX_2DX_OPCODE_SLEEP, 21 | PX_2DX_OPCODE_GOTO, 22 | PX_2DX_OPCODE_LOOP, 23 | PX_2DX_OPCODE_END, 24 | }PX_2DX_OPCODE; 25 | 26 | //Instrument format 27 | //opcode 1byte 28 | //other 3byte 29 | 30 | typedef struct 31 | { 32 | px_word opcode; 33 | px_word param; 34 | }PX_2DX_INSTR; 35 | 36 | //frame [index] //opcode 1 byte //param 3 byte 37 | //sleep [index] //opcode 1 byte //param 3 byte 38 | //goto [index] //jmp addr 3 byte //loop times 4 byte 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_3D_ObjData.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_3D_OBJDATA_H 2 | #define PX_3D_OBJDATA_H 3 | #include "PX_Lexer.h" 4 | 5 | typedef struct 6 | { 7 | px_int v,vn,vt; 8 | }PX_3D_ObjectDataVertex; 9 | 10 | 11 | typedef struct 12 | { 13 | px_uint mtlFileNameIndex; 14 | px_uint mtlNameIndex; 15 | PX_3D_ObjectDataVertex v[3]; 16 | }PX_3D_ObjectDataFace; 17 | 18 | 19 | typedef struct 20 | { 21 | px_float x,y,z; 22 | }PX_3D_ObjectData_v; 23 | 24 | typedef struct 25 | { 26 | px_float x,y,z; 27 | }PX_3D_ObjectData_vn; 28 | 29 | typedef struct 30 | { 31 | px_float u,v; 32 | }PX_3D_ObjectData_vt; 33 | 34 | typedef struct 35 | { 36 | px_memorypool *mp; 37 | px_vector v; 38 | px_vector vt; 39 | px_vector vn; 40 | px_vector face; 41 | px_vector mtlFile; 42 | px_vector mtlName; 43 | }PX_3D_ObjectData; 44 | 45 | px_bool PX_3D_ObjectDataInitialize(px_memorypool *mp,PX_3D_ObjectData *ObjectData); 46 | px_bool PX_3D_ObjectDataLoad(PX_3D_ObjectData *ObjectData,const px_byte *data,px_int size); 47 | px_bool PX_3D_ObjectDataToRenderList(PX_3D_ObjectData *ObjectData,PX_3D_RenderList *renderList); 48 | px_void PX_3D_ObjectDataFree(PX_3D_ObjectData *ObjectData); 49 | 50 | #endif -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_Json.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_JSON_H 2 | #define PX_JSON_H 3 | #include "PX_Lexer.h" 4 | 5 | 6 | 7 | typedef enum 8 | { 9 | PX_JSON_VALUE_TYPE_STRING, 10 | PX_JSON_VALUE_TYPE_NUMBER, 11 | PX_JSON_VALUE_TYPE_BOOLEAN, 12 | PX_JSON_VALUE_TYPE_NULL, 13 | PX_JSON_VALUE_TYPE_OBJECT, 14 | PX_JSON_VALUE_TYPE_ARRAY, 15 | }PX_JSON_VALUE_TYPE; 16 | 17 | typedef struct _PX_Json_Object 18 | { 19 | px_list values; 20 | }PX_Json_Object; 21 | 22 | typedef struct 23 | { 24 | PX_JSON_VALUE_TYPE type; 25 | px_string name; 26 | union 27 | { 28 | px_string _string; 29 | px_double _number; 30 | px_bool _boolean; 31 | PX_Json_Object json_Object; 32 | px_list _Array; 33 | }; 34 | }PX_Json_Value; 35 | 36 | typedef struct _PX_Json_Object PX_Json_Object; 37 | 38 | typedef struct 39 | { 40 | px_memorypool *mp; 41 | PX_Json_Value rootValue; 42 | }PX_Json; 43 | 44 | 45 | PX_Json_Value *PX_JsonGetObjectValue(PX_Json_Value *json_value,const px_char name[]); 46 | PX_Json_Value * PX_JsonGetValue(PX_Json *json,const px_char payload[]); 47 | PX_Json_Value * PX_JsonGetArrayValue(PX_Json_Value *value,px_int i); 48 | 49 | 50 | px_bool PX_JsonInitialize(px_memorypool *mp,PX_Json *pjson); 51 | 52 | px_bool PX_JsonParse(PX_Json *pjson,const px_char *json_content); 53 | px_bool PX_JsonBuild_Value(PX_Json_Value *pValue,px_string *_out,px_bool bArrayValue); 54 | px_bool PX_JsonBuild(PX_Json *pjson,px_string *_out); 55 | px_void PX_JsonFree(PX_Json *pjson); 56 | 57 | 58 | px_bool PX_JsonCreateObjectValue(px_memorypool *mp,PX_Json_Value *pValue,const px_char name[]); 59 | px_bool PX_JsonCreateStringValue(px_memorypool *mp,PX_Json_Value *pValue,const px_char name[],const px_char text[]); 60 | px_bool PX_JsonCreateNumberValue(px_memorypool *mp,PX_Json_Value *pValue,const px_char name[],px_double value); 61 | px_bool PX_JsonCreateArrayValue(px_memorypool *mp,PX_Json_Value *pValue,const px_char name[]); 62 | #endif -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_Kernel.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | /* 3 | PainterEngine Kernel 4 | (C)2019 DBinary 5 | 6 | This program is free software; you can redistribute it and/or modify 7 | it under the terms of the BSD General Public License 8 | */ 9 | ////////////////////////////////////////////////////////////////////////// 10 | #ifndef _PX_KERNEL_H 11 | #define _PX_KERNEL_H 12 | #include "PX_Script_Interpreter.h" 13 | #include "PX_Script_ASMCompiler.h" 14 | #include "PX_Script_VM.h" 15 | #include "PX_Partical.h" 16 | #include "PX_Animation.h" 17 | #include "PX_World.h" 18 | #include "PX_Sync.h" 19 | #include "PX_Object.h" 20 | #include "PX_Json.h" 21 | #include "PX_3D_ObjData.h" 22 | #include "PX_MODBUS.h" 23 | #endif 24 | -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_MODBUS.c: -------------------------------------------------------------------------------- 1 | #include "PX_MODBUS.h" 2 | 3 | px_int PX_ModbusPacketBuild(PX_ModbusPacket *packet,px_byte opcode,px_word startAddr,px_word regcount, px_byte *buffer,px_int size) 4 | { 5 | packet->magic=0; 6 | packet->protocol=0; 7 | packet->size=size+6; 8 | packet->startAddress[0]=0xff&(startAddr>>8); 9 | packet->startAddress[1]=0xff&(startAddr); 10 | packet->regcount[0]=0xff&(regcount>>8); 11 | packet->regcount[1]=0xff&(regcount); 12 | packet->opcode=opcode; 13 | packet->unit=1; 14 | if(size) 15 | PX_memcpy(packet->data,buffer,size); 16 | return size+9; 17 | } 18 | 19 | px_int PX_ModbusWrite(PX_ModbusPacket *packet,px_word startAddr,px_word regcount, px_word *buffer,px_int size) 20 | { 21 | return PX_ModbusPacketBuild(packet,0x06,startAddr,regcount,(px_byte *)buffer,size*2); 22 | } 23 | 24 | px_int PX_ModbusRead(PX_ModbusPacket *packet,px_word startAddr,px_word regcount) 25 | { 26 | return PX_ModbusPacketBuild(packet,0x03,startAddr,regcount,"",0); 27 | } 28 | -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_MODBUS.h: -------------------------------------------------------------------------------- 1 | //Modbus RTU 2 | //Code by DBinary 2019-11-25 for PainterEngine 3 | 4 | #ifndef PX_MODBUS_H 5 | #define PX_MODBUS_H 6 | #include "../core/PX_Core.h" 7 | 8 | 9 | typedef struct 10 | { 11 | px_word protocol; 12 | px_word magic; 13 | px_byte size; 14 | px_byte unit; 15 | px_byte opcode; 16 | px_byte startAddress[2]; 17 | px_byte regcount[2]; 18 | px_byte data[247]; 19 | }PX_ModbusPacket; 20 | 21 | px_int PX_ModbusPacketBuild(PX_ModbusPacket *packet,px_byte opcode,px_word startAddr,px_word regcount, px_byte *buffer,px_int size); 22 | px_int PX_ModbusWrite(PX_ModbusPacket *packet,px_word startAddr,px_word regcount, px_word *buffer,px_int size); 23 | px_int PX_ModbusRead(PX_ModbusPacket *packet,px_word startAddr,px_word regcount); 24 | 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_Resource.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_RESOURCE_H 2 | #define PX_RESOURCE_H 3 | 4 | #include "../Core/PX_Core.h" 5 | #include "PX_Script_VM.h" 6 | #include "PX_Animation.h" 7 | #include "PX_Partical.h" 8 | #include "PX_Script_Interpreter.h" 9 | #include "PX_Script_ASMCompiler.h" 10 | 11 | typedef enum 12 | { 13 | PX_RESOURCE_TYPE_NULL, 14 | PX_RESOURCE_TYPE_ANIMATIONLIBRARY, 15 | PX_RESOURCE_TYPE_SCRIPT, 16 | PX_RESOURCE_TYPE_TEXTURE, 17 | PX_RESOURCE_TYPE_SHAPE, 18 | PX_RESOURCE_TYPE_SOUND, 19 | PX_RESOURCE_TYPE_DATA, 20 | }PX_RESOURCE_TYPE; 21 | 22 | 23 | typedef struct 24 | { 25 | PX_RESOURCE_TYPE Type; 26 | union 27 | { 28 | px_texture texture; 29 | px_shape shape; 30 | PX_Animationlibrary animationlibrary; 31 | PX_ScriptVM_Instance Script; 32 | PX_SoundData sound; 33 | px_memory data; 34 | }; 35 | }PX_Resource; 36 | 37 | typedef struct 38 | { 39 | px_memorypool *mp; 40 | px_list resources; 41 | px_map map; 42 | }PX_ResourceLibrary; 43 | 44 | 45 | 46 | px_bool PX_ResourceLibraryInit(px_memorypool *mp,PX_ResourceLibrary *lib); 47 | px_bool PX_ResourceLibraryLoad(PX_ResourceLibrary *lib,PX_RESOURCE_TYPE type,px_byte *data,px_uint datasize,const px_char key[]); 48 | px_bool PX_ResourceLibraryAddTexture(PX_ResourceLibrary *lib,const px_char key[],px_texture *pTexture); 49 | PX_Resource * PX_ResourceLibraryGet(PX_ResourceLibrary *lib,const px_char key[]); 50 | px_texture *PX_ResourceLibraryGetTexture(PX_ResourceLibrary *lib,const px_char key[]); 51 | px_shape *PX_ResourceLibraryGetShape(PX_ResourceLibrary *lib,const px_char key[]); 52 | PX_Animationlibrary *PX_ResourceLibraryGetAnimationLibrary(PX_ResourceLibrary *lib,const px_char key[]); 53 | PX_ScriptVM_Instance *PX_ResourceLibraryGetScript(PX_ResourceLibrary *lib,const px_char key[]); 54 | PX_SoundData *PX_ResourceLibraryGetSound(PX_ResourceLibrary *lib,const px_char key[]); 55 | px_memory *PX_ResourceLibraryGetData(PX_ResourceLibrary *lib,const px_char key[]); 56 | 57 | px_void PX_ResourceLibraryDelete(PX_ResourceLibrary *lib,const px_char key[]); 58 | px_void PX_ResourceLibraryFree(PX_ResourceLibrary *lib); 59 | 60 | 61 | #endif 62 | 63 | 64 | -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_Script_ASMCompiler.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_SCRIPT_ASM_COMPILER_H 2 | #define PX_SCRIPT_ASM_COMPILER_H 3 | #include "PX_ScriptCore.h" 4 | px_bool PX_ScriptAsmCompile(px_memorypool *mp,px_char *asmcode,px_memory *binmemory); 5 | px_bool PX_ScriptAsmOptimization(px_string *asmcode); 6 | px_char * PX_ScriptASMCompilerError(); 7 | #endif 8 | -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_SoundLab.c: -------------------------------------------------------------------------------- 1 | #include "PX_SoundLab.h" -------------------------------------------------------------------------------- /PainterEngine/kernel/PX_SoundLab.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_SOUNDLAB_H 2 | #define PX_SOUNDLAB_H 3 | 4 | #include "PX_Script_VM.h" 5 | 6 | typedef enum 7 | { 8 | PX_SOUNDLAB_STFT_WINDOW_SIZE_256, 9 | PX_SOUNDLAB_STFT_WINDOW_SIZE_512, 10 | PX_SOUNDLAB_STFT_WINDOW_SIZE_1024, 11 | PX_SOUNDLAB_STFT_WINDOW_SIZE_2048, 12 | PX_SOUNDLAB_STFT_WINDOW_SIZE_4096, 13 | PX_SOUNDLAB_STFT_WINDOW_SIZE_8192, 14 | }PX_SOUNDLAB_STFT_WINDOW_SIZE; 15 | 16 | typedef struct 17 | { 18 | px_memorypool *mp; 19 | PX_SoundData SoundData; 20 | PX_SOUNDLAB_STFT_WINDOW_SIZE STFT_WINDOW; 21 | }PX_SoundLab; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /PainterEngine/kernel/ParticalScript_module.txt: -------------------------------------------------------------------------------- 1 | #name "main" 2 | host float partical_rand(); 3 | 4 | set vector 5 | { 6 | float x,y,z; 7 | } 8 | 9 | set hdr_color 10 | { 11 | int g,b,r,a; 12 | } 13 | 14 | set Partical_Init_Info 15 | { 16 | int generateDuration; 17 | int maxCount; 18 | vector force; 19 | float resistanceK; 20 | int launchCount; 21 | } 22 | 23 | set PARTICAL_ATOM_INFO 24 | { 25 | float size; 26 | float rotation; 27 | float mass; 28 | float alpha; 29 | int aliveTime; 30 | int elpasedTime; 31 | vector position; 32 | vector velocity; 33 | float hdrR; 34 | float hdrG; 35 | float hdrB; 36 | float rotationSpeed; 37 | float sizeIncrement; 38 | float alphaIncrement; 39 | } 40 | 41 | Partical_Init_Info g_particalInitInfo; 42 | PARTICAL_ATOM_INFO atomInfo; 43 | 44 | export Partical_Init_Info *Partical_Init() 45 | { 46 | g_particalInitInfo.generateDuration=25; 47 | g_particalInitInfo.maxCount=128; 48 | g_particalInitInfo.force.x=0; 49 | g_particalInitInfo.force.y=0; 50 | g_particalInitInfo.force.z=0; 51 | g_particalInitInfo.resistanceK=0; 52 | g_particalInitInfo.launchCount=-1; 53 | return &g_particalInitInfo; 54 | } 55 | 56 | export PARTICAL_ATOM_INFO *Partical_Create(int index) 57 | { 58 | atomInfo.size=0.5+partical_rand()/2; 59 | atomInfo.rotation=partical_rand()*360; 60 | atomInfo.mass=1.0; 61 | atomInfo.alpha=1; 62 | atomInfo.aliveTime=3000; 63 | atomInfo.elpasedTime=0; 64 | atomInfo.position.x=0; 65 | atomInfo.position.y=0; 66 | atomInfo.position.z=0; 67 | 68 | atomInfo.velocity.x=300*partical_rand()-150; 69 | atomInfo.velocity.y=300*partical_rand()-150; 70 | atomInfo.velocity.z=0; 71 | 72 | atomInfo.hdrR=0.75+partical_rand()/4; 73 | atomInfo.hdrG=0.75+partical_rand()/4; 74 | atomInfo.hdrB=0.75+partical_rand()/4; 75 | 76 | atomInfo.rotationSpeed=360*partical_rand(); 77 | atomInfo.alphaIncrement=-0.45; 78 | atomInfo.sizeIncrement=-0.35; 79 | 80 | return &atomInfo; 81 | } 82 | 83 | 84 | export void Partical_Atom_Update(PARTICAL_ATOM_INFO *atomInfo) 85 | { 86 | 87 | } 88 | -------------------------------------------------------------------------------- /PainterEngine/platform/windows/Platform_Windows_Audio.h: -------------------------------------------------------------------------------- 1 | #ifndef PLATFORM_WINDOWS_DSOUND_H 2 | #define PLATFORM_WINDOWS_DSOUND_H 3 | #include "Windows.h" 4 | #include "../../core/PX_Sound.h" 5 | 6 | BOOL PX_AudioInitialize(HWND hwnd,PX_SoundPlay *soundPlay,BOOL startThread); 7 | void PX_AudioSetVolume(DWORD volume); 8 | int PX_AudioGetStandbyBufferSize(); 9 | int PX_AudioWriteBuffer(void *pBuffer,size_t Size); 10 | 11 | 12 | BOOL PX_AudioCaptureOpen(GUID dev_id,int channel); 13 | DWORD PX_AudioCaptureRead(void *buffer,px_int buffersize); 14 | DWORD PX_AudioCaptureReadEx(void *buffer,px_int buffersize,px_int align); 15 | BOOL PX_AudioCaptureClose(); 16 | #endif -------------------------------------------------------------------------------- /PainterEngine/platform/windows/Platform_Windows_D2D.cbak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/platform/windows/Platform_Windows_D2D.cbak -------------------------------------------------------------------------------- /PainterEngine/platform/windows/Platform_Windows_D2D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/platform/windows/Platform_Windows_D2D.cpp -------------------------------------------------------------------------------- /PainterEngine/platform/windows/Platform_Windows_SerialPort.h: -------------------------------------------------------------------------------- 1 | #ifndef PLATFORM_WINDOWS_SERIALPORT_H 2 | #define PLATFORM_WINDOWS_SERIALPORT_H 3 | #include 4 | 5 | typedef struct 6 | { 7 | HANDLE Handle; 8 | UINT BaudRate; 9 | UINT DataBits; 10 | char ParityType; 11 | UINT StopBit; 12 | }PX_SerialPort; 13 | 14 | 15 | const UCHAR* PX_SerialPortEnumComName(int index); 16 | const int PX_SerialPortInitialize(PX_SerialPort *com,const char *name,unsigned int baudRate,unsigned int DataBits,char ParityType,unsigned int stopBit); 17 | const int PX_SerialPortWrite(PX_SerialPort *com,void *data,int size); 18 | const int PX_SerialPortRead(PX_SerialPort *com,void *data,int size); 19 | void PX_SerialPortClose(PX_SerialPort *com); 20 | 21 | #endif -------------------------------------------------------------------------------- /PainterEngine/platform/windows/makefile: -------------------------------------------------------------------------------- 1 | make_platform: 2 | g++ -c Platform_Windows_D2D.cpp -o ../../release/platform.o -------------------------------------------------------------------------------- /PainterEngine/platform/windows/module/PainterEngine_Application.c: -------------------------------------------------------------------------------- 1 | #include "PainterEngine_Application.h" 2 | 3 | PX_Application App; 4 | 5 | px_bool PX_ApplicationInitialize(PX_Application *App) 6 | { 7 | return PX_TRUE; 8 | } 9 | 10 | px_void PX_ApplicationUpdate(PX_Application *App,px_dword elpased) 11 | { 12 | 13 | } 14 | 15 | px_void PX_ApplicationRender(PX_Application *App,px_dword elpased) 16 | { 17 | 18 | } 19 | 20 | px_void PX_ApplicationPostEvent(PX_Application *App,PX_Object_Event e) 21 | { 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /PainterEngine/platform/windows/module/PainterEngine_Application.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_APPLICATION_H 2 | #define PAINTERENGINE_APPLICATION_H 3 | #include "PainterEngine_Startup.h" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | //Configures 7 | #define PX_WINDOW_NAME "" 8 | 9 | #define PX_WINDOW_WIDTH 800 10 | #define PX_WINDOW_HEIGHT 600 11 | 12 | //memorypool for runtime(bytes) 13 | #define PX_MEMORY_UI_SIZE (1024*1024*8) 14 | #define PX_MEMORY_RESOURCES_SIZE (1024*1024*8) 15 | #define PX_MEMORY_GAME_SIZE (1024*1024) 16 | ////////////////////////////////////////////////////////////////////////// 17 | 18 | typedef struct 19 | { 20 | PX_Instance Instance; 21 | }PX_Application; 22 | 23 | extern PX_Application App; 24 | 25 | px_bool PX_ApplicationInitialize(PX_Application *App); 26 | px_void PX_ApplicationUpdate(PX_Application *App,px_dword elpased); 27 | px_void PX_ApplicationRender(PX_Application *App,px_dword elpased); 28 | px_void PX_ApplicationPostEvent(PX_Application *App,PX_Object_Event e); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /PainterEngine/platform/windows/module/PainterEngine_Startup.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTERENGINE_STARTUP_H 2 | #define PAINTERENGINE_STARTUP_H 3 | 4 | #include "../../../PainterEngine/platform/windows/Platform_Windows_D2D.h" 5 | #include "../../../PainterEngine/Architecture/PainterEngine_Console.h" 6 | 7 | 8 | typedef struct 9 | { 10 | PX_Runtime runtime; 11 | PX_Console console; 12 | PX_SoundPlay soundplay; 13 | }PX_Instance; 14 | 15 | 16 | ////////////////////////////////////////////////////////////////////////// 17 | 18 | typedef struct 19 | { 20 | px_byte *buffer; 21 | px_uint size; 22 | }PX_IO_Data; 23 | 24 | px_bool PX_InstanceInitialize(PX_Instance *Instance,const px_char name[],px_int width,px_int height,px_uint ui_size,px_uint resource_size,px_uint game_size); 25 | PX_IO_Data PX_LoadFileToIOData(const px_char path[]); 26 | px_void PX_FreeIOData(PX_IO_Data *io); 27 | px_bool PX_LoadTextureFromFile(px_memorypool *mp,px_texture *tex,const px_char path[]); 28 | px_bool PX_LoadShapeFromFile(px_memorypool *mp,px_shape *shape,const px_char path[]); 29 | px_bool PX_LoadSoundFromFile(px_memorypool *mp,px_shape *shape,const px_char path[]); 30 | px_bool PX_LoadAnimationLibraryFromFile(px_memorypool *mp,px_animationlibrary *lib,const px_char path[]); 31 | px_bool PX_LoadScriptFromFile(px_memory *code,const px_char path[]); 32 | px_bool PX_LoadScriptInstanceFromFile(px_memorypool *mp,PX_ScriptVM_Instance *ins,const px_char path[]); 33 | px_bool PX_LoadTextureToResource(PX_Runtime *runtime,const px_char Path[],const px_char key[]); 34 | px_bool PX_LoadShapeToResource(PX_Runtime *runtime,const px_char Path[],const px_char key[]); 35 | px_bool PX_LoadAnimationToResource(PX_Runtime *runtime,const px_char Path[],const px_char key[]); 36 | px_bool PX_LoadScriptToResource(PX_Runtime *runtime,const px_char Path[],const px_char key[]); 37 | px_bool PX_LoadSoundToResource(PX_Runtime *runtime,const px_char Path[],const px_char key[]); 38 | px_bool PX_LoadFontModuleFromFile(PX_FontModule *fm,const px_char Path[]); 39 | px_bool PX_LoadJsonFromFile(PX_Json *json,const px_char *path) 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /PainterEngine/platform/windows/px_udp.h: -------------------------------------------------------------------------------- 1 | #ifndef PX_UDP_H 2 | #define PX_UDP_H 3 | #include "../../Core/PX_Core.h" 4 | 5 | #ifdef _MSC_VER 6 | #pragma comment(lib,"ws2_32.lib") // Platform of MSVC 7 | #pragma comment( lib,"winmm.lib" ) 8 | 9 | #include //header 10 | #include 11 | #include 12 | #include 13 | #include 14 | #endif 15 | 16 | #ifdef __GNUC__ //GNU C 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #endif 24 | 25 | typedef enum 26 | { 27 | PX_UDP_IP_TYPE_IPV4, 28 | PX_UDP_IP_TYPE_IPV6 29 | }PX_UDP_IP_TYPE; 30 | 31 | typedef struct 32 | { 33 | px_uint listenPort; 34 | px_uint socket; 35 | PX_UDP_IP_TYPE type; 36 | }PX_UDP; 37 | 38 | typedef struct 39 | { 40 | px_dword port; 41 | union 42 | { 43 | px_dword ipv4; 44 | px_dword ipv6[4]; 45 | }; 46 | }PX_UDP_ADDR; 47 | PX_UDP_ADDR PX_UDP_ADDR_IPV4(px_dword ipv4,px_ushort port); 48 | px_dword PX_UDPaton(px_char *ipaddr); 49 | px_bool PX_UDPListen(PX_UDP *udp,px_ushort listenPort); 50 | px_bool PX_UDPInit(PX_UDP *udp,PX_UDP_IP_TYPE type); 51 | px_bool PX_UDPSend(PX_UDP *udp,PX_UDP_ADDR addr,px_void *buffer,px_int size); 52 | px_bool PX_UDPReceived(PX_UDP *udp,PX_UDP_ADDR *from_addr,px_void *buffer,px_int buffersize,px_int *readsize); 53 | px_void PX_UDPFree(PX_UDP *udp); 54 | #endif 55 | -------------------------------------------------------------------------------- /PainterEngine/supports/PainterEngine_makefile/makefile: -------------------------------------------------------------------------------- 1 | target = painterengine.a 2 | core_path = ../core/ 3 | kernel_path = ../kernel/ 4 | architecture_path = ../architecture/ 5 | release_path = ../release/ 6 | 7 | source_core = $(wildcard $(core_path)*.c) 8 | core_obj = $(patsubst %.c,%.o,$(source_core)) 9 | 10 | source_kernel = $(wildcard $(kernel_path)*.c) 11 | kernel_obj = $(patsubst %.c,%.o,$(source_kernel)) 12 | 13 | source_architecture = $(wildcard $(architecture_path)*.c) 14 | architecture_obj = $(patsubst %.c,%.o,$(source_architecture)) 15 | 16 | $(target):$(core_obj) $(kernel_obj) $(architecture_obj) 17 | ar -crv $(release_path)$@ $^ 18 | 19 | %.o:$(core_path)%.c 20 | gcc -c $^ -o $@ 21 | 22 | %.o:$(kernel_path)%.c 23 | gcc -c $^ -o $@ 24 | 25 | %.o:$(architecture_path)%.c 26 | gcc -c $^ -o $@ 27 | 28 | .PHONY:linux_clean 29 | linux_clean: 30 | -rm $(target) $(build_obj) 31 | 32 | .PHONY:win_clean 33 | win_clean: 34 | -del /s "$(core_path)*.o" 35 | -del /s "$(kernel_path)*.o" 36 | -del /s "$(architecture_path)*.o" 37 | -del "$(release_path)$(target)" -------------------------------------------------------------------------------- /PainterEngine/supports/demo/2dx-shell.ps1: -------------------------------------------------------------------------------- 1 | set-ExecutionPolicy RemoteSigned 2 | $index=0 3 | for($index=0;$index -le 12;$index++) 4 | { 5 | .\PainterEngine_PngToTRaw.exe .\loading\$index.png .\loading\$index.traw 6 | } 7 | .\PainterEngine_2dxMakeTool.exe .\loading\2dxs.txt .\clock.2dx -------------------------------------------------------------------------------- /PainterEngine/supports/demo/Effect/MatrixEffect_ui.h: -------------------------------------------------------------------------------- 1 | #ifndef MXTRIXEFFECT_UI_H 2 | #define MXTRIXEFFECT_UI_H 3 | #include "../../PainterEngine/Kernel/PX_Kernel.h" 4 | 5 | #define PC_UI_CHAR_HEIGHT 16 6 | #define PC_UI_CHAR_WIDTH 8 7 | 8 | ////////////////////////////////////////////////////////////////////////// 9 | // 10 | //i 11 | //0-3 light 12 | //4-7 dark 13 | //8 none 14 | //t change times 15 | //a alpha 16 | //elpased elpased to lastUpdate 17 | //activated 18 | typedef struct{ 19 | px_char c; 20 | px_char i; 21 | px_char t; 22 | px_uint a; 23 | px_bool activated; 24 | px_uint elpased; 25 | }PX_UI_MATRIXEFFECT_MAP; 26 | 27 | typedef enum 28 | { 29 | PC_UI_ADVANCE_X_INC, 30 | PC_UI_ADVANCE_X_DEC, 31 | PC_UI_ADVANCE_Y_INC, 32 | PC_UI_ADVANCE_Y_DEC 33 | }PX_UI_MATRIXEFFECT_ADVANCE; 34 | 35 | 36 | 37 | typedef struct 38 | { 39 | px_memorypool *mp; 40 | px_uint SWITCH_DURATION; 41 | px_uint ATOM_OPRAND_TIME; 42 | px_uint EXISTING_FLAG_TIMES; 43 | px_uint ADVANCE_TIME; 44 | px_uint AdvanceElpased; 45 | px_int NONE_FLAG_TIMES; 46 | px_int ALPHA_DEC_SPEED; 47 | px_int *CharAdvanceHorizontal,*CharAdvanceVertical; 48 | px_int CharYCount; 49 | px_int CharXCount; 50 | px_bool Done; 51 | 52 | px_surface SwitchTarget; 53 | PX_UI_MATRIXEFFECT_MAP *CharMap; 54 | PX_UI_MATRIXEFFECT_ADVANCE PC_Ui_CharAdvanceType; 55 | }PX_Ui_MatrixEffect; 56 | 57 | 58 | px_bool PX_Ui_MatrixEffectInitialize(px_memorypool *mp,PX_Ui_MatrixEffect *effect,px_int width,px_int height); 59 | px_bool PX_Ui_MatrixEffectUpdate(PX_Ui_MatrixEffect *effect,px_uint elpased); 60 | px_void PX_Ui_MatrixEffectRender(PX_Ui_MatrixEffect *effect,px_surface *TargetSurface); 61 | px_bool PX_Ui_MatrixEffectSwitch(PX_Ui_MatrixEffect *effect,px_surface *snapshot,px_int mode); 62 | px_void PX_Ui_MatrixEffectFree(PX_Ui_MatrixEffect *effect); 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /PainterEngine/supports/demo/PainterEngine_2dxMakeTool.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/PainterEngine_2dxMakeTool.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/PainterEngine_PngToTRaw.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/PainterEngine_PngToTRaw.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/clock.2dx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/clock.2dx -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/2dx-shell.ps1: -------------------------------------------------------------------------------- 1 | mkdir ./release 2 | $image_width=192 3 | $image_height=192 4 | $index=0 5 | for($index=1;$index -le 6;$index++) 6 | { 7 | .\PainterEngine_PngToTRaw.exe ".\run $index.png" ".\release\run $index.traw" $image_width $image_height 8 | } 9 | .\PainterEngine_2dxMakeTool.exe .\makefile.txt .\release\release.2dx 10 | 11 | del .\release\*.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/FileToC.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/FileToC.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/PainterEngine_2dxMakeTool.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/PainterEngine_2dxMakeTool.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/PainterEngine_PngToTRaw.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/PainterEngine_PngToTRaw.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/fox console logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/fox console logo.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/fox console logo.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/fox console logo.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/fox.psb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/fox.psb -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/jump 0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/jump 0.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/jump down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/jump down.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/jump up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/jump up.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/makefile.txt: -------------------------------------------------------------------------------- 1 | texture "release/run 1.traw" run_1 2 | texture "release/run 2.traw" run_2 3 | texture "release/run 3.traw" run_3 4 | texture "release/run 4.traw" run_4 5 | texture "release/run 5.traw" run_5 6 | texture "release/run 6.traw" run_6 7 | 8 | animation run 9 | loop -1 10 | tag run_begin 11 | frame run_1 12 | sleep 60 13 | frame run_2 14 | sleep 60 15 | frame run_3 16 | sleep 60 17 | frame run_4 18 | sleep 60 19 | frame run_5 20 | sleep 60 21 | frame run_6 22 | sleep 60 23 | goto run_begin 24 | end -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/run 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/run 1.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/run 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/run 2.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/run 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/run 3.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/run 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/run 4.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/run 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/run 5.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/run 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/run 6.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 1.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 2.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 3.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 4.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 5.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 6.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 7.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 8.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/stand 8.sai2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/stand 8.sai2 -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/walk 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/walk 1.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/walk 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/walk 2.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/walk 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/walk 3.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/walk 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/walk 4.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/walk 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/walk 5.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation run/walk 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation run/walk 6.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/2dx-shell.ps1: -------------------------------------------------------------------------------- 1 | mkdir ./release 2 | $image_width=192 3 | $image_height=192 4 | .\PainterEngine_PngToTRaw.exe ".\jump 0.png" ".\release\jump 0.traw" $image_width $image_height 5 | .\PainterEngine_PngToTRaw.exe ".\jump up.png" ".\release\jump up.traw" $image_width $image_height 6 | .\PainterEngine_PngToTRaw.exe ".\jump down.png" ".\release\jump down.traw" $image_width $image_height 7 | $index=0 8 | for($index=1;$index -le 6;$index++) 9 | { 10 | .\PainterEngine_PngToTRaw.exe ".\run $index.png" ".\release\run $index.traw" $image_width $image_height 11 | } 12 | $index=0 13 | for($index=1;$index -le 8;$index++) 14 | { 15 | .\PainterEngine_PngToTRaw.exe ".\stand $index.png" ".\release\stand $index.traw" $image_width $image_height 16 | } 17 | $index=0 18 | for($index=1;$index -le 6;$index++) 19 | { 20 | .\PainterEngine_PngToTRaw.exe ".\walk $index.png" ".\release\walk $index.traw" $image_width $image_height 21 | } 22 | 23 | .\PainterEngine_2dxMakeTool.exe .\makefile.txt .\release\release.2dx 24 | 25 | del .\release\*.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/FileToC.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/FileToC.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/PainterEngine_2dxMakeTool.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/PainterEngine_2dxMakeTool.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/PainterEngine_PngToTRaw.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/PainterEngine_PngToTRaw.exe -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/fox console logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/fox console logo.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/fox console logo.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/fox console logo.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/fox.psb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/fox.psb -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/jump 0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/jump 0.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/jump down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/jump down.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/jump up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/jump up.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/makefile.txt: -------------------------------------------------------------------------------- 1 | texture "release/jump 0.traw" jump_0 2 | texture "release/jump up.traw" jump_up 3 | texture "release/jump down.traw" jump_down 4 | texture "release/run 1.traw" run_1 5 | texture "release/run 2.traw" run_2 6 | texture "release/run 3.traw" run_3 7 | texture "release/run 4.traw" run_4 8 | texture "release/run 5.traw" run_5 9 | texture "release/run 6.traw" run_6 10 | texture "release/stand 1.traw" stand_1 11 | texture "release/stand 2.traw" stand_2 12 | texture "release/stand 3.traw" stand_3 13 | texture "release/stand 4.traw" stand_4 14 | texture "release/stand 5.traw" stand_5 15 | texture "release/stand 6.traw" stand_6 16 | texture "release/stand 7.traw" stand_7 17 | texture "release/stand 8.traw" stand_8 18 | texture "release/walk 1.traw" walk_1 19 | texture "release/walk 2.traw" walk_2 20 | texture "release/walk 3.traw" walk_3 21 | texture "release/walk 4.traw" walk_4 22 | texture "release/walk 5.traw" walk_5 23 | texture "release/walk 6.traw" walk_6 24 | 25 | animation jump_begin 26 | frame jump_0 27 | sleep 50 28 | frame jump_up 29 | end 30 | 31 | animation jump_down 32 | frame jump_down 33 | end 34 | 35 | animation run 36 | loop -1 37 | tag run_begin 38 | frame run_1 39 | sleep 60 40 | frame run_2 41 | sleep 60 42 | frame run_3 43 | sleep 60 44 | frame run_4 45 | sleep 60 46 | frame run_5 47 | sleep 60 48 | frame run_6 49 | sleep 60 50 | goto run_begin 51 | end 52 | 53 | animation stand 54 | loop -1 55 | tag stand_begin 56 | frame stand_1 57 | sleep 200 58 | frame stand_2 59 | sleep 200 60 | frame stand_3 61 | sleep 200 62 | frame stand_4 63 | sleep 200 64 | frame stand_5 65 | sleep 200 66 | frame stand_6 67 | sleep 200 68 | frame stand_7 69 | sleep 200 70 | frame stand_8 71 | sleep 200 72 | goto stand_begin 73 | end 74 | 75 | animation walk 76 | loop -1 77 | tag walk_begin 78 | frame walk_1 79 | sleep 100 80 | frame walk_2 81 | sleep 100 82 | frame walk_3 83 | sleep 100 84 | frame walk_4 85 | sleep 100 86 | frame walk_5 87 | sleep 100 88 | frame walk_6 89 | sleep 100 90 | goto walk_begin 91 | end -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/release/fox.2dx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/release/fox.2dx -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/release/loginfox.2dx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/release/loginfox.2dx -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/release/release.2dx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/release/release.2dx -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/run 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/run 1.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/run 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/run 2.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/run 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/run 3.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/run 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/run 4.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/run 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/run 5.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/run 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/run 6.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 1.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 2.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 3.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 4.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 5.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 6.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 7.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 8.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/stand 8.sai2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/stand 8.sai2 -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/walk 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/walk 1.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/walk 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/walk 2.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/walk 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/walk 3.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/walk 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/walk 4.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/walk 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/walk 5.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/fox animation/walk 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/fox animation/walk 6.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/1.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/1.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/1.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/10.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/10.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/10.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/11.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/11.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/11.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/12.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/12.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/12.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/2.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/2.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/2.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/2dxs.txt: -------------------------------------------------------------------------------- 1 | texture "1.traw" f1 2 | texture "2.traw" f2 3 | texture "3.traw" f3 4 | texture "4.traw" f4 5 | texture "5.traw" f5 6 | texture "6.traw" f6 7 | texture "7.traw" f7 8 | texture "8.traw" f8 9 | texture "9.traw" f9 10 | texture "10.traw" f10 11 | texture "11.traw" f11 12 | texture "12.traw" f12 13 | 14 | animation clock 15 | loop -1 16 | tag begin 17 | frame f1 18 | sleep 100 19 | frame f2 20 | sleep 90 21 | frame f3 22 | sleep 80 23 | frame f4 24 | sleep 70 25 | frame f5 26 | sleep 60 27 | frame f6 28 | sleep 50 29 | frame f7 30 | sleep 40 31 | frame f8 32 | sleep 30 33 | frame f9 34 | sleep 20 35 | frame f10 36 | sleep 20 37 | frame f11 38 | sleep 20 39 | frame f12 40 | sleep 20 41 | goto begin 42 | end -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/3.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/3.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/3.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/4.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/4.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/4.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/5.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/5.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/5.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/6.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/6.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/6.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/7.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/7.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/7.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/8.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/8.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/8.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/9.png -------------------------------------------------------------------------------- /PainterEngine/supports/demo/loading/9.traw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/loading/9.traw -------------------------------------------------------------------------------- /PainterEngine/supports/demo/partical.txt: -------------------------------------------------------------------------------- 1 | #name "main" 2 | host float partical_rand(); 3 | 4 | set vector 5 | { 6 | float x,y,z; 7 | } 8 | 9 | set hdr_color 10 | { 11 | int g,b,r,a; 12 | } 13 | 14 | set Partical_Init_Info 15 | { 16 | int generateDuration; 17 | int maxCount; 18 | vector force; 19 | float resistanceK; 20 | int launchCount; 21 | } 22 | 23 | set PARTICAL_ATOM_INFO 24 | { 25 | float size; 26 | float rotation; 27 | float mass; 28 | float alpha; 29 | int aliveTime; 30 | int elpasedTime; 31 | vector position; 32 | vector velocity; 33 | float hdrR; 34 | float hdrG; 35 | float hdrB; 36 | float rotationSpeed; 37 | float sizeIncrement; 38 | float alphaIncrement; 39 | } 40 | 41 | Partical_Init_Info g_particalInitInfo; 42 | PARTICAL_ATOM_INFO atomInfo; 43 | 44 | export Partical_Init_Info *Partical_Init() 45 | { 46 | g_particalInitInfo.generateDuration=25; 47 | g_particalInitInfo.maxCount=128; 48 | g_particalInitInfo.force.x=0; 49 | g_particalInitInfo.force.y=0; 50 | g_particalInitInfo.force.z=0; 51 | g_particalInitInfo.resistanceK=0; 52 | g_particalInitInfo.launchCount=-1; 53 | return &g_particalInitInfo; 54 | } 55 | 56 | export PARTICAL_ATOM_INFO *Partical_Atom_Create(int index) 57 | { 58 | atomInfo.size=0.5+partical_rand()/2; 59 | atomInfo.rotation=partical_rand()*360; 60 | atomInfo.mass=1.0; 61 | atomInfo.alpha=1; 62 | atomInfo.aliveTime=3000; 63 | atomInfo.elpasedTime=0; 64 | atomInfo.position.x=0; 65 | atomInfo.position.y=0; 66 | atomInfo.position.z=0; 67 | 68 | atomInfo.velocity.x=300*partical_rand()-150; 69 | atomInfo.velocity.y=300*partical_rand()-150; 70 | atomInfo.velocity.z=0; 71 | 72 | atomInfo.hdrR=0.75+partical_rand()/4; 73 | atomInfo.hdrG=0.75+partical_rand()/4; 74 | atomInfo.hdrB=0.75+partical_rand()/4; 75 | 76 | atomInfo.rotationSpeed=360*partical_rand(); 77 | atomInfo.alphaIncrement=-0.45; 78 | atomInfo.sizeIncrement=-0.35; 79 | 80 | return &atomInfo; 81 | } 82 | 83 | 84 | export void Partical_Atom_Update(PARTICAL_ATOM_INFO *atomInfo) 85 | { 86 | 87 | } 88 | -------------------------------------------------------------------------------- /PainterEngine/supports/demo/source/2dx.txt: -------------------------------------------------------------------------------- 1 | if (!PX_LoadTextureFromFile(&G_mempool,&texture,"../../PainterEngine/demo/star.traw")) 2 | { 3 | return 0; 4 | } 5 | 6 | 7 | PX_Load2DxFromFile(&G_mempool,&animationLib,"../../PainterEngine/demo/clock.2dx"); 8 | PX_AnimationCreate(&animation,&animationLib); 9 | 10 | PX_MemoryInit(&G_mempool,&binmemory); 11 | if (!PX_CompileScriptChain(scriptChain,1,"main",&binmemory)) 12 | { 13 | return 0; 14 | } 15 | PX_ScriptVM_InstanceInit(&sIns,&G_mempool,binmemory.buffer,binmemory.usedsize); 16 | if (!PX_ParticalLauncherCreate(&launcher,&G_mempool,&texture,&sIns)) 17 | { 18 | return 0; 19 | } -------------------------------------------------------------------------------- /PainterEngine/supports/demo/source/3d pixelshader.txt: -------------------------------------------------------------------------------- 1 | 2 | #include "./PainterEngine/PainterEngineHelper.h" 3 | 4 | px_void PixelShader(px_surface *psurface,px_int x,px_int y,px_float u,px_float v,px_point4D normal,px_texture *pTexture,px_color color) 5 | { 6 | px_float alpha; 7 | px_float cosv=PX_Point4DDot(PX_Point4DUnit(normal),PX_POINT4D(0,0,1)); 8 | 9 | cosv=-cosv; 10 | if (cosv>0) 11 | { 12 | alpha=(1-cosv)*128; 13 | PX_SurfaceDrawPixel(psurface,x,y,PX_COLOR(255,128+alpha,128+alpha,128+alpha)); 14 | } 15 | } 16 | 17 | // 18 | 19 | // 20 | int main() 21 | { 22 | PX_3D_RenderList renderlist; 23 | PX_3D_Camera camera; 24 | PX_3D_World world; 25 | PX_3D_ObjectData Obj; 26 | PX_IO_Data io; 27 | px_float angle=0; 28 | PX_Initialize("PainterEngine",600,600); 29 | PX_3D_ObjectDataInitialize(PX_GetMP(),&Obj); 30 | io=PX_LoadFileToIOData("bunny.obj"); 31 | PX_3D_ObjectDataLoad(&Obj,io.buffer,io.size); 32 | 33 | PX_3D_RenderListInitialize(PX_GetMP(),&renderlist,PX_3D_PRESENTMODE_TEXTURE|PX_3D_PRESENTMODE_PURE,PX_3D_CULLMODE_CCW,PX_NULL); 34 | PX_3D_RenderListSetPixelShader(&renderlist,PixelShader); 35 | PX_3D_ObjectDataToRenderList(&Obj,&renderlist); 36 | PX_3D_CameraUVNInitialize(PX_GetMP(),&camera,PX_POINT4D(0,0,0),PX_POINT4D(0,0,1),1,999,90,600,600); 37 | 38 | while(PX_Loop()) 39 | { 40 | PX_SurfaceClear(PX_GetSurface(),0,0,PX_GetSurface()->width-1,PX_GetSurface()->height-1,PX_COLOR(255,255,255,255)); 41 | PX_3D_WorldInitialize(&world,0,0,1.3f,0,angle++,0,1); 42 | PX_3D_Scene(&renderlist,&world,&camera); 43 | PX_3D_Present(PX_GetSurface(),&renderlist,&camera); 44 | } 45 | return 0; 46 | } -------------------------------------------------------------------------------- /PainterEngine/supports/demo/source/Bitmap.txt: -------------------------------------------------------------------------------- 1 | PX_BitmapRender(&surface,resBuffer,filesize,0,0); 2 | PX_TextureCreateRotationAngle(&mempool,&pxtex2,angle,&pxtex4); 3 | PX_TextureRender(&surface,&pxtex4,0,0); 4 | PX_TextureFree(&pxtex4); 5 | PX_TextureRender(&surface,&pxtex,100,100); 6 | PX_BitmapRender(&surface,resBuffer2,filesize2,300,0); 7 | PX_GeoDrawSolidCircle(&surface,200,200,100,PX_COLOR(128,255,0,0)); 8 | PX_GeoDrawSolidCircle(&surface,300,200,100,PX_COLOR(128,0,255,0)); 9 | PX_GeoDrawLine(&surface,200,200,200+100*PX_sin_angle(angle),200+100*PX_cos_angle(angle),10,PX_COLOR(128,0,0,0)); 10 | PX_GeoDrawCircle(&surface,200,200,100,10,PX_COLOR(128,0,0,0)); -------------------------------------------------------------------------------- /PainterEngine/supports/demo/source/GUI.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matrixcascade/PainterEngine-Game/1cfa958451462666bfa3e68f8026f39094e3defc/PainterEngine/supports/demo/source/GUI.txt -------------------------------------------------------------------------------- /PainterEngine/supports/demo/source/Partical.txt: -------------------------------------------------------------------------------- 1 | px_texture texture; 2 | px_memory binmemory; 3 | px_char scriptChain[][260]={"../../PainterEngine/demo/partical.txt"}; 4 | PX_Partical_Launcher launcher; 5 | PX_ScriptVM_Instance sIns; 6 | DWORD time,elpased; 7 | px_int size; 8 | px_animationlibrary animationLib; 9 | px_animation animation; 10 | 11 | time=timeGetTime(); 12 | char FPS_Text[128]="calculating..."; 13 | DWORD _10sec=timeGetTime(),fps=0; 14 | 15 | elpased=timeGetTime()-time; 16 | time=timeGetTime(); 17 | fps++; 18 | if (time-_10sec>2000) 19 | { 20 | sprintf(FPS_Text,"FPS:%d",fps/2); 21 | fps=0; 22 | _10sec=time; 23 | } 24 | PX_AnimationUpdate(&animation,elpased); 25 | PX_ParticalUpdate(&launcher,elpased); 26 | PX_ParticalRender(&launcher,&PX_surface,PX_POINT(300,240,0)); 27 | PX_AnimationRender(&animation,&PX_surface,PX_POINT(300,240,0),PX_TEXTURERENDER_REFPOINT_CENTER,PX_NULL); 28 | PX_FontDrawText(&PX_surface,0,32,FPS_Text,PX_COLOR(255,255,0,255)); -------------------------------------------------------------------------------- /PainterEngine/supports/demo/source/Script.txt: -------------------------------------------------------------------------------- 1 | px_memory pm; 2 | 3 | PX_MemoryInit(&mempool,&pm); 4 | mempool.nodeCount; 5 | if(!PX_ScriptAsmCompile(&mempool,resBuffer,&pm)) 6 | return 0; 7 | 8 | PX_Script_Instance instance; 9 | scriptpool=MP_Create(MP_Malloc(&mempool,64*1024),64*1024); 10 | px_int memfreesize=scriptpool.FreeSize; 11 | if(!PX_ScriptVM_InstanceInit(&instance,&scriptpool,pm.buffer,pm.usedsize)) 12 | return 0; 13 | 14 | PX_ScriptVM_RegistHostFunction(&instance,"PRINT",PX_Print); 15 | 16 | instance.runInstrTick=0xffffffff; 17 | PX_ScriptVM_InstanceRunFunction(&instance,"_MAIN"); 18 | 19 | PX_ScriptVM_InstanceFree(&instance); 20 | if (scriptpool.FreeSize!=memfreesize) 21 | { 22 | printf("Script Memory overflow!\n"); 23 | } 24 | 25 | PX_MemoryFree(&pm); 26 | 27 | 28 | 29 | 30 | px_char PX_Compile_Cache[1024*1024*26]; 31 | 32 | px_bool PX_CompileScriptChain(px_char path[][260],px_int count,px_char *name,px_memory *bin) 33 | { 34 | PX_SCRIPT_LIBRARY lib; 35 | px_memorypool CompileMp; 36 | px_int i,fsize; 37 | px_byte *buffer; 38 | px_string asmcodeString; 39 | 40 | CompileMp=MP_Create(PX_Compile_Cache,1024*1024*16); 41 | 42 | if(!PX_ScriptCompilerInit(&lib,&CompileMp)) 43 | { 44 | return PX_FALSE; 45 | } 46 | 47 | for (i=0;i