Book Image

Sparrow iOS Game Framework Beginner's Guide

By : Johannes Stein
Book Image

Sparrow iOS Game Framework Beginner's Guide

By: Johannes Stein

Overview of this book

Table of Contents (20 chapters)
Sparrow iOS Game Framework Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Afterword
Index

Chapter 6. Adding Game Logic

In the previous chapter, we learned about animating our objects on the screen using tweens; we also learned about sprite sheets, generated our very own sprite sheet with texture information, and animated it.

Let's take a quick look at what kind of topics we will tackle in this chapter:

  • Shooting cannonballs, which is pretty much a core mechanic of our game

  • Once a cannonball is displayed on the battlefield, it should be able to collide with the enemy ship

  • Destroying the enemy ship, if enough cannonballs hit the ship