diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 12:15:07 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 12:15:07 -0500 |
commit | ef17fecfb22ccacbf098f6869ffaf644a1a627d6 (patch) | |
tree | 96e8379a0c351b32812dd23158413a207dbf3d42 /src/main.cpp | |
parent | 478bc11eec70e6127161ff360cd77d6893a81c42 (diff) | |
download | tanetane-ef17fecfb22ccacbf098f6869ffaf644a1a627d6.tar.gz tanetane-ef17fecfb22ccacbf098f6869ffaf644a1a627d6.tar.bz2 tanetane-ef17fecfb22ccacbf098f6869ffaf644a1a627d6.zip |
Added collidable object cache
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); |