Game Development Reference
In-Depth Information
What just happened?
The
_player
object is updated through a series of states. Touching the screen will make
changes to this
_state
property, as will the results of collision checking with
_ter-
rain
.
Now let's work on the
Block
class.