Game Development Reference
In-Depth Information
w
[ru9)[olaa`Heiep7
y
++Ikrapdalh]uan
t'9[rt7
u'9[ru7
++Opkllh]uan]pop]caa`cao
eb$t'lh]uanD]hbSe`pd:op]ca*op]caSe`pd%
w
[rt9,7
[ru9,7
t9op]ca*op]caSe`pd)lh]uanD]hbSe`pd7
y
ahoaeb$tÌlh]uanD]hbSe`pd8,%
w
[rt9,7
[ru9,7
t9,'lh]uanD]hbSe`pd7
y
eb$uÌlh]uanD]hbDaecdp8,%
w
[rt9,7
[ru9,7
u9,'lh]uanD]hbDaecdp7
y
ahoaeb$u'lh]uanD]hbDaecdp:op]ca*op]caDaecdp%
w
[rt9,7
[ru9,7
u9op]ca*op]caDaecdp)lh]uanD]hbDaecdp7
y
y
y
y
Despite the length of the code, it's nothing more than the run-of-the mill Lh]uan class from Dungeon
Maze Adventure that's been adapted to handle acceleration. I'm sure you recognize most of it. Let's
look at what's new and see how acceleration works.
To keep the code as simple as possible, none of the classes in this chapter is initialized
using an ejep method or kj=``a`PkOp]ca event handler. They're all initialized in the
constructor method, which is also a perfectly valid way to initialize objects.
 
Search Nedrilad ::




Custom Search