Questions tagged [snake]

The tag has no usage guidance.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
1k views

Snake movement in monogame

Noobie here... I've started learning monogame development and currently working on a simple snake game. I'm having trouble with the snake's movement, I figured I could make it tile-based movement but ...
0
votes
0answers
15 views

Snake game collision with wall and reset

So I have a collision with itself and collision with the apple. I just cant figure out how to get it to collide with the wall. What my teacher helped me with was it made it teleport to the other side ...
0
votes
1answer
47 views

Distance between moving, rotated rectangles in snake game

I am trying to implement basic Snake game with movement based on timestep. For now I've got something along those lines: Update function: ...
0
votes
0answers
33 views

How to restart my Snake game after Game Over

I'm new into programming and trying to implement a way to restart my snake game after the game is over. I tried several ways but none worked out for me. Can someone maybe help me? ...
0
votes
0answers
230 views

How to make 3D snake with procedural mesh in Unity

Im currently learning Unity3D and I would like to recreate the old Nokia game "Snakes" (example video: https://www.youtube.com/watch?v=FXg3jVG-tXs&ab_channel=aantv, play it at 1:30 and ...
0
votes
0answers
31 views

AI for 1v1 snake

I've got a task for job application to create a snake AI that can defeat their basic AI. Searching in this topic I've found that it's very similar to Tron and it's solved mostly by minimax algorithm. ...
0
votes
1answer
87 views

how to join the body of snake in 2D snake game

i'm making a snake game in javaScript from scratch. The problem is that the snake looks disjoint(see image). How can I connect the body(rectangles) of the snake? here is the code of drawing snake: <...
0
votes
1answer
238 views

Snake game steering with Java FX

I am currently trying to make a snake game with Java FX, I read several posts about it and I understand on theory how to move the snake body (for each part of the snake reference the previous one and ...
0
votes
0answers
339 views

How can I move the snake toward the mouse cursor?

I am making a snake game. I have got it to animate. I just want it to follow the mouse pointer. I am able to find the mouse cursor position. I am also to get my snake to move to the right. What I want ...