Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

how to repaint a point in snake game :(

$
0
0
i have a prolem with my first game that i can't re paint a point after the snake ate. Can you resolve my problem i use an array 2D to draw map, 2 arrays to draw snake and an array 2D to draw food. But i can't make the food disapear when the snake meet food and draw a new food Please help me or give me an idea. i also want add another map in the future or some of food like poison for the snake. Controller.txt Food.txt GameScreen.txt Main.txt MapNoWall.txt Snake.txt

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>