Touch controls
Solarus 1.6 now supports touch input for Android. Need to start thinking about how this will be implemented.
I'm thinking a pathfinder system is better than using on-screen controls.
- If you tap the edge of the screen, the hero will try to move to the adjacent screen on that side (if able). As she walks, a blinking arrow on that edge of the screen will inform the player that Rachel will cross over once she gets there.
- If you tap Rachel she'll do her "action" move
- If you tap the item icon it'll use the equipped item.
- If you tap anywhere else, Rachel will try to move there (if able), avoiding any obstacles automatically.
- Rachel is snapped to a 16x16 grid when using touch controls.
- Any movement can be cancelled by a new tap anywhere.
-
Some entities will need special attention.
- When the hero is adjacent to a pushable block, she faces and grabs it automatically. In the case of competing blocks, she grabs any of them and the player can change her direction by tapping the other block.
- ??? maybe others I didn't consider?
I don't think this will be easy to implement, but I'm pretty sure it'll cover all scenarios in the game and I'll test them against this.
Edited by Alex Gleason