← All projects Apps and web

Snake

Android game, Android Studio

The game everyone played on a Nokia, rebuilt natively for phones that are all screen.

JavaAndroid Studio

Rebuilding Snake sounds trivial until you take away the keypad. The whole game is direction input, and on a touch screen there are no keys, so the control scheme had to be rebuilt from scratch.

Touch navigation

The touch handler splits the screen by width and height and maps each region to left, right, up, or down, so the input behaves the same whatever size phone it lands on.

The navigation script and its handler for each direction.

The main screen in the Android Studio designer, with Play and Exit positioned in a constraints layout so the menu holds up across screen sizes.
The main screen in the Android Studio designer, with Play and Exit positioned in a constraints layout so the menu holds up across screen sizes.

Gameplay

← Shooting Madness!! Roller Ball →