diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 13:03:01 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 13:03:01 -0500 |
| commit | 1abc8894c2378596542e5772cd7594492eeecb27 (patch) | |
| tree | c905dc3c96ff7b1d64aaf3212214f0731305bf82 /src/main.cpp | |
| parent | 4526d347961f7a5df110ef94bd38b80008e3110d (diff) | |
| download | tanetane-1abc8894c2378596542e5772cd7594492eeecb27.tar.gz tanetane-1abc8894c2378596542e5772cd7594492eeecb27.tar.bz2 tanetane-1abc8894c2378596542e5772cd7594492eeecb27.zip | |
Added collision with other sprites
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 4d8f52d..8363995 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
| @@ -49,6 +49,7 @@ void loop(Renderer& renderer) { | |||
| 49 | 49 | ||
| 50 | int flintSprite = game.emplaceSprite(); | 50 | int flintSprite = game.emplaceSprite(); |
| 51 | game.getSystem<TransformSystem>().initSprite(flintSprite, {35*16, 19*16}); | 51 | game.getSystem<TransformSystem>().initSprite(flintSprite, {35*16, 19*16}); |
| 52 | game.getSystem<TransformSystem>().setUpCollision(flintSprite, {-8, -8}, {12, 8}); | ||
| 52 | game.getSystem<AnimationSystem>().initSprite(flintSprite, "../res/sprites/flint_anim.txt", renderer); | 53 | game.getSystem<AnimationSystem>().initSprite(flintSprite, "../res/sprites/flint_anim.txt", renderer); |
| 53 | 54 | ||
| 54 | game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite); | 55 | game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite); |
