1
Graphics / Random function updated to Co-ordinates
« on: June 03, 2010, 01:24:24 pm »
Can I get Co-ordinates of my snake when moved
Is there any function or something in SFML
Like If Co-ordinates of snake == Co-ordinates of apple
{
apple.move(randx,randy)
score++
}
Is my basic Idea So can we get actuall snake Co-ordinates and give it to a letter?
like
co=Co-ordinates of snake
how to get that
Is there any function or something in SFML
Like If Co-ordinates of snake == Co-ordinates of apple
{
apple.move(randx,randy)
score++
}
Is my basic Idea So can we get actuall snake Co-ordinates and give it to a letter?
like
co=Co-ordinates of snake
how to get that