4-game architecture (game development - umt spring 2017)

7
Game Architecture FROM: HAFIZ AMMAR SIDDIQUI – COURSE: GAME DEVELOPMENT – INSTITUTE: UNIVERSITY OF MANAGEMENT AND TECHNOLOGY

Upload: hafiz-ammar-siddiqui

Post on 11-Apr-2017

150 views

Category:

Education


0 download

TRANSCRIPT

Page 1: 4-Game Architecture (Game Development - UMT Spring 2017)

GameArchitecture

FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY

Page 2: 4-Game Architecture (Game Development - UMT Spring 2017)

GameArchitecture• Game consists of threemajor steps executed in the following order repeatedly

FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY

Input Output

Basicgamearchitecture

GraphicsRenderingSoundPhysics

AnimationUserInterface

ArtificialIntelligenceNetworking

GameProcessing

Page 3: 4-Game Architecture (Game Development - UMT Spring 2017)

MainGameLoop

FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY

Page 4: 4-Game Architecture (Game Development - UMT Spring 2017)

MainGameLoop• Every game consists of a main game loopwhich performs a series of tasks every frame

•Main game loop runs continuously during the game. It processes input, updates the

game, and renders the output

FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY

ProcessInput UpdateGame RenderOutput

Maingameloop

Page 5: 4-Game Architecture (Game Development - UMT Spring 2017)

TimeandSpeedinMainGameLoop•Most of the tasks are performed within a single frame (single iteration of main game

loop)while some tasks span over multiple frames

• Frame Per Second (FPS): The number of times the main game loop is executed in one

second and it varies from system to system

• High performance systems will have higher frame rates, so game time and speed must

be consistentacross different types of systems

FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY

Page 6: 4-Game Architecture (Game Development - UMT Spring 2017)

InputandOutputinMainGameLoop• Input is read only once per frame per device but it can be processed either in single

frameor over multiple frames

• Output is rendered and drawn every frame and it is done after updating the state of

the game (after performingall the other tasks)

FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY

Page 7: 4-Game Architecture (Game Development - UMT Spring 2017)

Reference• GameEngineArchitecture- JasonGreygory

FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY