nice made, but the collision detection in world 3 i noticed, is not the cleanest could that be, cause the snake stopped about 15px before "real collesion"
@Pointifix, in world 3, the snake segments are rotated which, for one, widens the width and height of the images. Also, the snake is moved 5 pixels at a time and it stops if it cannot move the whole five pixels. Together, I believe it covers the 15 pixels you mentioned.
the 15 pixels i got with my screen lineal ;) i did a 360 degrees snake once as well and i had the same "problem" the snake always stops before it really collide. but jeah i did this with c++
@Pointifix, the demo was more for the movement of the snake, not for the collision detection; so, I do not think I will worry about it. Unless, you have a need for better and need some help?
im doing such things for fun so theres never a "need" ;) to get the better collision i think you have to know where circles are drawn cause the array of position i made is 10 times larger then the chain links to fit the spaces between, but jeah thats work i were to lazy for as i made this ;)
@Pointifix, my Pong Pinball scenario, at http://www.greenfoot.org/scenarios/7455, has collision detection between circles and rectangles you might be interested in looking at.
2013/4/16
2013/4/16
2014/3/5
2014/3/5
2014/3/5
2014/3/5
2014/3/5
2014/3/5
2014/3/5
2014/3/5