Commit Graph

202 Commits

Author SHA1 Message Date
Kazhnuz 1768ccd30a Merge branch 'gamecore-0.5.0' of game-projects/imperium-porcorum into master 2019-07-22 15:15:56 +02:00
Kazhnuz c7d530cf35 fix(mainmenu): draw the options menus over the main menu. 2019-06-17 16:39:11 +02:00
Kazhnuz af7cc04da9 chore: remove most unused stuff from older versions 2019-06-17 16:29:57 +02:00
Kazhnuz b3882b388f fix(core/world): fast fix for a glitch with one-player camera
We will have to fix that properly in gamecore later
2019-06-17 16:25:03 +02:00
Kazhnuz d7210db5e5 refactor(levels): use the player/camera system of the base world. 2019-06-17 16:17:21 +02:00
Kazhnuz 201cc80d0a refactor(levels): remove more replacable functions in World 2019-06-17 13:26:36 +02:00
Kazhnuz 1c29ae0dfa refactor(levels): let the player manage itself how it respawn 2019-06-17 13:01:04 +02:00
Kazhnuz 76a1099e2d refactor(levels): use gamecore updateActors(dt) function in World 2019-06-17 12:56:10 +02:00
Kazhnuz b9c041fbeb refactor(levels): add a "isAlive" variable to manage player state 2019-06-17 12:40:14 +02:00
Kazhnuz e16d36f301 refactor(levels): use right variable names for the addScore/addGold 2019-06-17 12:39:52 +02:00
Kazhnuz 4f0f6a2ea8 refactor(levels): let the player manage itself its score and gold 2019-06-17 12:26:35 +02:00
Kazhnuz fd986f6b30 refactor(levels): let the player manage itself its HUD 2019-06-17 12:16:32 +02:00
Kazhnuz 5445d619aa fix(levels): use the right path to load the map 2019-06-17 12:14:36 +02:00
Kazhnuz 8a9dc05c61 refactor(levels): use a gamecore timer to handle debris diseappearing 2019-06-17 12:02:57 +02:00
Kazhnuz 39a998d773 refactor(levels): use the gamecore world loading functions 2019-06-17 11:58:52 +02:00
Kazhnuz 557de3b503 refactor(levels): register the world and manage it automatically 2019-06-17 11:40:26 +02:00
Kazhnuz 0474c8161a refactor(levels): use gamecore world physics 2019-06-17 11:29:40 +02:00
Kazhnuz c21753d988 refactor(levels): use the friction system from gamecore 2019-06-17 11:02:49 +02:00
Kazhnuz 0da137a3e4 improvement(levels): use a "cross" collision filter for weapons 2019-06-16 21:35:29 +02:00
Kazhnuz 5241cb8d6e improvement(levels): use Actor2D integrated sprite system 2019-06-16 20:16:48 +02:00
Kazhnuz cd7e381672 refactor(levels): use Actor2D initialization functions 2019-06-16 19:55:38 +02:00
Kazhnuz 4ee17f01b6 refactor(levels): remove all functions already provided by Actor2D 2019-06-16 18:45:18 +02:00
Kazhnuz 666aa13565 chore(levels): rename Actor.collType to Actor.type 2019-06-16 18:32:31 +02:00
Kazhnuz 652771de5a refactor(levels): use World2D map loading functions. 2019-06-16 18:30:26 +02:00
Kazhnuz 91ce8ba9c0 refactor(levels): use the gfx2D actor directly instead of old gfx entity 2019-06-16 18:24:49 +02:00
Kazhnuz 0b9d34abe2 fix(levels): init a gravity system 2019-06-16 18:20:32 +02:00
Kazhnuz 8b168a699b chore(levels): use the world as a constructore instead of the scene 2019-06-16 18:19:15 +02:00
Kazhnuz 017ae1a49c chore(levels): rename Actor.level to Actor.scene 2019-06-16 18:10:39 +02:00
Kazhnuz 042a2397a1 refactor(levels): port world to gamecore World2D 2019-06-16 18:07:10 +02:00
Kazhnuz 65a7ffd437 refactor(levels): load assets from an asset file 2019-06-16 18:01:03 +02:00
Kazhnuz 7557a1da19 refactor(main): remove every function already provided by gamecore 2019-06-16 17:56:55 +02:00
Kazhnuz ce14314ebd fix(levels): use the asset function to draw its texture.
Fixes a crash, as now texture aren't a drawable type anymore, but an 
asset object
2019-06-16 17:52:24 +02:00
Kazhnuz 0566eb4041 fix(levels): use the new reference for key handling 2019-06-16 17:49:45 +02:00
Kazhnuz 7d3de10a97 fix(worldmap): use the new reference for key handling
Since gamecore 0.5.0, keys are available in Scene.sources[sourceid].keys 
instead of Scene.keys.
2019-06-16 17:46:57 +02:00
Kazhnuz 0b8fafb556 meta: add a changelog 2019-06-16 17:44:24 +02:00
Kazhnuz 14ff853498 improvement(gamecore): update gamecore to 0.5.0 2019-06-16 17:38:35 +02:00
Kazhnuz 4d772de731 scene/worldmap: make worldmap able to load levels 2019-03-10 10:23:05 +01:00
Kazhnuz 5b87331143 datas: use the new level system 2019-03-10 10:20:40 +01:00
Kazhnuz 2858de16b0 scenes/worldmap: improve level name visibility 2019-03-10 10:03:22 +01:00
Kazhnuz e370f1a04f scenes/mainmenu: add icons to basic menu 2019-03-10 10:01:35 +01:00
Kazhnuz 4960c8238d scenes/mainmenu: improve color diversity 2019-03-09 22:16:44 +01:00
Kazhnuz 5e251fceed scenes/mainmenu: center option menu 2019-03-09 22:08:54 +01:00
Kazhnuz f49773823f scenes/mainmenu: dim the main menu when inactive 2019-03-09 22:07:26 +01:00
Kazhnuz 1b514f8346 scenes/mainmenu: better differenciation between "EXIT"s 2019-03-09 22:01:37 +01:00
Kazhnuz e5a06c347b scenes/mainmenu: initial version of a simple "main menu" 2019-03-09 21:56:03 +01:00
Kazhnuz 919c387345 scenes/mainmenu: draw list menus inside a textbox 2019-03-09 18:06:53 +01:00
Kazhnuz 1ba8d6d251 scenes/mainmenu: refactor the listmenu file 2019-03-09 17:58:07 +01:00
Kazhnuz f3d6da0271 scenes/maps: improve level name drawing 2019-03-09 17:33:01 +01:00
Kazhnuz 56f75da37e assets: add PixelOperator Font 2019-03-09 17:19:22 +01:00
Kazhnuz 66ea0745fb scenes/map: draw level name on focus 2019-03-08 21:32:10 +01:00