diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
| diff --git a/src/main.cpp b/src/main.cpp index 4c560c7..4366a4d 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
| @@ -27,6 +27,7 @@ void loop(Renderer& renderer) { | |||
| 27 | 27 | ||
| 28 | int lucasSprite = game.emplaceSprite(); | 28 | int lucasSprite = game.emplaceSprite(); |
| 29 | game.getSystem<TransformSystem>().initSprite(lucasSprite, {32, 32}); | 29 | game.getSystem<TransformSystem>().initSprite(lucasSprite, {32, 32}); |
| 30 | game.getSystem<TransformSystem>().setUpCollision(lucasSprite, {-8, -8}, {12, 8}); | ||
| 30 | game.getSystem<AnimationSystem>().initSprite(lucasSprite, "../res/sprites/lucas_anim.txt", renderer); | 31 | game.getSystem<AnimationSystem>().initSprite(lucasSprite, "../res/sprites/lucas_anim.txt", renderer); |
| 31 | game.getSprite(lucasSprite).controllable = true; | 32 | game.getSprite(lucasSprite).controllable = true; |
| 32 | game.getSystem<CharacterSystem>().initSprite(lucasSprite); | 33 | game.getSystem<CharacterSystem>().initSprite(lucasSprite); |
