Game Development Reference
In-Depth Information
++?]h_qh]papda`eop]j_apkpdap]ncap
r]n`t6Jqi^an9p]ncap*t)pdeo*t7
r]n`u6Jqi^an9p]ncap*u)pdeo*u7
r]n`eop]j_a9I]pd*omnp$`t&`t'`u&`u%7
++bena^qhhapebp]ncapeosepdejn]jca
eb$`eop]j_a89N=JCA%
w
[peian*op]np$%7
y
ahoa
w
[peian*opkl$%7
y
y
lner]pabqj_pekjkjOdkkp>qhhap$arajp6PeianArajp%6rke`
w
++>qhhap#orahk_epu
r]n^qhhap[Rt6Jqi^an9I]pd*_ko$[]jcha%&)-,7
r]n^qhhap[Ru6Jqi^an9I]pd*oej$[]jcha%&)-,7
++>qhhap#oop]nplkoepekj
r]nn]`eqo9)1,7
r]n^qhhap[Op]npT9t'n]`eqo&I]pd*_ko$[]jcha%7
r]n^qhhap[Op]npU9u'n]`eqo&I]pd*oej$[]jcha%7
++?na]pa^qhhapejop]j_a]j`]``eppkpdaop]ca
r]n^qhhap6>qhhap9jas>qhhap$^qhhap[Rt(^qhhap[Ru( ±
^qhhap[Op]npT(^qhhap[Op]npU(_en_ha%7
l]najp*]``?deh`$^qhhap%7
y
y
y
As you can see, it's pretty familiar. But what's up with all that timer stuff?
Timer and TimerEvent classes
In the chapter's source files, you'll find a folder called Peian. Open it as a project to see a simple
example of how the Peian and PeianArajp classes work. When you test the project, you'll see a num-
ber counter that updates by one each second. Here's the code that makes it work:
l]_g]ca
w
eilknpbh]od*`eolh]u*Ikrea?hel7
eilknpbh]od*arajpo*Arajp7
eilknpbh]od*arajpo*PeianArajp7
eilknpbh]od*qpeho*Peian7
lq^he__h]ooI]ej[Peianatpaj`oIkrea?hel
 
Search Nedrilad ::




Custom Search