summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-06 12:37:25 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-06 12:37:25 -0500
commit4526d347961f7a5df110ef94bd38b80008e3110d (patch)
tree5ee4caf8c8cd53ea8c55070dacf6189e19ed5170 /src/main.cpp
parentef17fecfb22ccacbf098f6869ffaf644a1a627d6 (diff)
downloadtanetane-4526d347961f7a5df110ef94bd38b80008e3110d.tar.gz
tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.tar.bz2
tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.zip
Added Flint
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4366a4d..4d8f52d 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -47,6 +47,10 @@ void loop(Renderer& renderer) {
47 game.getSystem<AnimationSystem>().initSprite(boneySprite, "../res/sprites/boney_anim.txt", renderer); 47 game.getSystem<AnimationSystem>().initSprite(boneySprite, "../res/sprites/boney_anim.txt", renderer);
48 game.getSystem<CharacterSystem>().addSpriteToParty(lucasSprite, boneySprite); 48 game.getSystem<CharacterSystem>().addSpriteToParty(lucasSprite, boneySprite);
49 49
50 int flintSprite = game.emplaceSprite();
51 game.getSystem<TransformSystem>().initSprite(flintSprite, {35*16, 19*16});
52 game.getSystem<AnimationSystem>().initSprite(flintSprite, "../res/sprites/flint_anim.txt", renderer);
53
50 game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite); 54 game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite);
51 game.getSystem<CameraSystem>().unlockCamera(); 55 game.getSystem<CameraSystem>().unlockCamera();
52 56