SlideShare a Scribd company logo
Initial Design
Introduction
• Software Architecture in general uses certain
rules, heuristics and patterns:
– 1. the problem is partitioned
– 2. interfaces created between these partitions
– 3.Overall structure is managed and the flow is made
easy
– 4.Techniques are used to interface the system to its
environment
– 5. development and delivery approaches, techniques
and tools can be properly planned and executed
• Architecture is important because of following
reasons:
– It controls complexity
– It ensures best practices are followed
– It takes care of consistency and uniformity
– It increases predictability
– It allows reuse
• 2.1.1Need for a good architecture design
– Advantage
• It describe and plan for the expected gameplay features
• It gives us a rational framework within which we can make any required
changed
– If we do not have a design, we may find ourselves frantically changing
gameplay the day before shipping which is never a good idea
– An iterative or tier-based design represented in the architecture
design is more vital for any product that has to incorporate new or
untired feature
– Game design has to satisfy many stakeholder, such as high level
management, marketing department and peers of the game designer
– The technical design acts as a roadmap and also increases project
visibility to generate an overall idea of how to work with project plan.
2.2 Game and hardware abstraction
The architecture has to deal with both game abstraction and
hardware abstraction interface
2.2.1 Game Abstraction
• Abstraction emphasizes on the idea and properties rather than how it
works.
• It greatly reduces the complexity in large programs by hiding the
irrelevant details.
• The game abstraction is the way by which the game object interact.
2.2.2 Hardware Abstraction
– For every platform of different hardware
configuration with different graphics cards, sound
card, etc.
– These codes have to be written and linked through
the common interface
– Hardware abstraction interface will act as an
interface between application and the hardware
• Graphics hardware abstraction
1. DirectX is a set of application programming
interface(APIs) that will call the appropriate
driver in the hardware and also handle all
multimedia tasks.
– A graphical surface in DirectX can be created in
either system(local) memory or video memory.
2. OpenGL which provides extensive cross-platform
graphics library.
– Example screen-handling library can support a
common range of resolutions, double or triple
buffering, bitmapped and True Type fonts, and
sprites.
Sound hardware abstraction
– Similar to graphics object, we have sound object
– The sound card object is a single object accessed
through an initialization function
– The member functions of the sound card object
are: playing, pausing, and stopping: changing
volume and frequency ; and specifying the
position of the sound in three- dimensional space.
– No duplicate sound is made, and any new objects
created refer to original data
• COTS
– It reduces the burden on programmers
– All the basic functionality- the sound system,
graphics engine, music, saving of game, AI,
artwork, etc. are avsailable as componet off the
shelf(COTS).
2.3 The Problem Domain
 Game design transferred to technical specification
that the game developer will understand to code,
enhance, debug and maintain.
 Choose best design among many altenatives
1. Simple feature:
2. Iteration for good result:
3. Simple runtime code:
4. Data-driven code:
5. Hard to debug data-driven engines:
6. Game engines and graphics system:
• Tiers of game Architecture
– There are four tier of game architecture
1. Input-Output devices:
o large amount of data from i/o devices generated. i.e. screaming
2. Device APIs:
o data scream generated needs to processed by one or more engines,
like graphics engine, i/p manager, sound engine,etc.
3. Main:
o CPU processing time is mostly spent on marshalling the processed
data from the game engines and performing general purpose logic.
o Smaller portion of the frame are used, as they are mostly devoted
to physics, animation or graphics.
4. Data:
o Data has been processed by various engines, marshaled by CPU and
incorporated with distinguishing features by API and gameplay code
o It has to be streamed out to the video display console for creating
colorful graphics and giving a visual appeal. This process called as
write streaming or rendering.
o
Input-Output
Devices
-Keyboard
-Joystick
-Mouse
-Monitor or
display unit
Figure: Four tier of game architecture
Device APIs
-Graphics engine
- Input manager
-Sound engine
Main
- Physics
- Game
-AI
Data
-User data
- Game world data
• 2.4.1 Use of good middleware
– APIs used for physics, audio, animation, facial animation,
network transport and various other systems.
– Middleware vendors can keep the cost lower than the
developers themselves making the same code.
– Vendors can afford to keep larger, more experienced teams
working on a given piece of functionality as compared to
independent game developers because the vendors can sell the
piece of code to many developers
– Middleware offers structure
– There is a trade off here. When we use a middleware, we need
to accept that technology’s inflexibility, and modify our game
design to suit it
– It is stable and has a well documented and stable public API
– Once the game is finished, we can decide on what packages to
keep and what to replace as we move forward
2.5 Tokenization
– Tokens are discrete elements that are directly or indirectly
controlled and manipulated by the player
– All the games can be describe in terms of players and
tokens.
– Tokens are conceptual objects which will translated into
programming language objects.
– These might include a player’s avatar, weapons, cards,
counters, metal figures , poker chips and letters of the
alphabet.
– These tokens can be arranged in a form of hierarchy with
the game world at its top.
– Every token has to be part of the game world token.]
– Example: the player’s avatar token acts as a user interface
between the player and the game.
2.5.1 Tokenization of Pong
o Pong is earliest 2D graphics video game released by a firm
named Atari Incorporated in 1972.
o score of both players shown in the top of the screen
o Pong has visible elements such as bat, ball, wall and goal.
o Token are arranged in hierarchical structure (class
diagram).
Bat Ball Wall Goal Score
Bat X - - - -
Ball Defection X - - -
Wall Stop Defection X - -
Goal X Triggers goal event X X X
Score X X X Goal Score X
X: denotes that the interaction is not considered in the game of pong
-: denotes symmetric interaction
Fig: Token-interaction matrix
1. Symmetric interaction:
 If interaction is same in both the ways.
 Ex: bat-ball, ball-bat
2. Asymmetric Interaction:
 This interaction depends on the direction
 Ex: the goal increments the score by 1, whereas
the score increment need not be caused by the
goal.
Fig: Sequence of events that occur when a goal is scored
Collision
event (ball-
goal area)
Goal event
Game-world
token
Reset (bat,
ball) event
Continue
play
Score event End of game
• Token interaction matrix also comes in handy when
deciding the object oriented architecture.
• We need to decide which of the features would be
considered in the interaction.
• We plan to add graphics, then CGameWorld, class will
as a container.
2.5.2 State transition and properties
 Token will not instantaneously change from one state
to another
 It takes some time and follows the transformation
process.
 i.e. it takes a finite amount of time to reach a
transitional state.
 Mostly token responds to only one event at a time
 Handling collision event: to sum the collision vectors
to produce a net result
 For above result, one has to keep a track of all
collision members
 Change in a design and add more tokens
 This shows architecture is not well structured
• The architecture should be flexible enough to add or remove
tokens.
• Maintainability and expandability are the main goals of
design
• Adding a new token should create minimal changes to the
code (hard architecture) and majority of changes have to
be added in the data the drives the game (soft architecture)
• architecture encompasses the structure (component and
their interactions) and the data flow
• Analysis various problems system architect develop
architectural model
• Architectural design breaks the game into subsystems
which are built in stages
• “Hard” and “soft” architecture
– Hard-> horizontal solution
• It is a architectural model in which subsystems interface with
the computer hardware and the player (i/p & o/p interface)
• It uses standard API’s such as DirectX, SDL, OpenGL and so
remains almost static
– Soft-> vertical solution
• It actually makes a game
• It is domain specific and is generally not reusable between
game projects
• As we progress a game, the code becomes less generic and
more specific
• Eg. Level-loading games , it was required to virtually load the
soft architecture of the entire level and configure it at
runtime
• How to solve a the problem with soft architecture
– Best way is assume a token has a set of properties that are
passed on along with the event
– When the collision event occurs, all the properties of the token
that are involved in the collision are stored in the net collision
event.
– This effectively frees us from the dependencies on the collision
objects
– Initially, we think all possible properties, but when design
stabilizes we can remove the unused properties
– Designing an extensive set of events, states, properties and
transitions can reduce the token interaction dependencies
– So we can creates a more structured architecture
2.5.3 Best practices and points to remember
– The enterprise applications do not prepare one for programming game
– Because games are such specialized applications, the it is nearly
impossible to give any one method for all
– One model is best for one and useless for other, it is very difficult to
suggest a common model that works perfectly well for all
– Also theirs is no such things as an “industry standard” defined for the
texture, mesh, level, sound or animation formats
– Each programmer just put his/her idea or uses whatever is convenient for
the platform.
– Following things must be kept in mind by programmer while development
1. Use simple formats that you are familiar with. Do not worry about how
they would work in larger projects. Use free fonts.
2. Do not worry about plug-ins, editors etc
3. When the first working model is ready, consider other elements, and
then iterate

More Related Content

PPTX
Initial Architectural Design (Game Architecture)
PPTX
Technical aspectof game design (Game Architecture)
PPT
Core Game Design (Game Architecture)
PPTX
Game development (Game Architecture)
PDF
Game Development workshop with Unity3D.
PPTX
Game optimization techniques - Most Commons
PDF
Introduction to Game Design
PDF
06. Game Architecture
Initial Architectural Design (Game Architecture)
Technical aspectof game design (Game Architecture)
Core Game Design (Game Architecture)
Game development (Game Architecture)
Game Development workshop with Unity3D.
Game optimization techniques - Most Commons
Introduction to Game Design
06. Game Architecture

What's hot (20)

PPT
Fundamentals of Game Design - Ch2
PPTX
Introduction to Game Development and the Game Industry
PPTX
First-person Shooters
PPTX
Game Architecture and Programming
PPTX
Design phase of game development of unity 2d game
PPTX
Phases of game development
PPTX
Building blocks (Game Architecture)
PPTX
Game development
PPTX
Proposal of 3d GAME Final Year Project
DOCX
The complete srs documentation of our developed game.
PPTX
Software Engineer- A unity 3d Game
PDF
Making a Game Design Document
PPTX
Project presentation FPS
PDF
Introduction to Game Development
PPTX
Final year project presentation
PPTX
Software Engineering Process Models
PPTX
Game development
PPSX
An Introduction To Game development
PPTX
Final Year Game Project Presentation
PPTX
Unreal Engine (For Creating Games) Presentation
Fundamentals of Game Design - Ch2
Introduction to Game Development and the Game Industry
First-person Shooters
Game Architecture and Programming
Design phase of game development of unity 2d game
Phases of game development
Building blocks (Game Architecture)
Game development
Proposal of 3d GAME Final Year Project
The complete srs documentation of our developed game.
Software Engineer- A unity 3d Game
Making a Game Design Document
Project presentation FPS
Introduction to Game Development
Final year project presentation
Software Engineering Process Models
Game development
An Introduction To Game development
Final Year Game Project Presentation
Unreal Engine (For Creating Games) Presentation
Ad

Similar to Initial design (Game Architecture) (20)

PDF
PDF
201001162_report
PDF
Climberreport
PPT
3.4 game architecture
DOCX
Game software development trends
PPT
Synapseindia dot net development about programming
PPT
3.3 programming fundamentals
PPTX
Video Games Style Minitheme by Slidesgo.pptx
PPTX
Introduction to Game Development
PDF
Mono for Game Developers - AltDevConf 2012
PPT
My Presentation.ppt
PDF
Multiplayer Networking Game
PPTX
98 374 Lesson 06-slides
PDF
Lecture 8 - What is Game AI? Final Thoughts
PPTX
SynapseIndia dotnet debugging development process
PDF
Car Game - Final Year Project
PDF
Car Game Final Year Project
PPTX
98 374 Lesson 03-slides
PDF
Accepting the Challenges in Devising Video Game Leeway and Contrivance
PPT
help session guide for graphic design learners
201001162_report
Climberreport
3.4 game architecture
Game software development trends
Synapseindia dot net development about programming
3.3 programming fundamentals
Video Games Style Minitheme by Slidesgo.pptx
Introduction to Game Development
Mono for Game Developers - AltDevConf 2012
My Presentation.ppt
Multiplayer Networking Game
98 374 Lesson 06-slides
Lecture 8 - What is Game AI? Final Thoughts
SynapseIndia dotnet debugging development process
Car Game - Final Year Project
Car Game Final Year Project
98 374 Lesson 03-slides
Accepting the Challenges in Devising Video Game Leeway and Contrivance
help session guide for graphic design learners
Ad

Recently uploaded (20)

PDF
Sports Quiz easy sports quiz sports quiz
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
RMMM.pdf make it easy to upload and study
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
master seminar digital applications in india
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Computing-Curriculum for Schools in Ghana
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Insiders guide to clinical Medicine.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Complications of Minimal Access Surgery at WLH
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Sports Quiz easy sports quiz sports quiz
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
RMMM.pdf make it easy to upload and study
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
master seminar digital applications in india
Microbial disease of the cardiovascular and lymphatic systems
Computing-Curriculum for Schools in Ghana
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O7-L3 Supply Chain Operations - ICLT Program
Insiders guide to clinical Medicine.pdf
Anesthesia in Laparoscopic Surgery in India
Complications of Minimal Access Surgery at WLH
PPH.pptx obstetrics and gynecology in nursing
VCE English Exam - Section C Student Revision Booklet
Pharmacology of Heart Failure /Pharmacotherapy of CHF
O5-L3 Freight Transport Ops (International) V1.pdf
Microbial diseases, their pathogenesis and prophylaxis

Initial design (Game Architecture)

  • 2. Introduction • Software Architecture in general uses certain rules, heuristics and patterns: – 1. the problem is partitioned – 2. interfaces created between these partitions – 3.Overall structure is managed and the flow is made easy – 4.Techniques are used to interface the system to its environment – 5. development and delivery approaches, techniques and tools can be properly planned and executed
  • 3. • Architecture is important because of following reasons: – It controls complexity – It ensures best practices are followed – It takes care of consistency and uniformity – It increases predictability – It allows reuse
  • 4. • 2.1.1Need for a good architecture design – Advantage • It describe and plan for the expected gameplay features • It gives us a rational framework within which we can make any required changed – If we do not have a design, we may find ourselves frantically changing gameplay the day before shipping which is never a good idea – An iterative or tier-based design represented in the architecture design is more vital for any product that has to incorporate new or untired feature – Game design has to satisfy many stakeholder, such as high level management, marketing department and peers of the game designer – The technical design acts as a roadmap and also increases project visibility to generate an overall idea of how to work with project plan.
  • 5. 2.2 Game and hardware abstraction The architecture has to deal with both game abstraction and hardware abstraction interface 2.2.1 Game Abstraction • Abstraction emphasizes on the idea and properties rather than how it works. • It greatly reduces the complexity in large programs by hiding the irrelevant details. • The game abstraction is the way by which the game object interact.
  • 6. 2.2.2 Hardware Abstraction – For every platform of different hardware configuration with different graphics cards, sound card, etc. – These codes have to be written and linked through the common interface – Hardware abstraction interface will act as an interface between application and the hardware
  • 7. • Graphics hardware abstraction 1. DirectX is a set of application programming interface(APIs) that will call the appropriate driver in the hardware and also handle all multimedia tasks. – A graphical surface in DirectX can be created in either system(local) memory or video memory. 2. OpenGL which provides extensive cross-platform graphics library. – Example screen-handling library can support a common range of resolutions, double or triple buffering, bitmapped and True Type fonts, and sprites.
  • 8. Sound hardware abstraction – Similar to graphics object, we have sound object – The sound card object is a single object accessed through an initialization function – The member functions of the sound card object are: playing, pausing, and stopping: changing volume and frequency ; and specifying the position of the sound in three- dimensional space. – No duplicate sound is made, and any new objects created refer to original data
  • 9. • COTS – It reduces the burden on programmers – All the basic functionality- the sound system, graphics engine, music, saving of game, AI, artwork, etc. are avsailable as componet off the shelf(COTS).
  • 10. 2.3 The Problem Domain  Game design transferred to technical specification that the game developer will understand to code, enhance, debug and maintain.  Choose best design among many altenatives 1. Simple feature: 2. Iteration for good result: 3. Simple runtime code: 4. Data-driven code: 5. Hard to debug data-driven engines: 6. Game engines and graphics system:
  • 11. • Tiers of game Architecture – There are four tier of game architecture 1. Input-Output devices: o large amount of data from i/o devices generated. i.e. screaming 2. Device APIs: o data scream generated needs to processed by one or more engines, like graphics engine, i/p manager, sound engine,etc. 3. Main: o CPU processing time is mostly spent on marshalling the processed data from the game engines and performing general purpose logic. o Smaller portion of the frame are used, as they are mostly devoted to physics, animation or graphics. 4. Data: o Data has been processed by various engines, marshaled by CPU and incorporated with distinguishing features by API and gameplay code o It has to be streamed out to the video display console for creating colorful graphics and giving a visual appeal. This process called as write streaming or rendering. o
  • 12. Input-Output Devices -Keyboard -Joystick -Mouse -Monitor or display unit Figure: Four tier of game architecture Device APIs -Graphics engine - Input manager -Sound engine Main - Physics - Game -AI Data -User data - Game world data
  • 13. • 2.4.1 Use of good middleware – APIs used for physics, audio, animation, facial animation, network transport and various other systems. – Middleware vendors can keep the cost lower than the developers themselves making the same code. – Vendors can afford to keep larger, more experienced teams working on a given piece of functionality as compared to independent game developers because the vendors can sell the piece of code to many developers – Middleware offers structure – There is a trade off here. When we use a middleware, we need to accept that technology’s inflexibility, and modify our game design to suit it – It is stable and has a well documented and stable public API – Once the game is finished, we can decide on what packages to keep and what to replace as we move forward
  • 14. 2.5 Tokenization – Tokens are discrete elements that are directly or indirectly controlled and manipulated by the player – All the games can be describe in terms of players and tokens. – Tokens are conceptual objects which will translated into programming language objects. – These might include a player’s avatar, weapons, cards, counters, metal figures , poker chips and letters of the alphabet. – These tokens can be arranged in a form of hierarchy with the game world at its top. – Every token has to be part of the game world token.] – Example: the player’s avatar token acts as a user interface between the player and the game.
  • 15. 2.5.1 Tokenization of Pong o Pong is earliest 2D graphics video game released by a firm named Atari Incorporated in 1972. o score of both players shown in the top of the screen o Pong has visible elements such as bat, ball, wall and goal. o Token are arranged in hierarchical structure (class diagram).
  • 16. Bat Ball Wall Goal Score Bat X - - - - Ball Defection X - - - Wall Stop Defection X - - Goal X Triggers goal event X X X Score X X X Goal Score X X: denotes that the interaction is not considered in the game of pong -: denotes symmetric interaction Fig: Token-interaction matrix
  • 17. 1. Symmetric interaction:  If interaction is same in both the ways.  Ex: bat-ball, ball-bat 2. Asymmetric Interaction:  This interaction depends on the direction  Ex: the goal increments the score by 1, whereas the score increment need not be caused by the goal.
  • 18. Fig: Sequence of events that occur when a goal is scored Collision event (ball- goal area) Goal event Game-world token Reset (bat, ball) event Continue play Score event End of game
  • 19. • Token interaction matrix also comes in handy when deciding the object oriented architecture. • We need to decide which of the features would be considered in the interaction. • We plan to add graphics, then CGameWorld, class will as a container.
  • 20. 2.5.2 State transition and properties  Token will not instantaneously change from one state to another  It takes some time and follows the transformation process.  i.e. it takes a finite amount of time to reach a transitional state.  Mostly token responds to only one event at a time  Handling collision event: to sum the collision vectors to produce a net result  For above result, one has to keep a track of all collision members  Change in a design and add more tokens  This shows architecture is not well structured
  • 21. • The architecture should be flexible enough to add or remove tokens. • Maintainability and expandability are the main goals of design • Adding a new token should create minimal changes to the code (hard architecture) and majority of changes have to be added in the data the drives the game (soft architecture) • architecture encompasses the structure (component and their interactions) and the data flow • Analysis various problems system architect develop architectural model • Architectural design breaks the game into subsystems which are built in stages
  • 22. • “Hard” and “soft” architecture – Hard-> horizontal solution • It is a architectural model in which subsystems interface with the computer hardware and the player (i/p & o/p interface) • It uses standard API’s such as DirectX, SDL, OpenGL and so remains almost static – Soft-> vertical solution • It actually makes a game • It is domain specific and is generally not reusable between game projects • As we progress a game, the code becomes less generic and more specific • Eg. Level-loading games , it was required to virtually load the soft architecture of the entire level and configure it at runtime
  • 23. • How to solve a the problem with soft architecture – Best way is assume a token has a set of properties that are passed on along with the event – When the collision event occurs, all the properties of the token that are involved in the collision are stored in the net collision event. – This effectively frees us from the dependencies on the collision objects – Initially, we think all possible properties, but when design stabilizes we can remove the unused properties – Designing an extensive set of events, states, properties and transitions can reduce the token interaction dependencies – So we can creates a more structured architecture
  • 24. 2.5.3 Best practices and points to remember – The enterprise applications do not prepare one for programming game – Because games are such specialized applications, the it is nearly impossible to give any one method for all – One model is best for one and useless for other, it is very difficult to suggest a common model that works perfectly well for all – Also theirs is no such things as an “industry standard” defined for the texture, mesh, level, sound or animation formats – Each programmer just put his/her idea or uses whatever is convenient for the platform. – Following things must be kept in mind by programmer while development 1. Use simple formats that you are familiar with. Do not worry about how they would work in larger projects. Use free fonts. 2. Do not worry about plug-ins, editors etc 3. When the first working model is ready, consider other elements, and then iterate