java - Resolution scaing for online snake game -
im trying add multiplayer snake game 2 players can compete apples. current dilema is: how deal session 2 players playing on masively different resolutions? thing snake game not using grid. want make sure regardless of resolution time takes remote player reach apple same time takes 1 im seeing on screen!
i hope guys understand me, if not please feel free ask me questions. here picture of game: http://postimg.org/image/js8bs4w0b/
you need implement measurement system, , base speed snake travels on system, instance, imagine rectangle 30x40 blocks, snake travels @ 1 block every few seconds, no matter size of block in real life, snake's speed adjust blocks positions on game screen.
Comments
Post a Comment