Game Development Reference
In-Depth Information
The gameplay mechanic
As mentioned in the previous game, explaining the mechanism of the gameplay loop will
be better for you if you plan to work from scratch or to understand the current logic you've
got with the topic. With this said, let's break down the gameplay logic:
1. Once the game starts, all of the spawnPoint blueprints in the scene will keep
spawning random enemy types as long as the player never reaches the targeted
score or is still alive.
2. The mainChar blueprint will be able to receive inputs from the keyboard and the
touch screen as long as the game is running. Once the player hits jump, this action
will force the player controller to jump, while hitting fire will force him to stop and
shoot some bullet blueprints.
3. While shooting, the player's amount of ammo keeps decreasing while the score in-
creases if the bullets hit some enemies, and both are displayed through the uiText
blueprint.
4. Finally, if the player falls through a gap or touches an enemy, the level will restart;
whereas, if the player hits a cratebox blueprint, it will add 10 extra bullets to the
amount of ammo the player has.
Search WWH ::




Custom Search