SlideShare a Scribd company logo
1 of 20
Development
6.1 Introduction
– Comparing to other phases development phase is
very small in whole development process
– Coding phase is very important
– Important aspect of game development is its
creativity
– Creativity should be applied on proper place
6.2 The development process
• In earlier days, game projects were very small and a
single programmer or small team was developing
game
• Nowadays with a power and capabilities of game
platforms, large teams had to work for the game
project
• Code developed by all members must be of high
quality and some coding standard need to be followed
• Game engines are divided into a number of distinct
types
• For a good quality code, a number of general
techniques are applied from code inception to system
integration
6.3 code quality
• With a large team, there is every possibility for members
to different coding styles
• This would affect quality of coding and its maintenance
• To ensure that coding style should be uniform
6.3.1 follow coding standard
• As a part of team, the code has to be understood
by every member
• This mandates use of standards
• The software factory model suggest the use of
code across various projects
Comments and documentation
• A comment should make the reader understand how
the code does its task rather than what it does
• Comment are made to explain what the statement of
code will have on the rest of the object
• Commenting can help preventing bugs and promote
code understanding
• Good commenting reduces the error in the code and
speeds up the code review process
• “Work in progress” in the code shown with comments
“TODO”
Naming and coding conventions
• These conventions are for two main areas:
1. Files and directory structures
2. Classes, functions and variables
– A sensible naming practice makes the purpose of
variable and functions easier to understand
– Example: bSuccess_ is a reference to the Boolean
variable
– Trailing underscore in bSuccess_ indicates that it
denotes the return value and differentiate it from
the local variable
• In C++, a class has all members private by default and a structure is a
class that has all members public
• The class naming conventions are as follows:
– Class name has a name prefix C ex. Cball
– Interface name has a name prefix I ex. Idrawable
– Structure name has a name prefix S ex. Sconfig
• The prefixes to variable scope indicates are as follows:
– Global variable ex. g_uiRefCount
– Class member ex. m_uiRefCount
– Static variable ex. s_uiRefCount
– Constant ex. c_uiInitialCount
– Enumeration ex. eStateOk
– Static member ex. ms_uiRefCount
• The prefixes to variable type indicates are as follows:
– Signed Integer i or n
– unsigned integer ui
– Signed short s
– Signed char ch
– Array a
– Pointer p
6.4 Coding priorities
• Coding priorities have to be established as a part
of technical design
• The various aspect of game to be considered are
speed, size, flexibility, portability and
maintainability
1. Speed
2. Size
3. Flexibility
4. Portability
5. Maintainability
6.5 Debugging and module completion
1. Class A
• These bugs are the most severe bugs
• These can occur during installation or crashing the game at the
beginning of the first level
2. Class B
• These bugs may not crash the game but affect the quality
• Example: failure of an event such as the gun may not fire when
used
3. Class C
• These bugs are minor bugs and can be fixed without much of
problem
• These are called cosmetic bugs
• These could be spelling mistakes or user interface glitches
• Priorities assigned according to the higher level severity
a. Logical errors
b. Programming errors
c. Data errors
• Out of the three types of errors mentioned above, programming or
code errors easiest to detect
• Instead of testing for each of the other type of errors a generic test
harness is done
6.5.1 Test harness
– Install and run the module under test in a test environment, with input
data in the expected input format
– Generate stubs to emulate the behavior of subroutine modules;
– Capture the actual outcome as generated by the unit under test and
log or display it in a usable form
– Compare the expected outcome with the actual outcome and log a
test verdict for each input test
– Tester is allowed to use all possible options in the user interface for
this
– Test harness application is integrated with the source control system
to log test results and log results are used for audit purpose
– This can also be used for regression testing, as old result can be
compared with new result to check any bugs that have been
introduced into previous working modules
– Testing harness could also be scripted, so that it can automatically run
a whole series of tests
6.6 The seven golden principles of effective design
6.6.1 Reuse
• In game development, code, design patterns are reused
• Software architecture, non functional requirement (speed, flexibility,
portability, etc.) can also be reused
• Mostly common reused classes are foundation classes
• Developer have to used all plug-ins in the early stages of the
development to make quick build+
• This enables the modules to act as black box allowing the internal
changes without affecting the rest of the system
6.6.2 Document
• Documentation is imp for overall success of software development
6.6.3 Design first before implementation
• Game design is an ongoing process
• It starts with an idea; a vision that often develops into a
concept
6.6.4 Schedule tasks
• It is difficult to go with a schedule because of many
reasons
• Non-essential tasks are identified and cut down
• A realistic schedule has to be developed with the available
resources; the various resources are as follows:
• List of reusable components
• List of tools and utilities
• People (game designer, programmers, artists, sound engineers,
internal support team)
• Hardware / software resources
6.6.5 Fix errors early
– The cost of repairing the errors are manifold, if found late then these
are fixed early
– Also the errors propagate if they are not fixed early
– Some useful tips for fixing errors are as follows:
1. Always fix the error first; often this one can correct most of the others
2. Save the file once the error is fixed, and for each change compile and
run again
3. Testing (verification of specifications) should start in the pre-
production stage itself
4. Testing should be done as often as possible by developer in
production stage before delivery
6.6.6 Control the degree of R&D
– To control the degree of research by game developers on latest
technology
– Hardware and game consoles also improve at good speed
– Since developers work on tight schedules, they will have very little time
to try out untested technologies
– For a sequel new technology can be tried
– It is advisable to have backup plan in case new technology has to be
tried/used
6.6.7 Focus on right areas for right amount of
time
– In a structured development methodology, project
review happen at specific, high impact points
involving top management
– If the development process is inefficient and slow,
products are often late-to-market over cost and
not well aligned with user needs
6.7 Five important aspects in game development
1. People
– Talented, experienced and motivated people deliver any kind
of management
– They will find right way around processes or structure where
there is disorder
2. Production Vs creativity
– Production pressure from the business is the need to deliver a
product on time and within the budget
– For this we need to be able to quantify the work and risks by
planning and rescheduling
– Creativity is the heart and soul of game development and
drives us to create better games
– It is a process of curiosity and exploration
– There are no guaranteed outcomes or fixed timeframes and
this is not acceptable from production perspective
– We need to find a way to balance both with the clear
objectives and within the boundaries of each project
3. Phases of production
1. Preproduction
• It is the most creative period of any game, where it is
decided what the game is and how to make it
• The initial stage of preproduction is exploratory and later
technology specifics have to be given for production
2. Production
• It is the period in which the game is being developed
• This is process driven and so more controlled
3. Postproduction
• It is a period in which the finished game is made into a
shippable product
• This is done in two stages: Alpha(making the gameplay fun
and balanced, therefore iterative) and beta(fixing the bug,
is process driven)
4. Skill sets
– Skill set involved in the game development are code, art and design
– Artwork is more of a deterministic discipline
– Work can be split into independent modules, hence adding more
people can complete the job faster
– This estimates can not be very accurate in case of code and design
– Because they need to respond to change requests more often, fix
bugs or deal with hidden complexity
– Hence the job con not finish faster by adding more people
5. Clients
– In games, the stakeholder is an external producer who acts as a
spokesperson for interested parties on the publishers side
– Understanding the external forces is vital for planning the strategy
and management style
– A few things that contribute to the environment in which the project
must survive are as follow-how much trust and freedom will EP
extend
6.8 The three lead balloons
1. Bad Management
– Instead of finding ways to manage people, it is better to build a
process into the team so that imposed management becomes
unnecessary
– The process should promote best practices and conceptual
integrity
– Bad management can affect the process in the following manner:
• Increase the cost and reduce the performance through bureaucratic
overhead
• Hamper the ability of the team to change or adapt to new situation
• Suppress the team’s capacity for innovation and creativity
– Good management allows flexibility, identifies what is important
– Handle the situation carefully
– Every game, every team, every company is unique
– The factor that can affect a project are the size of the team,
corporate culture, internal politics, budget limitations, physical
constraint, etc
2. Rapidly expanding features
– Give extra features that what is planned(beyond
scope) probably to increase popularity and thus sale
– The best way to manage this situation is to priorities
features and keep up the schedule
– Dos and don’ts are as follows:
• Do not write system critical code towards the end
• Represent project progress as a “% complete” of total work
• Give the schedule for lower granularity tasks for accuracy in
estimates
• In each working build, mark features that will work (enable)
and that would not be (disable) work
• Map list of classes to concepts
• Added features can be released as different versions
• Do not add any major feature after first iteration
• Defer lower priority tasks until more than 50% of the project
is complete
3. Coder never open up
– Games are creative processes that involved
interaction among multitalented people such as
coders, designers, artists and writers
– Coders are generally loners, self taught people unlike
artists who generally respect each other’s work and
work very well as a team
– If a coders has insecure feeling and does not open
up, then it will become difficult for others to work
with him/her
– Constant motivation and encouragement can boost
up their moral
– Incentives are awarded for sharing resources,
mentoring, etc to make coders work environment
comfortable

More Related Content

What's hot

Pressman ch-11-component-level-design
Pressman ch-11-component-level-designPressman ch-11-component-level-design
Pressman ch-11-component-level-design
Oliver Cheng
 
Software project management
Software project managementSoftware project management
Software project management
R A Akerkar
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
AbDul ThaYyal
 

What's hot (20)

Software project estimation
Software project estimationSoftware project estimation
Software project estimation
 
Pressman ch-11-component-level-design
Pressman ch-11-component-level-designPressman ch-11-component-level-design
Pressman ch-11-component-level-design
 
Applications of paralleL processing
Applications of paralleL processingApplications of paralleL processing
Applications of paralleL processing
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationSoftware Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
 
Final project report of a game
Final project report of a gameFinal project report of a game
Final project report of a game
 
Checkpoints of the Process
Checkpoints of the ProcessCheckpoints of the Process
Checkpoints of the Process
 
Token, Pattern and Lexeme
Token, Pattern and LexemeToken, Pattern and Lexeme
Token, Pattern and Lexeme
 
Software project management
Software project managementSoftware project management
Software project management
 
Control Flow Analysis
Control Flow AnalysisControl Flow Analysis
Control Flow Analysis
 
Chapter 6 software metrics
Chapter 6 software metricsChapter 6 software metrics
Chapter 6 software metrics
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Software maintenance
Software maintenanceSoftware maintenance
Software maintenance
 
Grid protocol architecture
Grid protocol architectureGrid protocol architecture
Grid protocol architecture
 
Design rules and usability requirements
Design rules and usability requirementsDesign rules and usability requirements
Design rules and usability requirements
 
GPU Programming
GPU ProgrammingGPU Programming
GPU Programming
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Staffing level estimation
Staffing level estimation Staffing level estimation
Staffing level estimation
 

Viewers also liked

Architektura współczesnych gier video
Architektura współczesnych gier videoArchitektura współczesnych gier video
Architektura współczesnych gier video
Adam Sawicki
 
Game Architecture and Programming
Game Architecture and ProgrammingGame Architecture and Programming
Game Architecture and Programming
Sumit Jain
 
[Ubisoft] Perforce Integration in a AAA Game Engine
[Ubisoft] Perforce Integration in a AAA Game Engine[Ubisoft] Perforce Integration in a AAA Game Engine
[Ubisoft] Perforce Integration in a AAA Game Engine
Perforce
 

Viewers also liked (14)

Core Game Design (Game Architecture)
Core Game Design (Game Architecture)Core Game Design (Game Architecture)
Core Game Design (Game Architecture)
 
What is direct X ?
What is direct X ?What is direct X ?
What is direct X ?
 
An Introduction To Game development
An Introduction To Game developmentAn Introduction To Game development
An Introduction To Game development
 
Understanding casual games
Understanding casual gamesUnderstanding casual games
Understanding casual games
 
Technical aspectof game design (Game Architecture)
Technical aspectof game design (Game Architecture)Technical aspectof game design (Game Architecture)
Technical aspectof game design (Game Architecture)
 
Introduction to Mobile Game Programming with Cocos2d-JS
Introduction to Mobile Game Programming with Cocos2d-JSIntroduction to Mobile Game Programming with Cocos2d-JS
Introduction to Mobile Game Programming with Cocos2d-JS
 
Architektura współczesnych gier video
Architektura współczesnych gier videoArchitektura współczesnych gier video
Architektura współczesnych gier video
 
Infomration & network security
Infomration & network securityInfomration & network security
Infomration & network security
 
Game Architecture and Programming
Game Architecture and ProgrammingGame Architecture and Programming
Game Architecture and Programming
 
Software testing vs. Game testing
Software testing vs. Game testingSoftware testing vs. Game testing
Software testing vs. Game testing
 
Mobile games
Mobile gamesMobile games
Mobile games
 
[Ubisoft] Perforce Integration in a AAA Game Engine
[Ubisoft] Perforce Integration in a AAA Game Engine[Ubisoft] Perforce Integration in a AAA Game Engine
[Ubisoft] Perforce Integration in a AAA Game Engine
 
Game Engine Architecture
Game Engine ArchitectureGame Engine Architecture
Game Engine Architecture
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
 

Similar to Game development (Game Architecture)

HOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEM
HOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEMHOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEM
HOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEM
RebekahSamuel2
 

Similar to Game development (Game Architecture) (20)

Lecture3.se.pptx
Lecture3.se.pptxLecture3.se.pptx
Lecture3.se.pptx
 
Software process models
Software process modelsSoftware process models
Software process models
 
Lecture 5 -6(CSC205).pptx jsksnxbbxjxksnsnz
Lecture 5 -6(CSC205).pptx jsksnxbbxjxksnsnzLecture 5 -6(CSC205).pptx jsksnxbbxjxksnsnz
Lecture 5 -6(CSC205).pptx jsksnxbbxjxksnsnz
 
How Microsoft ALM Tools Can Improve Your Bottom Line
How Microsoft ALM Tools Can Improve Your Bottom LineHow Microsoft ALM Tools Can Improve Your Bottom Line
How Microsoft ALM Tools Can Improve Your Bottom Line
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
 
HOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEM
HOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEMHOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEM
HOW TO PHYSICALLY DESIGN A COMPUTER BASED INFORMATION SYSTEM
 
Se 381 - lec 28 -- 34 - 12 jun12 - testing 1 of 2
Se 381 -  lec 28 -- 34 - 12 jun12 - testing 1 of 2Se 381 -  lec 28 -- 34 - 12 jun12 - testing 1 of 2
Se 381 - lec 28 -- 34 - 12 jun12 - testing 1 of 2
 
Expert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth EditionExpert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth Edition
 
Software Engineering : Process Models
Software Engineering : Process ModelsSoftware Engineering : Process Models
Software Engineering : Process Models
 
Chapter 2 Time boxing & agile models
Chapter 2   Time boxing & agile modelsChapter 2   Time boxing & agile models
Chapter 2 Time boxing & agile models
 
Sadchap04
Sadchap04Sadchap04
Sadchap04
 
Proj Mgmt.ppt
Proj Mgmt.pptProj Mgmt.ppt
Proj Mgmt.ppt
 
Software Development
Software DevelopmentSoftware Development
Software Development
 
agility_principles.ppt
agility_principles.pptagility_principles.ppt
agility_principles.ppt
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process Models
 
Agile Development | Agile Process Models
Agile Development | Agile Process ModelsAgile Development | Agile Process Models
Agile Development | Agile Process Models
 
"X" Driven-Development Methodologies
"X" Driven-Development Methodologies"X" Driven-Development Methodologies
"X" Driven-Development Methodologies
 
ABC of Agile (Scrum & Extreme Programming)
ABC of Agile (Scrum & Extreme Programming)ABC of Agile (Scrum & Extreme Programming)
ABC of Agile (Scrum & Extreme Programming)
 
SOFTWARE ENGINEERING
SOFTWARE ENGINEERING  SOFTWARE ENGINEERING
SOFTWARE ENGINEERING
 
Software process Models
Software process ModelsSoftware process Models
Software process Models
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

Game development (Game Architecture)

  • 2. 6.1 Introduction – Comparing to other phases development phase is very small in whole development process – Coding phase is very important – Important aspect of game development is its creativity – Creativity should be applied on proper place
  • 3. 6.2 The development process • In earlier days, game projects were very small and a single programmer or small team was developing game • Nowadays with a power and capabilities of game platforms, large teams had to work for the game project • Code developed by all members must be of high quality and some coding standard need to be followed • Game engines are divided into a number of distinct types • For a good quality code, a number of general techniques are applied from code inception to system integration
  • 4. 6.3 code quality • With a large team, there is every possibility for members to different coding styles • This would affect quality of coding and its maintenance • To ensure that coding style should be uniform 6.3.1 follow coding standard • As a part of team, the code has to be understood by every member • This mandates use of standards • The software factory model suggest the use of code across various projects
  • 5. Comments and documentation • A comment should make the reader understand how the code does its task rather than what it does • Comment are made to explain what the statement of code will have on the rest of the object • Commenting can help preventing bugs and promote code understanding • Good commenting reduces the error in the code and speeds up the code review process • “Work in progress” in the code shown with comments “TODO”
  • 6. Naming and coding conventions • These conventions are for two main areas: 1. Files and directory structures 2. Classes, functions and variables – A sensible naming practice makes the purpose of variable and functions easier to understand – Example: bSuccess_ is a reference to the Boolean variable – Trailing underscore in bSuccess_ indicates that it denotes the return value and differentiate it from the local variable
  • 7. • In C++, a class has all members private by default and a structure is a class that has all members public • The class naming conventions are as follows: – Class name has a name prefix C ex. Cball – Interface name has a name prefix I ex. Idrawable – Structure name has a name prefix S ex. Sconfig • The prefixes to variable scope indicates are as follows: – Global variable ex. g_uiRefCount – Class member ex. m_uiRefCount – Static variable ex. s_uiRefCount – Constant ex. c_uiInitialCount – Enumeration ex. eStateOk – Static member ex. ms_uiRefCount • The prefixes to variable type indicates are as follows: – Signed Integer i or n – unsigned integer ui – Signed short s – Signed char ch – Array a – Pointer p
  • 8. 6.4 Coding priorities • Coding priorities have to be established as a part of technical design • The various aspect of game to be considered are speed, size, flexibility, portability and maintainability 1. Speed 2. Size 3. Flexibility 4. Portability 5. Maintainability
  • 9. 6.5 Debugging and module completion 1. Class A • These bugs are the most severe bugs • These can occur during installation or crashing the game at the beginning of the first level 2. Class B • These bugs may not crash the game but affect the quality • Example: failure of an event such as the gun may not fire when used 3. Class C • These bugs are minor bugs and can be fixed without much of problem • These are called cosmetic bugs • These could be spelling mistakes or user interface glitches • Priorities assigned according to the higher level severity a. Logical errors b. Programming errors c. Data errors
  • 10. • Out of the three types of errors mentioned above, programming or code errors easiest to detect • Instead of testing for each of the other type of errors a generic test harness is done 6.5.1 Test harness – Install and run the module under test in a test environment, with input data in the expected input format – Generate stubs to emulate the behavior of subroutine modules; – Capture the actual outcome as generated by the unit under test and log or display it in a usable form – Compare the expected outcome with the actual outcome and log a test verdict for each input test – Tester is allowed to use all possible options in the user interface for this – Test harness application is integrated with the source control system to log test results and log results are used for audit purpose – This can also be used for regression testing, as old result can be compared with new result to check any bugs that have been introduced into previous working modules – Testing harness could also be scripted, so that it can automatically run a whole series of tests
  • 11. 6.6 The seven golden principles of effective design 6.6.1 Reuse • In game development, code, design patterns are reused • Software architecture, non functional requirement (speed, flexibility, portability, etc.) can also be reused • Mostly common reused classes are foundation classes • Developer have to used all plug-ins in the early stages of the development to make quick build+ • This enables the modules to act as black box allowing the internal changes without affecting the rest of the system 6.6.2 Document • Documentation is imp for overall success of software development
  • 12. 6.6.3 Design first before implementation • Game design is an ongoing process • It starts with an idea; a vision that often develops into a concept 6.6.4 Schedule tasks • It is difficult to go with a schedule because of many reasons • Non-essential tasks are identified and cut down • A realistic schedule has to be developed with the available resources; the various resources are as follows: • List of reusable components • List of tools and utilities • People (game designer, programmers, artists, sound engineers, internal support team) • Hardware / software resources
  • 13. 6.6.5 Fix errors early – The cost of repairing the errors are manifold, if found late then these are fixed early – Also the errors propagate if they are not fixed early – Some useful tips for fixing errors are as follows: 1. Always fix the error first; often this one can correct most of the others 2. Save the file once the error is fixed, and for each change compile and run again 3. Testing (verification of specifications) should start in the pre- production stage itself 4. Testing should be done as often as possible by developer in production stage before delivery 6.6.6 Control the degree of R&D – To control the degree of research by game developers on latest technology – Hardware and game consoles also improve at good speed – Since developers work on tight schedules, they will have very little time to try out untested technologies – For a sequel new technology can be tried – It is advisable to have backup plan in case new technology has to be tried/used
  • 14. 6.6.7 Focus on right areas for right amount of time – In a structured development methodology, project review happen at specific, high impact points involving top management – If the development process is inefficient and slow, products are often late-to-market over cost and not well aligned with user needs
  • 15. 6.7 Five important aspects in game development 1. People – Talented, experienced and motivated people deliver any kind of management – They will find right way around processes or structure where there is disorder 2. Production Vs creativity – Production pressure from the business is the need to deliver a product on time and within the budget – For this we need to be able to quantify the work and risks by planning and rescheduling – Creativity is the heart and soul of game development and drives us to create better games – It is a process of curiosity and exploration – There are no guaranteed outcomes or fixed timeframes and this is not acceptable from production perspective – We need to find a way to balance both with the clear objectives and within the boundaries of each project
  • 16. 3. Phases of production 1. Preproduction • It is the most creative period of any game, where it is decided what the game is and how to make it • The initial stage of preproduction is exploratory and later technology specifics have to be given for production 2. Production • It is the period in which the game is being developed • This is process driven and so more controlled 3. Postproduction • It is a period in which the finished game is made into a shippable product • This is done in two stages: Alpha(making the gameplay fun and balanced, therefore iterative) and beta(fixing the bug, is process driven)
  • 17. 4. Skill sets – Skill set involved in the game development are code, art and design – Artwork is more of a deterministic discipline – Work can be split into independent modules, hence adding more people can complete the job faster – This estimates can not be very accurate in case of code and design – Because they need to respond to change requests more often, fix bugs or deal with hidden complexity – Hence the job con not finish faster by adding more people 5. Clients – In games, the stakeholder is an external producer who acts as a spokesperson for interested parties on the publishers side – Understanding the external forces is vital for planning the strategy and management style – A few things that contribute to the environment in which the project must survive are as follow-how much trust and freedom will EP extend
  • 18. 6.8 The three lead balloons 1. Bad Management – Instead of finding ways to manage people, it is better to build a process into the team so that imposed management becomes unnecessary – The process should promote best practices and conceptual integrity – Bad management can affect the process in the following manner: • Increase the cost and reduce the performance through bureaucratic overhead • Hamper the ability of the team to change or adapt to new situation • Suppress the team’s capacity for innovation and creativity – Good management allows flexibility, identifies what is important – Handle the situation carefully – Every game, every team, every company is unique – The factor that can affect a project are the size of the team, corporate culture, internal politics, budget limitations, physical constraint, etc
  • 19. 2. Rapidly expanding features – Give extra features that what is planned(beyond scope) probably to increase popularity and thus sale – The best way to manage this situation is to priorities features and keep up the schedule – Dos and don’ts are as follows: • Do not write system critical code towards the end • Represent project progress as a “% complete” of total work • Give the schedule for lower granularity tasks for accuracy in estimates • In each working build, mark features that will work (enable) and that would not be (disable) work • Map list of classes to concepts • Added features can be released as different versions • Do not add any major feature after first iteration • Defer lower priority tasks until more than 50% of the project is complete
  • 20. 3. Coder never open up – Games are creative processes that involved interaction among multitalented people such as coders, designers, artists and writers – Coders are generally loners, self taught people unlike artists who generally respect each other’s work and work very well as a team – If a coders has insecure feeling and does not open up, then it will become difficult for others to work with him/her – Constant motivation and encouragement can boost up their moral – Incentives are awarded for sharing resources, mentoring, etc to make coders work environment comfortable