Skip to content
Discussion options

You must be logged in to vote
struct Snake {
    segments: VecDeque<Entity>,
}

You need each of the segments to be their own entity, so then they're rendered properly :) With this solution, you can record that and also have multiple snakes. Just be careful not to desynchronize this list and the spawning / despawning! Custom commands can help a lot there.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AgustinRamiroDiaz
Comment options

@alice-i-cecile
Comment options

Answer selected by AgustinRamiroDiaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants