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

Letting the enemy ship move and attack


Now that we know about fuzzy logic and state machines, we can implement these as mechanics for our artificial intelligence.

Moving the ship

First of all, we want the ship to move around—both wander around and move to the player ship.