diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 12:37:25 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 12:37:25 -0500 |
commit | 4526d347961f7a5df110ef94bd38b80008e3110d (patch) | |
tree | 5ee4caf8c8cd53ea8c55070dacf6189e19ed5170 /src | |
parent | ef17fecfb22ccacbf098f6869ffaf644a1a627d6 (diff) | |
download | tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.tar.gz tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.tar.bz2 tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.zip |
Added Flint
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
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 | ||