Game Programming Help - PowerPoint PPT Presentation

About This Presentation
Title:

Game Programming Help

Description:

Game programming language is the software development for the video games. Programming for games needs the substantial skill in the software engineering and required specialization in the computer graphic, stage design, and simulation. – PowerPoint PPT presentation

Number of Views:141

less

Transcript and Presenter's Notes

Title: Game Programming Help


1
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 gamesThese games are full
    3D and can view them from the characters
    perspective.
  • Sports gamesSports games can be either 2D or 3D.
  • Arcade/shoot-up/platformThese games are your
    typical Asteroids, and Jazz Jackrabbit type
    stuff.
  • Mechanical simulationsThese games encompass any
    kind of driving, flying, boating, racing, and
    tank-battle simulation,
  • Ecosystem simulationsThis 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 Strengths Weaknesses
Assembly Potentially minimal CPU overhead Error-prone, slow development, difficult to learn, not portable
C Widely known, numerous tools Lack of object-oriented functionality, difficult for large projects or multiple platforms
C Object-oriented, widely used, numerous tools Development costs of manual memory management, "boilerplate" code, and potentially long compilation times
C Object-oriented, automatic memory management, offers reflection Generally limited to Microsoft platforms (Windows and Xbox),garbage collection overhead, easily reverse-engineered
Java Object-oriented, automatic memory management, widely portable, offers reflection Lack of user-defined value-types,garbage collection overhead, memory overhead, 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

11
Game Design Heart
12
Game Design Techniques
13
Game design reality check
14
Magic Formula
15
C Source code for Tic Tac Toe game
include ltiostreamgt using namespace std char
square10 '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(player2)?12
cout ltlt "Player " ltlt player ltlt ",
enter a number " cin gtgt
choice mark(player 1) ?
'X' 'O' if (choice 1
square1 '1') square1 mark
else if (choice 2 square2
'2') square2 mark else
if (choice 3 square3
'3') square3 mark else
if (choice 4 square4 '4')
16
square4 mark else if
(choice 5 square5 '5') square5
mark else if (choice 6
square6 '6') square6 mark
else if (choice 7 square7 '7')
square7 mark else if (choice 8
square8 '8') square8 mark else if
(choice 9 square9 '9') square9
mark else coutltlt"Invalid move "
player-- cin.ignore() cin.get()
icheckwin() player
while(i-1) board() if(i1)
coutltlt"gt\aPlayer "ltlt--playerltlt" win "

17
else coutltlt"gt\aGame draw"
cin.ignore() cin.get()
return 0 int checkwin() if (square1
square2 square2 square3) return
1 else if (square4 square5 square5
square6) return 1 else if (square7
square8 square8 square9) return
1 else if (square1 square4 square4
square7) return 1 else if (square2
square5 square5 square8) return
1 else if (square3 square6 square6
square9) return 1 else if (square1
square5 square5 square9) return
1 else if (square3 square5 square5
square7) return 1
18
else if (square1 ! '1' square2 ! '2'
square3 ! '3 square4 ! '4
square5 ! '5 square6 ! '6 square7
! '7' square8 ! '8' square9 !
'9') return 0 else return -1 void
board() system("cls") cout ltlt "\n\n\tTic
Tac Toe\n\n" cout ltlt "Player 1 (X) - Player 2
(O) ltlt endl ltlt endl cout ltlt endl cout ltlt "
" ltlt endl cout ltlt " " ltlt square1 ltlt " "
ltlt square2 ltlt " " ltlt square3 ltlt endl
cout ltlt "_______________" ltlt endl cout ltlt "
" ltlt endl cout ltlt " " ltlt square4 ltlt "
" ltlt square5 ltlt " " ltlt square6 ltlt endl
cout ltlt "_______________" ltlt endl cout ltlt "
" ltlt endl cout ltlt " " ltlt square7 ltlt "
" ltlt square8 ltlt " " ltlt square9 ltlt endl
cout ltlt " " ltlt endl ltlt 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.assig
nmenthelp.net/game/game_programming_help 1-617-8
74-1011 (USA) 44-117-230-1145 (UK) 61-7-5641-011
7 (AUS) support_at_assignmenthelp.net
Write a Comment
User Comments (0)
About PowerShow.com