Add pushable crates #7
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
levels
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Codinget/Snek#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Crates are basically pushable tiles. When you hit a crate, the game checks for the next adjacent tile to it. If the tile is a hole, the crate despawns. If the tile is empty, the crate is relocated there. If the tile is a portal, the check is called recursively through the portal. Il all other cases, the snake dies.