summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-20 13:34:04 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-20 13:34:04 -0500
commitf0eab98e417bf648261a9027bef91fe935af76cb (patch)
tree7c212cbe8bd549d5a6229c616806095596859a8f /src/main.cpp
parentca4935cb65325edbd45d4a3aacc921ea9ed9483b (diff)
downloadtanetane-f0eab98e417bf648261a9027bef91fe935af76cb.tar.gz
tanetane-f0eab98e417bf648261a9027bef91fe935af76cb.tar.bz2
tanetane-f0eab98e417bf648261a9027bef91fe935af76cb.zip
Added variable movement speed
Ionia now moves at half Lucas's speed, which I think is good for NPCs.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9f503e1..e40b4f4 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -40,7 +40,7 @@ void loop(Renderer& renderer, std::mt19937& rng) {
40 game.getSprite(lucasSprite).player = true; 40 game.getSprite(lucasSprite).player = true;
41 game.getSprite(lucasSprite).controllable = true; 41 game.getSprite(lucasSprite).controllable = true;
42 game.getSprite(lucasSprite).persistent = true; 42 game.getSprite(lucasSprite).persistent = true;
43 game.getSystem<CharacterSystem>().initSprite(lucasSprite); 43 game.getSystem<CharacterSystem>().initSprite(lucasSprite, LUCAS_MOVEMENT_SPEED);
44 game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite); 44 game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite);
45 game.getSystem<CameraSystem>().unlockCamera(); 45 game.getSystem<CameraSystem>().unlockCamera();
46 46