File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2328,6 +2328,14 @@ Player::collision_tile(uint32_t tile_attributes)
2328
2328
}
2329
2329
}
2330
2330
2331
+ void
2332
+ Player::update_hitbox ()
2333
+ {
2334
+ // Don't use the default MovingSprite hitbox behavior
2335
+ // because this class already has logic for that.
2336
+ // Refer to the adjust_height method.
2337
+ }
2338
+
2331
2339
void
2332
2340
Player::collision_solid (const CollisionHit& hit)
2333
2341
{
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ class Player final : public MovingSprite
86
86
virtual void collision_solid (const CollisionHit& hit) override ;
87
87
virtual HitResponse collision (MovingObject& other, const CollisionHit& hit) override ;
88
88
virtual void collision_tile (uint32_t tile_attributes) override ;
89
+ virtual void update_hitbox () override ;
89
90
virtual void on_flip (float height) override ;
90
91
virtual bool is_saveable () const override { return false ; }
91
92
virtual bool is_singleton () const override { return false ; }
You can’t perform that action at this time.
0 commit comments