collision detection

im trying to code for a snake game this is my pellet saying that if the character and the pellet are the same place move the pellet somewhere else. the code is empty because nothing I tried worked



1
2
3
4
 if 'S' && pellet == Map[y][x])
	{
		
	} 
Last edited on
Topic archived. No new replies allowed.