Book Image

Stencyl Essentials

By : Richard Sneyd
Book Image

Stencyl Essentials

By: Richard Sneyd

Overview of this book

Table of Contents (20 chapters)
Stencyl Essentials
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 11. Scoring and Game Rules

In previous chapters, we incrementally learned about all the technical skills and knowledge necessary to build a game with Stencyl. We have even implemented some game mechanics. However, it would not be a game if there were no clearly defined game rules or gameplay. In this chapter, we will:

  • Create and track a score value

  • Render it to the screen

  • Create a coin collection gameplay component to increment the score variable