itch.io is community of indie game creators and players

Devlogs

Mobile Controls

SPACE JAMMED - Free Asset Pack
A browser Demo made in HTML5

I added mobile controls to the game that are intended to work regardless of the device, in the same fashion as one another. 

Using Input.GetTouch(int).deltaPosition.normalized I was able to get a value between -1 and 1 depending on the last touchPosition. This gives it a joystick feeling. The ship moves along positions on a rail, so I use this value to move forward and backward along those rails.

Files

  • Build.zip 11 MB
    Jan 11, 2025
Download SPACE JAMMED - Free Asset Pack
Leave a comment