jagomart
digital resources
picture1_Controller Pdf 190804 | 08 Architecture


 144x       Filetype PDF       File size 1.60 MB       Source: www.cs.cornell.edu


File: Controller Pdf 190804 | 08 Architecture
the gamedesigninitiative at cornell university lecture 8 game architecture revisited recall the game loop receive player input update process player actions 60 times s process npc actions interactions e g ...

icon picture PDF Filetype PDF | Posted on 04 Feb 2023 | 2 years ago
Partial capture of text on file.
              the
              gamedesigninitiative
                       at cornell university
        Lecture 8
            Game Architecture
                  Revisited
                                 Recall: The Game Loop
                                                                                       Receive player input
                                                Update                                 Process player actions
          60 times/s                                                                   Process NPC actions
                    =                                                                  Interactions (e.g. physics)
             16.7 ms                                                                   Cull non-visible objects
                                                  Draw                                 Transform visible objects
                                                                                       Draw to backing buffer
                                                                                       Display backing buffer
                                                                                                              the
        2                                                Architecture Revisited                               gamedesigninitiative
                                                                                                                       at cornell university
                                            The Game Loop
                                                                              Receive player input
                                       Update                                 Process player actions
                                                                              Process NPC actions
                                                                              Interactions (e.g. physics)
                                                                  — Almost everything is in loop
                                         Draw                           — Except asynchronous actions
                                                                        — Is enough for simple games
                                                                  — How do we organize this loop?
                                                                        — Do not want spaghetti code
                                                                        — Distribute over programmers
                                                                                                              the
        3                                                Architecture Revisited                               gamedesigninitiative
                                                                                                                       at cornell university
                       Model-View-Controller Pattern
                                                           Controller                                      Calls the 
                                                •      Updates model in                                  methods of
                                                       response to events
                                                •      Updates view with 
                                                       model changes
                        Model                                                                           View
          •      Defines/manages                                                        •      Displays model 
                 the program data                                                              to the user/player
          •      Responds to the                                                        •      Provides interface 
                 controller requests                                                           for the controller
                                                                                                              the
        4                                                Architecture Revisited                               gamedesigninitiative
                                                                                                                       at cornell university
The words contained in this file might help you see if this file matches what you are looking for:

...The gamedesigninitiative at cornell university lecture game architecture revisited recall loop receive player input update process actions times s npc interactions e g physics ms cull non visible objects draw transform to backing buffer display almost everything is in except asynchronous enough for simple games how do we organize this not want spaghetti code distribute over programmers model view controller pattern calls updates methods of response events with changes defines manages displays program data user responds provides interface requests...

no reviews yet
Please Login to review.