So I'm creating a snake game for my Ti-84 plus calculator in my spare time to learn the language. I have a moving and working snake, but I've run into one problem. I have the coordinates of the snake stored in a matrix (column 1 being the X coordinates and column 2 being the Y coordinates, each row represents a new body segment top being the back and bottom being the front) I wanted to know if there is a fast way to delete the first row in the matrix and add a new row to the end. I am currently adding the new row, setting the value, swapping the first and last row, deleting the last row then swapping every row to move the first row back to the front. Thank You in advance for trying to help.
Register to Join the Conversation
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement