SlideShare a Scribd company logo
1 of 15
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                   ¨    
                                                                      ojufk ”’m•— ’u•to•z
                            {’u•to•z •y•x w s’— ”h’m•uh ™f tojko ‘gujv p’u•to•“ s’™ eer ”q “’‘
                                      p‘o’nf–“ h’m•l’kj˜fih ’g‘ ™’“f e™• d™•’˜‘’— ‘–•‘ ” “’‘
                                      yxth y‰yˆ‡x€† …„t ƒ‚€s yxth wvp utsrqpihg
of game builder and visual mobile designer. You will also learn to use the SVG UI editor.
This lab series will take you through the process of developing a mobile game with the assistance
                                                                                  0)f1edc)b10a
   988EYG`BYX'W¥V988E£BV$ §¦£§¤ §¤¢V$¨§¦§ £$¤'§ ¥¤£ ¢ %$$#¥!
                                         ¢U §T  £'S ¤D £ §¤R%§! E8QQ A   # '§  D P
                           ¨ % £¦  !   £¥¤' %§ '¦¨¤£  ¨  ! %%I #H8A@98¡©   o
       § '  ¨ %§  G£ % £¦ F ¦¥  !   ' ¤  %£¦  ¨ ¨§¦C #E8A@98¡©o
     ¤D £  %§ ¤D §¦  !   ' ¤  §¨¦ ¡  £¦¤© £¦ ¨§¦C #B8 A@98¡© o
              # %£¦  ¨ %§ 7¡©6  §¨¦ %  £¦¤ £¦¢ ¨§¦  ¨  £¦¤ ¥¤£ ¢ % ¤ 5¤4 •
                                                                                         310210)(
                                              §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
¤ V  ¤ ¥  ¨ ¤ £  T ¨ TT ¨ ¥     ¥   !
      U               U                                             ¨    5
                                        @R$QD9%FB21A9 ($PDI $1D EBDH
    `$1D EBDH D3DY X C$I (WB21A9W 4A EB29B #012G F$1D EBD% C$4 ))6 (7 %$#'
                                     E
                             $1D EBD% B21A9 A#42 @$928 7 4$321 $0# ))6 ( %$#'
                     S §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
                                   ©
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                              ¨   
                                        §¤¦§  £¥¦  G£ ¡I #       PhonePlayer           o
                                      §¤¦§  £¥¦  G£ §4 #      OwnPlayer             o
     G£  §¤! %§  G£ §5S G % §  £¥¦   ¤  'D §¦  G£¥ '¦£ #
                                                                         Player                o
               - Classes for the player interface and it's implementations.      logic.players
                                                                                 ¡C © ¨
 ! !¦5 ¨§¦ D §¦ %¦¤¢ ¤ % !  ¥   §¦ § % !  ¨ §¦© #
                                                                GameThread                     o
                      G£¥ ¤D  ££¦¢ §¤¦¤D§¦ §¤¦    § # #
                                                                GameInfo                       o
 G£ % £¦ %§  ¦¥  ! §  5  §¤¦' §¦  !  ¨§© # BricksLayerManager             o
                                                                                    §  '
      '¦¢ %  ! §¤ % G£¥¦%   ££¦5 ! §¤¦§ ¢  ¢§#  #   BricksGameCanvas            o
                                  - Contains classes that manage the game workflow            logic
                                                                        u™jfe d’kj6 ojufk ’d’g‘ ’–• ‘•gI
                                                  ’u•to•“ d–’%•k“pojufk f‘™j d’kj6 ™’yju ’g‘ eer ”H “’‘
                                                 §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                   ¨   E
                                         { ’‘‘’k•z f‘ eer ™f tojk
 h{ –’u•™•i ’‘‘’k•zh ‘o’k’d e™• tojko ‘guj– sfe™js ’‘‘’k•z ’g‘ ™T
            •y•np‘’kTik•dj ™f tojko ’k˜fe sfe™js d‘o’nf–z ™T
   ‘™’™f“mfo mf‘do • d• ’‘‘’k•“ ’g‘ f‘ d•y™•’m•ldtoj–R eer ”Q “’‘
              b20©f¥2¨ §¢d¥f¦ 2 1 )1 ¥¢¤0¢(2£¢¡ 2 1 cc
                    §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                          ¨    H
              ”‘’u kkjs fW e™• –’u•™•i ’‘‘’k•z ’g‘ ’dfk
                  d•y™•’m•ldtoj–Rpojufk ”d’dd•k ‘o’k’
                            ’m•l’kj˜fi ”‘o’nf–z ‘o’k’
             §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                    ¨       Q
                 ”–’‘’m•–•“ d‘j e™• –f‘o–‘d™fo ’g‘ ’y–’d˜f ”d•y™•’m•ldtoj–R
6f ’o–fd ’g‘ s’jy f‘ •y•npd•y™•’m•ldtoj–R ™f tojko ’k˜fe sfe™js d‘o’nf–z ™T
                                                                   ‘’u kkjs fW
         s’jy asfkY` •y•np‘’kTik•dj ’g‘ f‘™j d•y™•’m•ltoj–R “f–e e™• u•–
                                                     sfe™js ’‘‘’k•z ’g‘ mf–Y     ”X “’‘
                                  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                            ¨   X
                                    djg‘ ”™fjdd’–“¡A •y•x
                         ™f tojk ”  –f‘o–‘d™fo p ‘’kejm
                         d’j‘–’“f–z ‘o’k’d e™• tojkoc‘gujv
                                d•y™•’m•ldtoj–˜ ‘o’k’
                         s’jy asfkY` •y•np‘’kTik•dj ™T ”b “’‘
             §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                   ¨       b
                                                             ”‘’u kkjs fW
 ™f‘‘
    ˜ %•kz ’g‘ dj djg‘ ‘•g‘ sfe™js d’j‘–’“f–z ™j to’go ™f‘‘Ruyd ‘o’k’   ”¨ “’‘
                                                               ’dfk tojk
                            §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                       ¨    ¨
” ‘’to•–˜ %k–o ‘d•k ’g‘ ’–f6’˜ ’u•“ ’g‘ 6f e™’ ’g‘ ‘• ’efo u™jsfkkf6 ’g‘ eer
                               s’jy a’o–f` f‘ go‘jsd •y•np‘’kTik•dj ™T ” “’‘
                                                                 ”‘’u kkjs fW
       s’jy asfkY` •y•np‘’kTik•dj f‘™j ‘–’kr “f–e e™• u•–e ’‘‘’k•z mf–Y ”¡ “’‘
                              b20©f¥2¨ §¢d¥f¦ 2 1 )1 2©¢¥¥2£ 1b2§ cc
                               §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                 ¨     ¡
         h’o–f f‘ flh ‘o’k’d e™• tojkoc‘gujv ™f‘‘Ruyd ‘o’k’
                     s’jy asfkY` f‘ go‘jsd •y•np‘’kTik•dj ™T ” “’‘
   he•’–g’m•lpojufk –f6 ‘–f“mj eerh ‘o’k’d e™•      ’g‘ ™f tojk
                                        ”’efo u™jsfkkf6 ’g‘ eer
                s’jy a’o–f` f‘ go‘jsd •y•np‘’kTik•dj ™T ”q “’‘
   2ebd)¥ ¢¤¢¡ 12§¨a¤§¢d¥f¦ )1 c¢2b 1 2£¢© cc 3©0fc)(
                   §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                         ¨     
                               ”d’efo u™jsfkkf6 ’g‘ eer ”E “’‘
             §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                      ¨     q
                              %ef˜  ““r%f–‘d’e f‘™j  ’m•l“f‘d ee• sf— ”Q “’‘
” ‘’to•–˜ %k–o ‘d•k ’g‘ ’–f6’˜ ’u•“ ’g‘ 6f e™’ ’g‘ ‘• ’efo u™jsfkkf6 ’g‘ eer
                               s’jy a’o–f` f‘ go‘jsd •y•np‘’kTik•dj ™T ”H “’‘
                               §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
 §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡


a  2£¢© 2 1 2¨f§¢f1f0a

–f6 tffk •y•np–’u•™•i–’%•Tdtoj–R ™T ”X “’‘    ‘j™j


       hT¡ ’m•u ‘j™T ii h ’g‘ sfk’˜ m’g‘ ’‘d•“ e™• d’efo u™jsfkkf6 ’g‘ %“f
gameDesign = new GameDesign();
dukeSprite = gameDesign.getDukeWhite();
jamesSprite = gameDesign.getJamesG();
dukeSprite.defineReferencePixel(dukeSprite.getWidth() / 2, 0);
jamesSprite.defineReferencePixel(jamesSprite.getWidth() / 2, 0);
dukeSpriteAnimator = new SpriteAnimationTask(dukeSprite, false);
jamesSpriteAnimator = new SpriteAnimationTask(jamesSprite, false);

bricksLayer = gameDesign.getBricks();
wallsLayer = gameDesign.getBorder();
gameDesign.updateLayerManagerForLevel1(this);

timer = new Timer();
timer.scheduleAtFixedRate(dukeSpriteAnimator, 0, gameDesign.dukeWhiteseq001Delay);
timer.scheduleAtFixedRate(jamesSpriteAnimator, 0, gameDesign.JamesGseq001Delay);



       ”‘’u kkjs fW




     ¨              $¤'¤¥¨¤£%¨%%¨¥$$#¥!
 §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡

       The inserted code performs the following actions:

             o   Creates a new instance of the GameDesign with the graphical data we created
                 earlier.
             o   Gets and Stores the Duke and James sprites using the
                 gameDesign.getDukeWhite() and gameDesign.getJamesG().
             o   Defines the reference pixels for the sprites used in the methods for setting and
                 retrieving the sprite location.
                 Examples include: setPosition(x,y), getX() and getY().
                 By default the reference pixel is the top-left corner coordinates.
             o   Creates the SpriteAnimationTask instances for James and Duke.
             o   Gets and Stores the Wall and Brick tiled layers
             o   Stores the first scene of level1 that we created by combining the Sprites and
                 Tiled Layers created in the Game Designer that's returned by
                 gameDesign.updateLayerManagerForLevel1




 E    ¨                $¤'¤¥¨¤£%¨%%¨¥$$#¥!
$¤'¤¥¨¤£%¨%%¨¥$$#¥!                                            ¨    H
                                                      p™– e™• ekj˜ kk• ’y• ”¨ “’‘
 ¦¥  U  ! ¤ ¦ ¨§¦' §§¤'  '§§¦   PhonePlayer    !   #    o
  ¦¥  X¡  ! ¤ ¦ ¨§¦' §§¤'  '§§¦   OwnerPlayer    !   #    o
                      The inserted code performs the following actions:
                                                                 ”‘’u kkjs fW
    myPlayer2 = new PhonePlayer(jamesSprite, jamesSpriteAnimator, myGameInfo);
    // init player 2
    myPlayer1 = new OwnerPlayer(dukeSprite, dukeSpriteAnimator, myGameInfo);
    // init player 1
     hd–’%•k“ ‘j™T ii h ’g‘ sfk’˜ m’g‘ ’‘d•“ e™• d’efo u™jsfkkf6 ’g‘ %“f
                         d–’%•kz‘j™j   –f6 tffk •y•np–’u•™•i–’%•Tdtoj–R ™T ”b “’‘
                             §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡

More Related Content

What's hot

Draft final strategi nasional redd+
Draft final strategi nasional redd+Draft final strategi nasional redd+
Draft final strategi nasional redd+earlpaulodiaz
 
Yahoo Innovation Culture And Hacker
Yahoo Innovation Culture And HackerYahoo Innovation Culture And Hacker
Yahoo Innovation Culture And HackerJinho Jung
 
O ritual do santuário
O ritual do santuárioO ritual do santuário
O ritual do santuárioOsvair Munhoz
 
Fiestaru07 2003
Fiestaru07 2003Fiestaru07 2003
Fiestaru07 2003rukford1
 
20 th inmo_solu
20 th inmo_solu20 th inmo_solu
20 th inmo_soluaskiitians
 
Lebanon Welfare Board of Directors -22aug2013
Lebanon Welfare Board of Directors -22aug2013Lebanon Welfare Board of Directors -22aug2013
Lebanon Welfare Board of Directors -22aug2013Rama Chakaki
 
Sapienza stochino-25-06-2013
Sapienza stochino-25-06-2013Sapienza stochino-25-06-2013
Sapienza stochino-25-06-2013Franco Bontempi
 
Reformas e auto-reformas da educação no Brasil
Reformas e auto-reformas da educação no BrasilReformas e auto-reformas da educação no Brasil
Reformas e auto-reformas da educação no BrasilIasmin Marinho
 
Fichas para trabajar con euros y centimos
Fichas para trabajar con euros y centimosFichas para trabajar con euros y centimos
Fichas para trabajar con euros y centimosVicky Pinero Elices
 
023 vimtamogudu
023 vimtamogudu023 vimtamogudu
023 vimtamoguduHari99
 
Engleza incepatori
Engleza incepatoriEngleza incepatori
Engleza incepatoriliviuciubara
 
Engleza pentru incepatori
Engleza pentru incepatori Engleza pentru incepatori
Engleza pentru incepatori innarotarciuc
 
Allari atta-01-03
Allari atta-01-03Allari atta-01-03
Allari atta-01-03venkatesha9
 
Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_sword
 Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_sword Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_sword
Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_swordLight Upon Light
 

What's hot (20)

Draft final strategi nasional redd+
Draft final strategi nasional redd+Draft final strategi nasional redd+
Draft final strategi nasional redd+
 
Yahoo Innovation Culture And Hacker
Yahoo Innovation Culture And HackerYahoo Innovation Culture And Hacker
Yahoo Innovation Culture And Hacker
 
O ritual do santuário
O ritual do santuárioO ritual do santuário
O ritual do santuário
 
Fiestaru07 2003
Fiestaru07 2003Fiestaru07 2003
Fiestaru07 2003
 
20 th inmo_solu
20 th inmo_solu20 th inmo_solu
20 th inmo_solu
 
Torquato Dalcich - Un diario (1944 - 1945)
Torquato Dalcich - Un diario (1944 - 1945)Torquato Dalcich - Un diario (1944 - 1945)
Torquato Dalcich - Un diario (1944 - 1945)
 
Lebanon Welfare Board of Directors -22aug2013
Lebanon Welfare Board of Directors -22aug2013Lebanon Welfare Board of Directors -22aug2013
Lebanon Welfare Board of Directors -22aug2013
 
92428025
9242802592428025
92428025
 
Sapienza stochino-25-06-2013
Sapienza stochino-25-06-2013Sapienza stochino-25-06-2013
Sapienza stochino-25-06-2013
 
Andela.php
Andela.phpAndela.php
Andela.php
 
Reformas e auto-reformas da educação no Brasil
Reformas e auto-reformas da educação no BrasilReformas e auto-reformas da educação no Brasil
Reformas e auto-reformas da educação no Brasil
 
Fichas para trabajar con euros y centimos
Fichas para trabajar con euros y centimosFichas para trabajar con euros y centimos
Fichas para trabajar con euros y centimos
 
023 vimtamogudu
023 vimtamogudu023 vimtamogudu
023 vimtamogudu
 
Engleza incepatori
Engleza incepatoriEngleza incepatori
Engleza incepatori
 
Engleza pentru incepatori
Engleza pentru incepatori Engleza pentru incepatori
Engleza pentru incepatori
 
Aids 01-12
Aids 01-12Aids 01-12
Aids 01-12
 
Aesthetics in Software Testing
Aesthetics in Software TestingAesthetics in Software Testing
Aesthetics in Software Testing
 
Avakaa sam
Avakaa samAvakaa sam
Avakaa sam
 
Allari atta-01-03
Allari atta-01-03Allari atta-01-03
Allari atta-01-03
 
Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_sword
 Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_sword Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_sword
Abdullah bin__abdul-baarii_al-ahdal_-_the_slicing_sword
 

Viewers also liked

A simple php exercise on date( ) function
A simple php exercise on date( ) functionA simple php exercise on date( ) function
A simple php exercise on date( ) functionHock Leng PUAH
 
PHP built-in functions date( ) and mktime( ) to calculate age from date of birth
PHP built-in functions date( ) and mktime( ) to calculate age from date of birthPHP built-in functions date( ) and mktime( ) to calculate age from date of birth
PHP built-in functions date( ) and mktime( ) to calculate age from date of birthHock Leng PUAH
 
PHP built-in function mktime example
PHP built-in function mktime examplePHP built-in function mktime example
PHP built-in function mktime exampleHock Leng PUAH
 
Using iMac Built-in Screen Sharing
Using iMac Built-in Screen SharingUsing iMac Built-in Screen Sharing
Using iMac Built-in Screen SharingHock Leng PUAH
 
Visual basic asp.net programming introduction
Visual basic asp.net programming introductionVisual basic asp.net programming introduction
Visual basic asp.net programming introductionHock Leng PUAH
 
Hosting SWF Flash file
Hosting SWF Flash fileHosting SWF Flash file
Hosting SWF Flash fileHock Leng PUAH
 
ASP.net Image Slideshow
ASP.net Image SlideshowASP.net Image Slideshow
ASP.net Image SlideshowHock Leng PUAH
 
Teaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakTeaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakShelly Sanchez Terrell
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerLuminary Labs
 

Viewers also liked (10)

A simple php exercise on date( ) function
A simple php exercise on date( ) functionA simple php exercise on date( ) function
A simple php exercise on date( ) function
 
PHP built-in functions date( ) and mktime( ) to calculate age from date of birth
PHP built-in functions date( ) and mktime( ) to calculate age from date of birthPHP built-in functions date( ) and mktime( ) to calculate age from date of birth
PHP built-in functions date( ) and mktime( ) to calculate age from date of birth
 
PHP built-in function mktime example
PHP built-in function mktime examplePHP built-in function mktime example
PHP built-in function mktime example
 
Using iMac Built-in Screen Sharing
Using iMac Built-in Screen SharingUsing iMac Built-in Screen Sharing
Using iMac Built-in Screen Sharing
 
Visual basic asp.net programming introduction
Visual basic asp.net programming introductionVisual basic asp.net programming introduction
Visual basic asp.net programming introduction
 
Hosting SWF Flash file
Hosting SWF Flash fileHosting SWF Flash file
Hosting SWF Flash file
 
ASP.net Image Slideshow
ASP.net Image SlideshowASP.net Image Slideshow
ASP.net Image Slideshow
 
Inaugural Addresses
Inaugural AddressesInaugural Addresses
Inaugural Addresses
 
Teaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakTeaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & Textspeak
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
 

Similar to Mgd09 lab03

MSME Conclave - Facilitating Financing & Enhancing Competitiveness
MSME Conclave - Facilitating Financing & Enhancing CompetitivenessMSME Conclave - Facilitating Financing & Enhancing Competitiveness
MSME Conclave - Facilitating Financing & Enhancing CompetitivenessConfederation of Indian Industry
 
Argentina (Cordoba) elections 2015
Argentina (Cordoba) elections 2015Argentina (Cordoba) elections 2015
Argentina (Cordoba) elections 2015Smartmatic
 
document redesign project
document redesign projectdocument redesign project
document redesign projectResa Lehman
 
Dispositivi per la telemedicina
Dispositivi per la telemedicinaDispositivi per la telemedicina
Dispositivi per la telemedicinaSergio Pillon
 
Theroyalconnection1week hrh
Theroyalconnection1week hrhTheroyalconnection1week hrh
Theroyalconnection1week hrhCruzeiro Safaris
 
método violino kreutzer kr16
método violino kreutzer kr16método violino kreutzer kr16
método violino kreutzer kr16André Levino
 
globes-it-donitza-pr
globes-it-donitza-prglobes-it-donitza-pr
globes-it-donitza-prIdo Manor
 
القرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلامية
القرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلاميةالقرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلامية
القرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلاميةسمير بسيوني
 
خودکاوی-اریک.فروم
خودکاوی-اریک.فرومخودکاوی-اریک.فروم
خودکاوی-اریک.فرومFarid Kamali
 
Thesis Abstract & Intro
Thesis Abstract & IntroThesis Abstract & Intro
Thesis Abstract & IntroAndrew Nash
 
Bicos SprayDry: Enfrentando os principais problemas na operação de secagem
Bicos SprayDry: Enfrentando os principais problemas na operação de secagemBicos SprayDry: Enfrentando os principais problemas na operação de secagem
Bicos SprayDry: Enfrentando os principais problemas na operação de secagemSpraying Systems do Brasil
 

Similar to Mgd09 lab03 (20)

MSME Conclave - Facilitating Financing & Enhancing Competitiveness
MSME Conclave - Facilitating Financing & Enhancing CompetitivenessMSME Conclave - Facilitating Financing & Enhancing Competitiveness
MSME Conclave - Facilitating Financing & Enhancing Competitiveness
 
Argentina (Cordoba) elections 2015
Argentina (Cordoba) elections 2015Argentina (Cordoba) elections 2015
Argentina (Cordoba) elections 2015
 
RiskMan Article
RiskMan ArticleRiskMan Article
RiskMan Article
 
document redesign project
document redesign projectdocument redesign project
document redesign project
 
Mgd09 lab01
Mgd09 lab01Mgd09 lab01
Mgd09 lab01
 
Quinones Final Design
Quinones Final DesignQuinones Final Design
Quinones Final Design
 
Dispositivi per la telemedicina
Dispositivi per la telemedicinaDispositivi per la telemedicina
Dispositivi per la telemedicina
 
Mgd10 lab03
Mgd10 lab03Mgd10 lab03
Mgd10 lab03
 
Theroyalconnection1week hrh
Theroyalconnection1week hrhTheroyalconnection1week hrh
Theroyalconnection1week hrh
 
Catálogo 1
Catálogo 1Catálogo 1
Catálogo 1
 
método violino kreutzer kr16
método violino kreutzer kr16método violino kreutzer kr16
método violino kreutzer kr16
 
Dav Body
Dav BodyDav Body
Dav Body
 
Mgd01 lab01to03
Mgd01 lab01to03Mgd01 lab01to03
Mgd01 lab01to03
 
Math wb grade 1 (3)
Math wb grade 1 (3)Math wb grade 1 (3)
Math wb grade 1 (3)
 
globes-it-donitza-pr
globes-it-donitza-prglobes-it-donitza-pr
globes-it-donitza-pr
 
القرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلامية
القرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلاميةالقرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلامية
القرءان الكريم برواية الدوري عن الكسائي من موقع الشبكة الإسلامية
 
خودکاوی-اریک.فروم
خودکاوی-اریک.فرومخودکاوی-اریک.فروم
خودکاوی-اریک.فروم
 
La biblia libro de profecias exactas
La biblia   libro de profecias exactasLa biblia   libro de profecias exactas
La biblia libro de profecias exactas
 
Thesis Abstract & Intro
Thesis Abstract & IntroThesis Abstract & Intro
Thesis Abstract & Intro
 
Bicos SprayDry: Enfrentando os principais problemas na operação de secagem
Bicos SprayDry: Enfrentando os principais problemas na operação de secagemBicos SprayDry: Enfrentando os principais problemas na operação de secagem
Bicos SprayDry: Enfrentando os principais problemas na operação de secagem
 

More from Hock Leng PUAH

Integrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web siteIntegrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web siteHock Leng PUAH
 
Step by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visibleStep by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visibleHock Leng PUAH
 
CSS Basic and Common Errors
CSS Basic and Common ErrorsCSS Basic and Common Errors
CSS Basic and Common ErrorsHock Leng PUAH
 
Connectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe ProjectConnectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe ProjectHock Leng PUAH
 
Ohm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallelOhm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallelHock Leng PUAH
 
Connections Exercises Guide
Connections Exercises GuideConnections Exercises Guide
Connections Exercises GuideHock Leng PUAH
 
Design to circuit connection
Design to circuit connectionDesign to circuit connection
Design to circuit connectionHock Leng PUAH
 
NMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 SummaryNMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 SummaryHock Leng PUAH
 
Virtualbox step by step guide
Virtualbox step by step guideVirtualbox step by step guide
Virtualbox step by step guideHock Leng PUAH
 
Pedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker StudentsPedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker StudentsHock Leng PUAH
 
Objective C Primer (with ref to C#)
Objective C  Primer (with ref to C#)Objective C  Primer (with ref to C#)
Objective C Primer (with ref to C#)Hock Leng PUAH
 
Do While and While Loop
Do While and While LoopDo While and While Loop
Do While and While LoopHock Leng PUAH
 

More from Hock Leng PUAH (20)

Integrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web siteIntegrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web site
 
Responsive design
Responsive designResponsive design
Responsive design
 
Step by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visibleStep by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visible
 
Beautiful web pages
Beautiful web pagesBeautiful web pages
Beautiful web pages
 
CSS Basic and Common Errors
CSS Basic and Common ErrorsCSS Basic and Common Errors
CSS Basic and Common Errors
 
Connectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe ProjectConnectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe Project
 
Logic gate lab intro
Logic gate lab introLogic gate lab intro
Logic gate lab intro
 
Ohm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallelOhm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallel
 
Connections Exercises Guide
Connections Exercises GuideConnections Exercises Guide
Connections Exercises Guide
 
Design to circuit connection
Design to circuit connectionDesign to circuit connection
Design to circuit connection
 
NMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 SummaryNMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 Summary
 
Virtualbox step by step guide
Virtualbox step by step guideVirtualbox step by step guide
Virtualbox step by step guide
 
Nms chapter 01
Nms chapter 01Nms chapter 01
Nms chapter 01
 
Pedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker StudentsPedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker Students
 
Objective C Primer (with ref to C#)
Objective C  Primer (with ref to C#)Objective C  Primer (with ref to C#)
Objective C Primer (with ref to C#)
 
Do While and While Loop
Do While and While LoopDo While and While Loop
Do While and While Loop
 
C# looping basic
C# looping basicC# looping basic
C# looping basic
 
Mgd10 lab02
Mgd10 lab02Mgd10 lab02
Mgd10 lab02
 
Mgd10 lab01
Mgd10 lab01Mgd10 lab01
Mgd10 lab01
 
Mgd09 lab02
Mgd09 lab02Mgd09 lab02
Mgd09 lab02
 

Mgd09 lab03

  • 1. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ ojufk ”’m•— ’u•to•z {’u•to•z •y•x w s’— ”h’m•uh ™f tojko ‘gujv p’u•to•“ s’™ eer ”q “’‘ p‘o’nf–“ h’m•l’kj˜fih ’g‘ ™’“f e™• d™•’˜‘’— ‘–•‘ ” “’‘ yxth y‰yˆ‡x€† …„t ƒ‚€s yxth wvp utsrqpihg of game builder and visual mobile designer. You will also learn to use the SVG UI editor. This lab series will take you through the process of developing a mobile game with the assistance 0)f1edc)b10a 988EYG`BYX'W¥V988E£BV$ §¦£§¤ §¤¢V$¨§¦§ £$¤'§ ¥¤£ ¢ %$$#¥! ¢U §T  £'S ¤D £ §¤R%§! E8QQ A # '§  D P  ¨ % £¦  !   £¥¤' %§ '¦¨¤£  ¨  ! %%I #H8A@98¡© o  § '  ¨ %§  G£ % £¦ F ¦¥  !   ' ¤  %£¦  ¨ ¨§¦C #E8A@98¡©o ¤D £  %§ ¤D §¦  !   ' ¤  §¨¦ ¡  £¦¤© £¦ ¨§¦C #B8 A@98¡© o # %£¦  ¨ %§ 7¡©6  §¨¦ %  £¦¤ £¦¢ ¨§¦  ¨  £¦¤ ¥¤£ ¢ % ¤ 5¤4 • 310210)(  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 2. ¤ V ¤ ¥ ¨ ¤ £ T ¨ TT ¨ ¥ ¥ ! U U  ¨ 5 @R$QD9%FB21A9 ($PDI $1D EBDH `$1D EBDH D3DY X C$I (WB21A9W 4A EB29B #012G F$1D EBD% C$4 ))6 (7 %$#' E $1D EBD% B21A9 A#42 @$928 7 4$321 $0# ))6 ( %$#' S §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡ ©
  • 3. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ §¤¦§  £¥¦  G£ ¡I # PhonePlayer o §¤¦§  £¥¦  G£ §4 # OwnPlayer o  G£  §¤! %§  G£ §5S G % §  £¥¦   ¤  'D §¦  G£¥ '¦£ # Player o - Classes for the player interface and it's implementations. logic.players ¡C © ¨  ! !¦5 ¨§¦ D §¦ %¦¤¢ ¤ % !  ¥  §¦ § % !  ¨ §¦© # GameThread o  G£¥ ¤D  ££¦¢ §¤¦¤D§¦ §¤¦    § # # GameInfo o  G£ % £¦ %§  ¦¥  ! §  5  §¤¦' §¦  !  ¨§© # BricksLayerManager o §  '  '¦¢ %  ! §¤ % G£¥¦%   ££¦5 ! §¤¦§ ¢  ¢§#  # BricksGameCanvas o - Contains classes that manage the game workflow logic  u™jfe d’kj6 ojufk ’d’g‘ ’–• ‘•gI ’u•to•“ d–’%•k“pojufk f‘™j d’kj6 ™’yju ’g‘ eer ”H “’‘  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 4. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ E { ’‘‘’k•z f‘ eer ™f tojk h{ –’u•™•i ’‘‘’k•zh ‘o’k’d e™• tojko ‘guj– sfe™js ’‘‘’k•z ’g‘ ™T •y•np‘’kTik•dj ™f tojko ’k˜fe sfe™js d‘o’nf–z ™T ‘™’™f“mfo mf‘do • d• ’‘‘’k•“ ’g‘ f‘ d•y™•’m•ldtoj–R eer ”Q “’‘ b20©f¥2¨ §¢d¥f¦ 2 1 )1 ¥¢¤0¢(2£¢¡ 2 1 cc  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 5. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ H ”‘’u kkjs fW e™• –’u•™•i ’‘‘’k•z ’g‘ ’dfk d•y™•’m•ldtoj–Rpojufk ”d’dd•k ‘o’k’ ’m•l’kj˜fi ”‘o’nf–z ‘o’k’  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 6. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ Q ”–’‘’m•–•“ d‘j e™• –f‘o–‘d™fo ’g‘ ’y–’d˜f ”d•y™•’m•ldtoj–R 6f ’o–fd ’g‘ s’jy f‘ •y•npd•y™•’m•ldtoj–R ™f tojko ’k˜fe sfe™js d‘o’nf–z ™T ‘’u kkjs fW s’jy asfkY` •y•np‘’kTik•dj ’g‘ f‘™j d•y™•’m•ltoj–R “f–e e™• u•– sfe™js ’‘‘’k•z ’g‘ mf–Y ”X “’‘  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 7. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ X djg‘ ”™fjdd’–“¡A •y•x ™f tojk ”  –f‘o–‘d™fo p ‘’kejm d’j‘–’“f–z ‘o’k’d e™• tojkoc‘gujv d•y™•’m•ldtoj–˜ ‘o’k’ s’jy asfkY` •y•np‘’kTik•dj ™T ”b “’‘  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 8. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ b ”‘’u kkjs fW  ™f‘‘ ˜ %•kz ’g‘ dj djg‘ ‘•g‘ sfe™js d’j‘–’“f–z ™j to’go ™f‘‘Ruyd ‘o’k’ ”¨ “’‘ ’dfk tojk  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 9. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ ¨ ” ‘’to•–˜ %k–o ‘d•k ’g‘ ’–f6’˜ ’u•“ ’g‘ 6f e™’ ’g‘ ‘• ’efo u™jsfkkf6 ’g‘ eer s’jy a’o–f` f‘ go‘jsd •y•np‘’kTik•dj ™T ” “’‘ ”‘’u kkjs fW s’jy asfkY` •y•np‘’kTik•dj f‘™j ‘–’kr “f–e e™• u•–e ’‘‘’k•z mf–Y ”¡ “’‘ b20©f¥2¨ §¢d¥f¦ 2 1 )1 2©¢¥¥2£ 1b2§ cc  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 10. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ ¡ h’o–f f‘ flh ‘o’k’d e™• tojkoc‘gujv ™f‘‘Ruyd ‘o’k’ s’jy asfkY` f‘ go‘jsd •y•np‘’kTik•dj ™T ” “’‘ he•’–g’m•lpojufk –f6 ‘–f“mj eerh ‘o’k’d e™• ’g‘ ™f tojk ”’efo u™jsfkkf6 ’g‘ eer s’jy a’o–f` f‘ go‘jsd •y•np‘’kTik•dj ™T ”q “’‘ 2ebd)¥ ¢¤¢¡ 12§¨a¤§¢d¥f¦ )1 c¢2b 1 2£¢© cc 3©0fc)(  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 11. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ ”d’efo u™jsfkkf6 ’g‘ eer ”E “’‘  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 12. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ q %ef˜  ““r%f–‘d’e f‘™j  ’m•l“f‘d ee• sf— ”Q “’‘ ” ‘’to•–˜ %k–o ‘d•k ’g‘ ’–f6’˜ ’u•“ ’g‘ 6f e™’ ’g‘ ‘• ’efo u™jsfkkf6 ’g‘ eer s’jy a’o–f` f‘ go‘jsd •y•np‘’kTik•dj ™T ”H “’‘  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡
  • 13.  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡ a  2£¢© 2 1 2¨f§¢f1f0a –f6 tffk •y•np–’u•™•i–’%•Tdtoj–R ™T ”X “’‘  ‘j™j hT¡ ’m•u ‘j™T ii h ’g‘ sfk’˜ m’g‘ ’‘d•“ e™• d’efo u™jsfkkf6 ’g‘ %“f gameDesign = new GameDesign(); dukeSprite = gameDesign.getDukeWhite(); jamesSprite = gameDesign.getJamesG(); dukeSprite.defineReferencePixel(dukeSprite.getWidth() / 2, 0); jamesSprite.defineReferencePixel(jamesSprite.getWidth() / 2, 0); dukeSpriteAnimator = new SpriteAnimationTask(dukeSprite, false); jamesSpriteAnimator = new SpriteAnimationTask(jamesSprite, false); bricksLayer = gameDesign.getBricks(); wallsLayer = gameDesign.getBorder(); gameDesign.updateLayerManagerForLevel1(this); timer = new Timer(); timer.scheduleAtFixedRate(dukeSpriteAnimator, 0, gameDesign.dukeWhiteseq001Delay); timer.scheduleAtFixedRate(jamesSpriteAnimator, 0, gameDesign.JamesGseq001Delay); ”‘’u kkjs fW  ¨ $¤'¤¥¨¤£%¨%%¨¥$$#¥!
  • 14.  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡ The inserted code performs the following actions: o Creates a new instance of the GameDesign with the graphical data we created earlier. o Gets and Stores the Duke and James sprites using the gameDesign.getDukeWhite() and gameDesign.getJamesG(). o Defines the reference pixels for the sprites used in the methods for setting and retrieving the sprite location. Examples include: setPosition(x,y), getX() and getY(). By default the reference pixel is the top-left corner coordinates. o Creates the SpriteAnimationTask instances for James and Duke. o Gets and Stores the Wall and Brick tiled layers o Stores the first scene of level1 that we created by combining the Sprites and Tiled Layers created in the Game Designer that's returned by gameDesign.updateLayerManagerForLevel1 E  ¨ $¤'¤¥¨¤£%¨%%¨¥$$#¥!
  • 15. $¤'¤¥¨¤£%¨%%¨¥$$#¥!  ¨ H p™– e™• ekj˜ kk• ’y• ”¨ “’‘  ¦¥  U  ! ¤ ¦ ¨§¦' §§¤'  '§§¦ PhonePlayer  !   # o  ¦¥  X¡  ! ¤ ¦ ¨§¦' §§¤'  '§§¦ OwnerPlayer  !   # o The inserted code performs the following actions: ”‘’u kkjs fW myPlayer2 = new PhonePlayer(jamesSprite, jamesSpriteAnimator, myGameInfo); // init player 2 myPlayer1 = new OwnerPlayer(dukeSprite, dukeSpriteAnimator, myGameInfo); // init player 1 hd–’%•k“ ‘j™T ii h ’g‘ sfk’˜ m’g‘ ’‘d•“ e™• d’efo u™jsfkkf6 ’g‘ %“f  d–’%•kz‘j™j –f6 tffk •y•np–’u•™•i–’%•Tdtoj–R ™T ”b “’‘  §¨¦ ¡  £¦¤© £¦ ¨§¦    £¦¤© ¨§¦¥¤£ ¢ ¡