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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -