Skip to content

(feature) snake object#5

Merged
NathansSoftwareDevelopment merged 8 commits intomainfrom
(Feature)-Snake-Object
Sep 1, 2025
Merged

(feature) snake object#5
NathansSoftwareDevelopment merged 8 commits intomainfrom
(Feature)-Snake-Object

Conversation

@NathansSoftwareDevelopment
Copy link
Copy Markdown
Owner

Added the base snake object to the game.

Now when creating a snake object it will always have a head that spawns at [0, 0].
This head node will never change as the list will only be accessed in one direction.
Iterates through all nodes until it reaches the last one and adds a new tail piece.
Can now display a single node of the snake. This will be iterated over the disable the full snake.
Iterates through and displays all nodes of the snake.
Previously a new snake would be created every time the mainloop ran.
@NathansSoftwareDevelopment NathansSoftwareDevelopment deleted the (Feature)-Snake-Object branch September 1, 2025 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant