summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2021-03-11 21:01:57 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2021-03-11 21:01:57 -0500
commite76b9cb3a64f414ee2e11a28f3d421f6efeb06a6 (patch)
tree4a8b40a2e2b0fec293e304f33a0b7c9f076772ec /src/main.cpp
parent52eb82ca4331242bfb9d7acd5a7b58f6ecab0e18 (diff)
downloadtanetane-e76b9cb3a64f414ee2e11a28f3d421f6efeb06a6.tar.gz
tanetane-e76b9cb3a64f414ee2e11a28f3d421f6efeb06a6.tar.bz2
tanetane-e76b9cb3a64f414ee2e11a28f3d421f6efeb06a6.zip
Made default sprite hitboxes slightly narrower
This includes the player characters. It was impossible to access the Time Passage mailbox with the wider hitbox because the player would continuously slide between the solid tiles to either side of it.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index b515891..56d4301 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -35,7 +35,7 @@ void loop(Renderer& renderer, std::mt19937& rng) {
35 35
36 int lucasSprite = game.emplaceSprite("lucas"); 36 int lucasSprite = game.emplaceSprite("lucas");
37 game.getSystem<TransformSystem>().initSprite(lucasSprite, warpLoc); 37 game.getSystem<TransformSystem>().initSprite(lucasSprite, warpLoc);
38 game.getSystem<TransformSystem>().setUpCollision(lucasSprite, {-8, -8}, {16, 8}, true); 38 game.getSystem<TransformSystem>().setUpCollision(lucasSprite, {-7, -8}, {14, 8}, true);
39 game.getSystem<AnimationSystem>().initSprite(lucasSprite, "../res/sprites/lucas_anim.txt"); 39 game.getSystem<AnimationSystem>().initSprite(lucasSprite, "../res/sprites/lucas_anim.txt");
40 game.getSystem<AnimationSystem>().setSpriteDirection(lucasSprite, Direction::down); 40 game.getSystem<AnimationSystem>().setSpriteDirection(lucasSprite, Direction::down);
41 game.getSprite(lucasSprite).normallyHasShadow = true; 41 game.getSprite(lucasSprite).normallyHasShadow = true;
@@ -49,7 +49,7 @@ void loop(Renderer& renderer, std::mt19937& rng) {
49 49
50 int kumaSprite = game.emplaceSprite("kuma"); 50 int kumaSprite = game.emplaceSprite("kuma");
51 game.getSystem<TransformSystem>().initSprite(kumaSprite, warpLoc); 51 game.getSystem<TransformSystem>().initSprite(kumaSprite, warpLoc);
52 game.getSystem<TransformSystem>().setUpCollision(kumaSprite, {-8, -8}, {16, 8}, false); 52 game.getSystem<TransformSystem>().setUpCollision(kumaSprite, {-7, -8}, {14, 8}, false);
53 game.getSystem<AnimationSystem>().initSprite(kumaSprite, "../res/sprites/kuma_anim.txt"); 53 game.getSystem<AnimationSystem>().initSprite(kumaSprite, "../res/sprites/kuma_anim.txt");
54 game.getSystem<AnimationSystem>().setSpriteDirection(kumaSprite, Direction::down); 54 game.getSystem<AnimationSystem>().setSpriteDirection(kumaSprite, Direction::down);
55 game.getSprite(kumaSprite).normallyHasShadow = true; 55 game.getSprite(kumaSprite).normallyHasShadow = true;
@@ -58,7 +58,7 @@ void loop(Renderer& renderer, std::mt19937& rng) {
58 58
59 int dusterSprite = game.emplaceSprite("duster"); 59 int dusterSprite = game.emplaceSprite("duster");
60 game.getSystem<TransformSystem>().initSprite(dusterSprite, warpLoc); 60 game.getSystem<TransformSystem>().initSprite(dusterSprite, warpLoc);
61 game.getSystem<TransformSystem>().setUpCollision(dusterSprite, {-8, -8}, {16, 8}, false); 61 game.getSystem<TransformSystem>().setUpCollision(dusterSprite, {-7, -8}, {14, 8}, false);
62 game.getSystem<AnimationSystem>().initSprite(dusterSprite, "../res/sprites/duster_anim.txt"); 62 game.getSystem<AnimationSystem>().initSprite(dusterSprite, "../res/sprites/duster_anim.txt");
63 game.getSystem<AnimationSystem>().setSpriteDirection(dusterSprite, Direction::down); 63 game.getSystem<AnimationSystem>().setSpriteDirection(dusterSprite, Direction::down);
64 game.getSprite(dusterSprite).normallyHasShadow = true; 64 game.getSprite(dusterSprite).normallyHasShadow = true;
@@ -67,7 +67,7 @@ void loop(Renderer& renderer, std::mt19937& rng) {
67 67
68 int boneySprite = game.emplaceSprite("boney"); 68 int boneySprite = game.emplaceSprite("boney");
69 game.getSystem<TransformSystem>().initSprite(boneySprite, warpLoc); 69 game.getSystem<TransformSystem>().initSprite(boneySprite, warpLoc);
70 game.getSystem<TransformSystem>().setUpCollision(boneySprite, {-8, -8}, {16, 8}, false); 70 game.getSystem<TransformSystem>().setUpCollision(boneySprite, {-7, -8}, {14, 8}, false);
71 game.getSystem<AnimationSystem>().initSprite(boneySprite, "../res/sprites/boney_anim.txt"); 71 game.getSystem<AnimationSystem>().initSprite(boneySprite, "../res/sprites/boney_anim.txt");
72 game.getSystem<AnimationSystem>().setSpriteDirection(boneySprite, Direction::down); 72 game.getSystem<AnimationSystem>().setSpriteDirection(boneySprite, Direction::down);
73 game.getSprite(boneySprite).normallyHasShadow = true; 73 game.getSprite(boneySprite).normallyHasShadow = true;