© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
M. DhuleBeginning Game Development with Godothttps://doi.org/10.1007/978-1-4842-7455-2_8

8. Counting Wins and Losses

Maithili Dhule1  
(1)
Singapore, Singapore
 

../images/516370_1_En_8_Chapter/516370_1_En_8_Figa_HTML.gif In this chapter, we’ll learn how to add animated coins and enemies to our game. We’ll learn how to create instances of the various objects in the main game scene and use them to keep track of the player score and lives. We’ll dive into important concepts such as signals, RayCast2D, collision masks and layers, and changing scenes.

Introducing a reward system in your game can make it more interesting and ...

Get Beginning Game Development with Godot: Learn to Create and Publish Your First 2D Platform Game now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.