SlideShare a Scribd company logo
1 of 21
Game
Programming
Help
Content for Game programming:


Introduction to Game programming.



Different types of game



Different programming language for Game



Different programming language strength and weakness for Game:



Game development tools



Various Game programming language.



Flowchart for Game development.



Designing a Game and the Game Engine



Game design Heart



Game Design Techniques



Game design reality check



Magic Formula:



C++ Source code for Tic Tac Toe game



References:



For further Info.
Introduction:
Game programming language:
Game programming language is the software development for video games and
is a subset of the game development. It requires the substantial skill in the
software engineering. Game programming
required specialization in the
following areas to create game:
Simulation
Computer Graphics
Stage Design
Physics
Audio Programming
Input
Artificial intelligence
Different types of Games:
DOOM-like first-person games—These games are full 3D and can view
them from the character’s perspective.
Sports games—Sports games can be either 2D or 3D.
Arcade/shoot-up/platform—These games are your typical Asteroids,
and Jazz Jackrabbit type stuff.
Mechanical simulations—These games encompass any kind of driving,
flying, boating, racing, and tank-battle simulation,
Ecosystem simulations—This is really a new kind of game that has no
real-world analog —other than the real world itself.
Different programming language for Game:
Computer and video games programming are written primarily in:

C
C++
Assembly language
Various script languages are used for the generation of content
such as game play and especially AI:

Ruby
Lua
Python
Different programming language strength
and weakness for Game:
Language
Assembly

C

C++

Strengths

Weaknesses

Potentially minimal CPU overhead

Error-prone, slow development, difficult to
learn, not portable

Widely known, numerous tools

Lack of object-oriented functionality,
difficult for large projects or multiple
platforms

Development costs of manual memory
Object-oriented, widely used, numerous tools management, "boilerplate" code, and
potentially long compilation times
Generally limited to Microsoft platforms
(Windows and Xbox),garbage
collection overhead, easily reverseengineered

C#

Object-oriented, automatic memory
management, offers reflection

Java

Lack of user-defined value-types,garbage
Object-oriented, automatic memory
collection overhead, memory overhead,
management, widely portable, offers reflection unavailable on major gaming consoles,
easily reverse-engineered
Games development tools:
Game development tool is a software application which facilitates
the making of the Game(Computer or video Games).

For example:IDE and 3D graphics modelling are game tools which are COTS
product.
2D and 3D package ( Blender, GIMP, Photoshop and3D Studio
Max) are used for view and modification of assets.
3D models, textures are used for the conversion of assets into
required format for the Game.
Various Game Programming language :
•Scratch programming language
•Squeak Smalltalk programming language
•Kodu programming language

•Greenfoot programming language
•Kojo programming language
•Unity programming language
•Guido Van Robot programming language

•Hackety programming language
•Laby programming language
•Illumination Software Creator programming language
•xKarel programming language
Flowchart for Game development
Designing a Game:
Computer Science
Art
Music
Business
Marketing

The Game Engine:
Graphics & Animation
Physics
Controller Interaction
AI Primitives
Sound
Networking
Scripting system
Game Design Heart
Game Design Techniques:
Game design reality check
Magic Formula:
C++ Source code for Tic Tac Toe game
#include <iostream>
using namespace std;
char square[10] = {'o','1','2','3','4','5','6','7','8','9'};
int checkwin();
void board();
int main()
{
Int player = 1,i,choice;
char mark;
do
{
board();
player=(player%2)?1:2;
cout << "Player " << player << ", enter a number: ";
cin >> choice;
mark=(player == 1) ? 'X' : 'O';
if (choice == 1 && square[1] == '1')
square[1] = mark;
else if (choice == 2 && square[2] == '2')
square[2] = mark;
else if (choice == 3 && square[3] == '3')
square[3] = mark;
else if (choice == 4 && square[4] == '4')
square[4] = mark;
else if (choice == 5 && square[5] == '5')
square[5] = mark;
else if (choice == 6 && square[6] == '6')
square[6] = mark;
else if (choice == 7 && square[7] == '7')
square[7] = mark;
else if (choice == 8 && square[8] == '8')
square[8] = mark;
else if (choice == 9 && square[9] == '9')
square[9] = mark;
else
{
cout<<"Invalid move ";
player--;
cin.ignore();
cin.get();
}
i=checkwin();
player++;

}
while(i==-1);
board();
if(i==1)
cout<<"==>aPlayer "<<--player<<" win ";
else
cout<<"==>aGame draw";
cin.ignore();
cin.get();
return 0;
}
int checkwin()
{
if (square[1] == square[2] && square[2] == square[3])
return 1;
else if (square[4] == square[5] && square[5] == square[6])
return 1;
else if (square[7] == square[8] && square[8] == square[9])
return 1;
else if (square[1] == square[4] && square[4] == square[7])
return 1;
else if (square[2] == square[5] && square[5] == square[8])
return 1;
else if (square[3] == square[6] && square[6] == square[9])
return 1;
else if (square[1] == square[5] && square[5] == square[9])
return 1;
else if (square[3] == square[5] && square[5] == square[7])
return 1;
else if (square[1] != '1' && square[2] != '2' && square[3] != '3‘ &&
square[4] != '4‘ && square[5] != '5‘ && square[6] != '6‘ && square[7] != '7'
&& square[8] != '8' && square[9] != '9')
return 0;
else
return -1; }

void board()
{
system("cls");
cout << "nntTic Tac Toenn";
cout << "Player 1 (X) - Player 2 (O)“ << endl << endl;
cout << endl; cout << " | | " << endl;
cout << " " << square[1] << " | " << square[2] << " | " << square[3] << endl;
cout << "_____|_____|_____" << endl;
cout << " | | " << endl;
cout << " " << square[4] << " | " << square[5] << " | " << square[6] << endl;
cout << "_____|_____|_____" << endl;
cout << " | | " << endl;
cout << " " << square[7] << " | " << square[8] << " | " << square[9] << endl;
cout << " | | " << endl << endl;
}
Image for the Tic Tac Toe:
References:
 Game Design (2nd ed.). Thomson Course Technology.

Moore, Michael E.; Novak, Jeannie (2010). Game Industry Career Guide.
Evans, Richard (2002). Rabin, Steve, ed. AI Game Programming Wisdom.

External Link:
Game Developer Magazine official site
For further Info :
Read more about game programming
http://www.assignmenthelp.net/game/game_programming_help
+1-617-874-1011 (USA)

+44-117-230-1145 (UK)
+61-7-5641-0117 (AUS)
support@assignmenthelp.net

More Related Content

What's hot

Game development Pre-Production
Game development Pre-ProductionGame development Pre-Production
Game development Pre-ProductionKevin Duggan
 
Game development life cycle
Game development life cycleGame development life cycle
Game development life cycleSarah Alazab
 
LAFS SVI Level 7 - Game Publishing
LAFS SVI Level 7 - Game PublishingLAFS SVI Level 7 - Game Publishing
LAFS SVI Level 7 - Game PublishingDavid Mullich
 
inlusio | game development process
inlusio | game development processinlusio | game development process
inlusio | game development processTj'ièn Twijnstra
 
Game Development Project Management/Concept
Game Development Project Management/ConceptGame Development Project Management/Concept
Game Development Project Management/ConceptKevin Duggan
 
Design phase of game development of unity 2d game
Design phase of game development of unity 2d game Design phase of game development of unity 2d game
Design phase of game development of unity 2d game Muhammad Maaz Irfan
 
GameSalad Weekend Intensive
GameSalad Weekend Intensive GameSalad Weekend Intensive
GameSalad Weekend Intensive Lynne Watanabe
 
Hybrid Game Development with GameSalad
Hybrid Game Development with GameSaladHybrid Game Development with GameSalad
Hybrid Game Development with GameSaladmirahman
 
Skills You Need to Be a Video Game Developer
Skills You Need to Be a Video Game DeveloperSkills You Need to Be a Video Game Developer
Skills You Need to Be a Video Game DeveloperMSBCollege
 
06. Game Architecture
06. Game Architecture06. Game Architecture
06. Game ArchitectureAmin Babadi
 
Introduction to game development
Introduction to game developmentIntroduction to game development
Introduction to game developmentGaetano Bonofiglio
 
Game salad presentation_2012
Game salad presentation_2012Game salad presentation_2012
Game salad presentation_2012Byron Mitchell
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game DevelopmentiTawy Community
 
Roles in the gaming industry
Roles in the gaming industryRoles in the gaming industry
Roles in the gaming industrymissstevenson01
 

What's hot (20)

Phases of game development
Phases of game developmentPhases of game development
Phases of game development
 
A Gaming Company Structure
A Gaming Company StructureA Gaming Company Structure
A Gaming Company Structure
 
Game development Pre-Production
Game development Pre-ProductionGame development Pre-Production
Game development Pre-Production
 
Game development life cycle
Game development life cycleGame development life cycle
Game development life cycle
 
LAFS SVI Level 7 - Game Publishing
LAFS SVI Level 7 - Game PublishingLAFS SVI Level 7 - Game Publishing
LAFS SVI Level 7 - Game Publishing
 
inlusio | game development process
inlusio | game development processinlusio | game development process
inlusio | game development process
 
Game Development Project Management/Concept
Game Development Project Management/ConceptGame Development Project Management/Concept
Game Development Project Management/Concept
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
 
Game dev process
Game dev processGame dev process
Game dev process
 
Design phase of game development of unity 2d game
Design phase of game development of unity 2d game Design phase of game development of unity 2d game
Design phase of game development of unity 2d game
 
GameSalad Weekend Intensive
GameSalad Weekend Intensive GameSalad Weekend Intensive
GameSalad Weekend Intensive
 
Hybrid Game Development with GameSalad
Hybrid Game Development with GameSaladHybrid Game Development with GameSalad
Hybrid Game Development with GameSalad
 
Skills You Need to Be a Video Game Developer
Skills You Need to Be a Video Game DeveloperSkills You Need to Be a Video Game Developer
Skills You Need to Be a Video Game Developer
 
06. Game Architecture
06. Game Architecture06. Game Architecture
06. Game Architecture
 
Introduction to game development
Introduction to game developmentIntroduction to game development
Introduction to game development
 
Game salad presentation_2012
Game salad presentation_2012Game salad presentation_2012
Game salad presentation_2012
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
 
What is game development
What is game developmentWhat is game development
What is game development
 
Roles in the gaming industry
Roles in the gaming industryRoles in the gaming industry
Roles in the gaming industry
 
LO1 - Lesson 7 - Hardware
LO1 - Lesson 7 - HardwareLO1 - Lesson 7 - Hardware
LO1 - Lesson 7 - Hardware
 

Viewers also liked (20)

Significance of Language Skills in the Games Industry and how to motive stude...
Significance of Language Skills in the Games Industry and how to motive stude...Significance of Language Skills in the Games Industry and how to motive stude...
Significance of Language Skills in the Games Industry and how to motive stude...
 
Invent your own computer games with python
Invent your own computer games with pythonInvent your own computer games with python
Invent your own computer games with python
 
Forte language games for teaching theory
Forte language games for teaching theoryForte language games for teaching theory
Forte language games for teaching theory
 
LANGUAGE GAMES
LANGUAGE GAMESLANGUAGE GAMES
LANGUAGE GAMES
 
Langevo.com
Langevo.comLangevo.com
Langevo.com
 
Rules-of-the-game
Rules-of-the-gameRules-of-the-game
Rules-of-the-game
 
Lexical games
Lexical gamesLexical games
Lexical games
 
Student Callers Powerpoint Presentation
Student Callers Powerpoint PresentationStudent Callers Powerpoint Presentation
Student Callers Powerpoint Presentation
 
Language Games
Language GamesLanguage Games
Language Games
 
Lexical games
Lexical gamesLexical games
Lexical games
 
الألعاب اللغوية
الألعاب اللغويةالألعاب اللغوية
الألعاب اللغوية
 
Tic tac toe
Tic tac toeTic tac toe
Tic tac toe
 
Using games in teaching
Using games in teachingUsing games in teaching
Using games in teaching
 
Board games ppt
Board games pptBoard games ppt
Board games ppt
 
TIC TAC TOE
TIC TAC TOETIC TAC TOE
TIC TAC TOE
 
Tic tac toe game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
 
Math Puzzle Game By Assembly Language
Math Puzzle Game By Assembly LanguageMath Puzzle Game By Assembly Language
Math Puzzle Game By Assembly Language
 
Game analysis - Transactional Analysis
Game analysis - Transactional AnalysisGame analysis - Transactional Analysis
Game analysis - Transactional Analysis
 
Management games
Management gamesManagement games
Management games
 
Educational Games
Educational GamesEducational Games
Educational Games
 

Similar to Game programming-help

Tic tac toe on c++ project
Tic tac toe on c++ projectTic tac toe on c++ project
Tic tac toe on c++ projectUtkarsh Aggarwal
 
Tic tac toe c++ programing
Tic tac toe c++ programingTic tac toe c++ programing
Tic tac toe c++ programingKrishna Agarwal
 
Data Driven Game development
Data Driven Game developmentData Driven Game development
Data Driven Game developmentKostas Anagnostou
 
New Tools for a More Functional C++
New Tools for a More Functional C++New Tools for a More Functional C++
New Tools for a More Functional C++Sumant Tambe
 
Please follow the data 1) For Line 23 In the IF - Condition yo.pdf
Please follow the data 1) For Line 23 In the IF - Condition yo.pdfPlease follow the data 1) For Line 23 In the IF - Condition yo.pdf
Please follow the data 1) For Line 23 In the IF - Condition yo.pdfinfo382133
 
2 lecture (gdd, responsibilites, level of game) 18 1-2021
2 lecture (gdd, responsibilites, level of game) 18 1-20212 lecture (gdd, responsibilites, level of game) 18 1-2021
2 lecture (gdd, responsibilites, level of game) 18 1-2021Durgesh Pandey
 
Java term project final report
Java term project final reportJava term project final report
Java term project final reportJiwon Han
 
Lecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_processLecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_processSayed Ahmed
 
#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdf#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdfaquacareser
 
#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdf#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdfaquapariwar
 
Parallel Futures of a Game Engine
Parallel Futures of a Game EngineParallel Futures of a Game Engine
Parallel Futures of a Game EngineJohan Andersson
 
Ludocore: A Logical Game Engine for Modeling Videogames
Ludocore: A Logical Game Engine for Modeling VideogamesLudocore: A Logical Game Engine for Modeling Videogames
Ludocore: A Logical Game Engine for Modeling Videogamesrndmcnlly
 
C PROGRAM CODE FOR SNAKE AND LADDER GAME
C PROGRAM CODE FOR SNAKE AND LADDER GAMEC PROGRAM CODE FOR SNAKE AND LADDER GAME
C PROGRAM CODE FOR SNAKE AND LADDER GAMEAbarajitha3
 
Game Design Document - Step by Step Guide
Game Design Document - Step by Step GuideGame Design Document - Step by Step Guide
Game Design Document - Step by Step GuideDevBatch Inc.
 
Knock Knock on GameDev Gate
Knock Knock on GameDev GateKnock Knock on GameDev Gate
Knock Knock on GameDev GateBeMyApp
 
Knock knock on GameDev gateway! - Introduction to Game development
Knock knock on GameDev gateway! - Introduction to Game developmentKnock knock on GameDev gateway! - Introduction to Game development
Knock knock on GameDev gateway! - Introduction to Game developmentMamdouh Tarabishi
 

Similar to Game programming-help (20)

Tic tac toe on c++ project
Tic tac toe on c++ projectTic tac toe on c++ project
Tic tac toe on c++ project
 
Tic tac toe c++ programing
Tic tac toe c++ programingTic tac toe c++ programing
Tic tac toe c++ programing
 
Data Driven Game development
Data Driven Game developmentData Driven Game development
Data Driven Game development
 
New Tools for a More Functional C++
New Tools for a More Functional C++New Tools for a More Functional C++
New Tools for a More Functional C++
 
Please follow the data 1) For Line 23 In the IF - Condition yo.pdf
Please follow the data 1) For Line 23 In the IF - Condition yo.pdfPlease follow the data 1) For Line 23 In the IF - Condition yo.pdf
Please follow the data 1) For Line 23 In the IF - Condition yo.pdf
 
2 lecture (gdd, responsibilites, level of game) 18 1-2021
2 lecture (gdd, responsibilites, level of game) 18 1-20212 lecture (gdd, responsibilites, level of game) 18 1-2021
2 lecture (gdd, responsibilites, level of game) 18 1-2021
 
Java term project final report
Java term project final reportJava term project final report
Java term project final report
 
Lecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_processLecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_process
 
#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdf#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdf
 
#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdf#In this project you will write a program play TicTacToe #using tw.pdf
#In this project you will write a program play TicTacToe #using tw.pdf
 
Types of Gaming Program
Types of Gaming ProgramTypes of Gaming Program
Types of Gaming Program
 
Parallel Futures of a Game Engine
Parallel Futures of a Game EngineParallel Futures of a Game Engine
Parallel Futures of a Game Engine
 
Pong
PongPong
Pong
 
Ludocore: A Logical Game Engine for Modeling Videogames
Ludocore: A Logical Game Engine for Modeling VideogamesLudocore: A Logical Game Engine for Modeling Videogames
Ludocore: A Logical Game Engine for Modeling Videogames
 
TIC-TAC-TOE IN C
TIC-TAC-TOE IN CTIC-TAC-TOE IN C
TIC-TAC-TOE IN C
 
Offshore Game Development Presentation
Offshore Game Development PresentationOffshore Game Development Presentation
Offshore Game Development Presentation
 
C PROGRAM CODE FOR SNAKE AND LADDER GAME
C PROGRAM CODE FOR SNAKE AND LADDER GAMEC PROGRAM CODE FOR SNAKE AND LADDER GAME
C PROGRAM CODE FOR SNAKE AND LADDER GAME
 
Game Design Document - Step by Step Guide
Game Design Document - Step by Step GuideGame Design Document - Step by Step Guide
Game Design Document - Step by Step Guide
 
Knock Knock on GameDev Gate
Knock Knock on GameDev GateKnock Knock on GameDev Gate
Knock Knock on GameDev Gate
 
Knock knock on GameDev gateway! - Introduction to Game development
Knock knock on GameDev gateway! - Introduction to Game developmentKnock knock on GameDev gateway! - Introduction to Game development
Knock knock on GameDev gateway! - Introduction to Game development
 

Recently uploaded

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 

Recently uploaded (20)

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

Game programming-help

  • 2. Content for Game programming:  Introduction to Game programming.  Different types of game  Different programming language for Game  Different programming language strength and weakness for Game:  Game development tools  Various Game programming language.  Flowchart for Game development.  Designing a Game and the Game Engine  Game design Heart  Game Design Techniques  Game design reality check  Magic Formula:  C++ Source code for Tic Tac Toe game  References:  For further Info.
  • 3. Introduction: Game programming language: Game programming language is the software development for video games and is a subset of the game development. It requires the substantial skill in the software engineering. Game programming required specialization in the following areas to create game: Simulation Computer Graphics Stage Design Physics Audio Programming Input Artificial intelligence
  • 4. Different types of Games: DOOM-like first-person games—These games are full 3D and can view them from the character’s perspective. Sports games—Sports games can be either 2D or 3D. Arcade/shoot-up/platform—These games are your typical Asteroids, and Jazz Jackrabbit type stuff. Mechanical simulations—These games encompass any kind of driving, flying, boating, racing, and tank-battle simulation, Ecosystem simulations—This is really a new kind of game that has no real-world analog —other than the real world itself.
  • 5. Different programming language for Game: Computer and video games programming are written primarily in: C C++ Assembly language Various script languages are used for the generation of content such as game play and especially AI: Ruby Lua Python
  • 6. Different programming language strength and weakness for Game: Language Assembly C C++ Strengths Weaknesses Potentially minimal CPU overhead Error-prone, slow development, difficult to learn, not portable Widely known, numerous tools Lack of object-oriented functionality, difficult for large projects or multiple platforms Development costs of manual memory Object-oriented, widely used, numerous tools management, "boilerplate" code, and potentially long compilation times Generally limited to Microsoft platforms (Windows and Xbox),garbage collection overhead, easily reverseengineered C# Object-oriented, automatic memory management, offers reflection Java Lack of user-defined value-types,garbage Object-oriented, automatic memory collection overhead, memory overhead, management, widely portable, offers reflection unavailable on major gaming consoles, easily reverse-engineered
  • 7. Games development tools: Game development tool is a software application which facilitates the making of the Game(Computer or video Games). For example:IDE and 3D graphics modelling are game tools which are COTS product. 2D and 3D package ( Blender, GIMP, Photoshop and3D Studio Max) are used for view and modification of assets. 3D models, textures are used for the conversion of assets into required format for the Game.
  • 8. Various Game Programming language : •Scratch programming language •Squeak Smalltalk programming language •Kodu programming language •Greenfoot programming language •Kojo programming language •Unity programming language •Guido Van Robot programming language •Hackety programming language •Laby programming language •Illumination Software Creator programming language •xKarel programming language
  • 9. Flowchart for Game development
  • 10. Designing a Game: Computer Science Art Music Business Marketing The Game Engine: Graphics & Animation Physics Controller Interaction AI Primitives Sound Networking Scripting system
  • 15. C++ Source code for Tic Tac Toe game #include <iostream> using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; int checkwin(); void board(); int main() { Int player = 1,i,choice; char mark; do { board(); player=(player%2)?1:2; cout << "Player " << player << ", enter a number: "; cin >> choice; mark=(player == 1) ? 'X' : 'O'; if (choice == 1 && square[1] == '1') square[1] = mark; else if (choice == 2 && square[2] == '2') square[2] = mark; else if (choice == 3 && square[3] == '3') square[3] = mark; else if (choice == 4 && square[4] == '4')
  • 16. square[4] = mark; else if (choice == 5 && square[5] == '5') square[5] = mark; else if (choice == 6 && square[6] == '6') square[6] = mark; else if (choice == 7 && square[7] == '7') square[7] = mark; else if (choice == 8 && square[8] == '8') square[8] = mark; else if (choice == 9 && square[9] == '9') square[9] = mark; else { cout<<"Invalid move "; player--; cin.ignore(); cin.get(); } i=checkwin(); player++; } while(i==-1); board(); if(i==1) cout<<"==>aPlayer "<<--player<<" win ";
  • 17. else cout<<"==>aGame draw"; cin.ignore(); cin.get(); return 0; } int checkwin() { if (square[1] == square[2] && square[2] == square[3]) return 1; else if (square[4] == square[5] && square[5] == square[6]) return 1; else if (square[7] == square[8] && square[8] == square[9]) return 1; else if (square[1] == square[4] && square[4] == square[7]) return 1; else if (square[2] == square[5] && square[5] == square[8]) return 1; else if (square[3] == square[6] && square[6] == square[9]) return 1; else if (square[1] == square[5] && square[5] == square[9]) return 1; else if (square[3] == square[5] && square[5] == square[7]) return 1;
  • 18. else if (square[1] != '1' && square[2] != '2' && square[3] != '3‘ && square[4] != '4‘ && square[5] != '5‘ && square[6] != '6‘ && square[7] != '7' && square[8] != '8' && square[9] != '9') return 0; else return -1; } void board() { system("cls"); cout << "nntTic Tac Toenn"; cout << "Player 1 (X) - Player 2 (O)“ << endl << endl; cout << endl; cout << " | | " << endl; cout << " " << square[1] << " | " << square[2] << " | " << square[3] << endl; cout << "_____|_____|_____" << endl; cout << " | | " << endl; cout << " " << square[4] << " | " << square[5] << " | " << square[6] << endl; cout << "_____|_____|_____" << endl; cout << " | | " << endl; cout << " " << square[7] << " | " << square[8] << " | " << square[9] << endl; cout << " | | " << endl << endl; }
  • 19. Image for the Tic Tac Toe:
  • 20. References:  Game Design (2nd ed.). Thomson Course Technology. Moore, Michael E.; Novak, Jeannie (2010). Game Industry Career Guide. Evans, Richard (2002). Rabin, Steve, ed. AI Game Programming Wisdom. External Link: Game Developer Magazine official site
  • 21. For further Info : Read more about game programming http://www.assignmenthelp.net/game/game_programming_help +1-617-874-1011 (USA) +44-117-230-1145 (UK) +61-7-5641-0117 (AUS) support@assignmenthelp.net