patreeceeo / zomboban

Hey you should have clocked out hours aaAAAAAAAAAH!
https://innerlogic.co/game
1 stars 0 forks source link

prevent various cases that cause block misalignment #21

Closed patreeceeo closed 3 months ago

patreeceeo commented 3 months ago
  1. When doing collision detection, if an entity is between two tiles, it should be considered to be in both tiles
  2. Do not allow a block to be pushed in multiple directions at once a. This will be reverted in a follow up PR because I just realized that (1) makes this unnecessary.
  3. All entities should do solid body collisions.

While in the process of working on the above, I also added play/pause/rewind buttons and improved the undo logic.

https://github.com/patreeceeo/zomboban/assets/578371/f56231b5-fdad-4356-8bd0-45972c098440