Commit graph

54 commits

Author SHA1 Message Date
Kazhnuz
e916c28630 fix(actor2D): simplify gravity system by not handling x by default 2019-06-27 21:03:34 +02:00
Kazhnuz
cace01cf3a feat(world): add a way to check every hitbox collisions 2019-06-23 15:53:51 +02:00
Kazhnuz
89b2ffe483 feat(world): add a way to automatically load hitbox from a file 2019-06-23 15:45:34 +02:00
Kazhnuz
41cbf40890 fix(examples): call the right function in movable player example 2019-06-23 15:41:30 +02:00
Kazhnuz
a3b6bcd499 feat(world): add a frame hitbox data structure to process
It'll allow us to create a way to process everyframe of an animation and 
change hitbox according to the animation.

It should especially simplify the creation of battle system.
2019-06-23 10:19:01 +02:00
Kazhnuz
f88c7f49e4 feat(world): add multiple hitbox support on actor2D 2019-06-22 22:11:22 +02:00
Kazhnuz
c553dfafa3 feat(examples): add ducking in plateforming example
Show how we can now modify in action an hitbox without glitching it
2019-06-22 20:17:36 +02:00
Kazhnuz
b770253cb5 fix(examples): adapt to the new hitbox system 2019-06-22 19:28:28 +02:00
Kazhnuz
80072d285a fix(examples): add missing HUD in one-player example 2019-06-21 17:11:32 +02:00
Kazhnuz
81015b011b feat(examples): add a pause menu in plateformer example 2019-06-16 16:37:22 +02:00
Kazhnuz
65b0c74a06 feat(world): add a batchActor function activated by a bool in tiled
This way, you can add multiple actors with just one tiled object. It 
also bring better feature parity with Imperium Porcorum.

Fixes #10
2019-06-15 11:50:53 +02:00
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
236184ce0c example/plateformer: also pause asset animation 2019-05-30 13:56:14 +02:00
Kazhnuz
67cb930ae7 example/plateformer: add a basic pause button 2019-05-30 13:49:46 +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
5e95099af9 examples/plateform: make coin drop sparkle gfx when taken 2019-05-06 20:45:13 +02:00
Kazhnuz
3de36cc77f examples/plateform: add sparkle asset 2019-05-06 20:44:53 +02:00
Kazhnuz
a1ce249e00 module/world: take coin when the player collide to it 2019-05-05 19:46:13 +02:00
Kazhnuz
e4b39a318e example/plateform: add coin object 2019-05-05 15:35:49 +02:00
Kazhnuz
b41680fc8d example/plateform: add coin assets 2019-05-05 15:35:34 +02:00
Kazhnuz
f71c3b3548 example/plateform: animate the player 2019-05-05 15:23:04 +02:00
Kazhnuz
782ff6a329 example/plateform: improve animation sprites 2019-05-05 15:22:21 +02:00
Kazhnuz
8445dd2e84 examples/plateformer : make the character clone its sprite 2019-05-05 13:18:06 +02:00
Kazhnuz
977a735608 examples/plateformer: make the player able to jump 2019-05-02 20:10:41 +02:00
Kazhnuz
f04d0c6b4e modules/world: initial gravity system 2019-05-02 19:51:43 +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
257eec8290 modules/assets: add a way to determine ox and oy in tileset metadata 2019-05-01 11:24:41 +02:00
Kazhnuz
b754501102 examples/plateform: add basic sprite functions 2019-05-01 11:17:01 +02:00
Kazhnuz
1c167ba566 example/plateform: add asset loading 2019-04-29 21:23:51 +02:00
Kazhnuz
6dbbdc46dd example/moveplayer: remove playerid variable 2019-04-29 21:21:07 +02:00
Kazhnuz
1922a975e9 examples/gameplay: remove useless cameras 2019-04-29 16:40:56 +02:00
Kazhnuz
66041ff511 examples/gameplay: fix an oops in the wall actor 2019-04-29 16:37:01 +02:00
Kazhnuz
a52abd0b97 examples/plateformer: add basic actors 2019-04-29 16:13:09 +02:00
Kazhnuz
dacff225a2 examples: add cameras 2019-04-29 15:27:40 +02:00
Kazhnuz
977f427893 examples/plateformer: add assets for the player 2019-04-28 17:08:08 +02:00
Kazhnuz
d3a4809295 examples/plateformer: start as a basic sti loading example 2019-04-28 17:07:39 +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