![]() |
Zooshi
An open source project by
FPL.
|
This document outlines the various controllers used to handle player input in Zooshi.
Zooshi uses the concept of controllers, defined in the inputcontrollers folder, to handle the various control schemes (mouse, device orientation, touchscreen, gamepad, etc) that can be used to play the game. Primarily, they are in charge of converting the input from the system into a facing vector, and requesting sushi be thrown. The input is obtained from fplbase's InputSystem.
There are several different types of controllers, each responsible for handling a different sort of input.
Controller type that uses the Cardboard SDK to drive the game. This controller is used for both regular Android gameplay and Cardboard mode, using the orientation of the device to control the camera.
Controller type that uses an Android gamepad to drive the game, using the Gamepad abstraction provided by fplbase.
Controller type that uses a mouse to drive the game, which is used when playing on desktop.
Controller type that uses the touchscreen of Android, creating a joystick based on touch, to drive the game. This control scheme is used by Android devices that are not supported by the Cardboard SDK, and can also be accessed through the Options menu in game.