Commit graph

23 commits

Author SHA1 Message Date
Kazhnuz
4c2427bfd6 feat(world): add a drawHUD function to draw the current HUD
It is able to draw everything a player object want directly where it 
should go.

Fixes #3
2019-06-13 22:23:23 +02:00
Kazhnuz
6f59f1e732 refactor(examples): use updateStart(dt) and updateEnd(dt)
Allow to drop easily some instance of calling the parent's same function
2019-06-13 18:44:13 +02:00
Kazhnuz
df4d264c21 gamecore/scenemanager: let the scene manager handle directly the world 2019-05-28 19:31:42 +02:00
Kazhnuz
23f17491ad gamecore/world: make the world registerable directly by itself 2019-05-28 19:28:05 +02:00
Kazhnuz
bbf8d02254 examples/moveplayer: add 4 players 2019-05-02 18:47:01 +02:00
Kazhnuz
c1cefa9f92 examples/moveplayer: use the new map 2019-05-01 17:22:04 +02:00
Kazhnuz
767fddadfa examples/moveplayer: use a different map for the moveplayer example 2019-05-01 17:21:12 +02:00
Kazhnuz
40daa66eeb examples/moveplayer: add walls 2019-05-01 17:20:31 +02:00
Kazhnuz
18d75f825c modules/world: separate map loading from level initialization 2019-05-01 14:36:40 +02:00
Kazhnuz
6dbbdc46dd example/moveplayer: remove playerid variable 2019-04-29 21:21:07 +02:00
Kazhnuz
dacff225a2 examples: add cameras 2019-04-29 15:27:40 +02:00
Kazhnuz
7f8234b7f7 examples/gameplay: apply friction 2019-04-28 09:31:37 +02:00
Kazhnuz
ea5011642c modules/world: add a basic solidity system
It'll make easier the solidity system and will reserve custom filter to 
specific objects.
2019-04-25 17:54:51 +02:00
Kazhnuz
90458757e5 modules/world: make hitbox drawing part of actor 2019-04-22 12:13:01 +02:00
Kazhnuz
a25e178628 modules/world: make speed relative to dt 2019-04-22 12:02:52 +02:00
Kazhnuz
c4ef90dcdf example/moveplayer: switch to bump2D world 2019-04-22 11:57:56 +02:00
Kazhnuz
193e9b6fbf modules/world: add speed variables 2019-04-13 09:40:14 +02:00
Kazhnuz
f61cb21d58 examples/moveplayer: test 2 players 2019-04-11 19:18:51 +02:00
Kazhnuz
a4aaa28c24 examples/moveplayer: use isDown instead of isPressed on player item 2019-04-07 22:53:59 +02:00
Kazhnuz
18161313fe examples/moveplayer: set the player object as player 2019-04-07 22:52:28 +02:00
Kazhnuz
66d98ab9ea examples/moveplayer: use the right function to draw box 2019-04-07 22:29:27 +02:00
Kazhnuz
5ec137416e examples/moveplayer: default dx and dy to 0 for the player 2019-04-07 18:15:06 +02:00
Kazhnuz
54d56675a9 modules/world: prepare structure for movable player example 2019-04-07 17:00:47 +02:00