core.components.controller module

class core.components.controller.Controller(game)[source]

Bases: object

Handles the controller overlay functionality for mobile versions of the game. This includes detecting screen touches of on-screen buttons so they can be translated to keystrokes as well as drawing the controller overlay itself.

_images/controller_overlay01.png
Parameters:game (tuxemon.Game) – The main game object that contains all the game’s variables.
draw(game)[source]

Draws the controller overlay to the screen.

Parameters:game (tuxemon.Game) – The main game object that contains all the game’s variables.
Return type:None
Returns:None
load()[source]