summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-03-11 17:29:02 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2021-03-11 17:33:15 -0500
commita6d1ded1a41d0f461bf340a33e21fa896ce9da66 (patch)
tree9ddaf30031b1ffe2aa8be9b412038c99a6b879d7 /src/main.cpp
parenteb9fa5020317a44f17cc4906c4c1c6fe55700d3e (diff)
downloadtanetane-a6d1ded1a41d0f461bf340a33e21fa896ce9da66.tar.gz
tanetane-a6d1ded1a41d0f461bf340a33e21fa896ce9da66.tar.bz2
tanetane-a6d1ded1a41d0f461bf340a33e21fa896ce9da66.zip
Added sliding around solid tiles
#3
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index dcf96e5..b515891 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -42,6 +42,7 @@ void loop(Renderer& renderer, std::mt19937& rng) {
42 game.getSprite(lucasSprite).player = true; 42 game.getSprite(lucasSprite).player = true;
43 game.getSprite(lucasSprite).controllable = true; 43 game.getSprite(lucasSprite).controllable = true;
44 game.getSprite(lucasSprite).persistent = true; 44 game.getSprite(lucasSprite).persistent = true;
45 game.getSprite(lucasSprite).sliding = true;
45 game.getSystem<CharacterSystem>().initSprite(lucasSprite, LUCAS_MOVEMENT_SPEED); 46 game.getSystem<CharacterSystem>().initSprite(lucasSprite, LUCAS_MOVEMENT_SPEED);
46 game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite); 47 game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite);
47 game.getSystem<CameraSystem>().unlockCamera(); 48 game.getSystem<CameraSystem>().unlockCamera();