June 2018
Beginner to intermediate
298 pages
7h 38m
English
Because the game as written in this chapter uses keyboard controls, you won't be able to play on a mobile device without making some changes. Fortunately, Godot has support for touchscreen input. First, open Project Settings, and in the Display/Window section, make sure Orientation is set to portrait and Emulate Touchscreen is On. This will let you test the program on your computer by treating mouse clicks as touch events:

Next, you need to change the player controls. Instead of using the four direction inputs, the player will move toward the position of the touch event. Change the player script as follows:
var target = ...
Read now
Unlock full access