rhllor Posted July 14, 2015 Share Posted July 14, 2015 Hello everyone, Im trying to develop a snake game like Arrow. I want to know which physics motor seems more appropriate. Also could anyone enlighten me on how to make the snake effect. Thank you! Link to comment Share on other sites More sharing options...
CodeToWin Posted July 16, 2015 Share Posted July 16, 2015 for the physics handling, the ARCADE setting in Phaser should suffice. As far as the effect, I think there are different ways to handle it. You can set up the game as a grid, with the snake inside the grid. When the player changes directions, save the grid (x,y) location. When a link in the snake reaches that (x,y) location then change its direction to follow the head. Here is a tutorial on how to do it, with a link to a playable demo. I hope this helps http://benjaminhorn.io/code/creating-the-game-snake-with-phaser/ avishek0307 1 Link to comment Share on other sites More sharing options...
rhllor Posted July 21, 2015 Author Share Posted July 21, 2015 thank you very much are you familiar with box2d phaser plugin ? I am having problem with the offset. It does not seem to work. Link to comment Share on other sites More sharing options...
Recommended Posts