Download
game programming help n.
Skip this Video
Loading SlideShow in 5 Seconds..
game programming help PowerPoint Presentation
Download Presentation
game programming help

game programming help

270 Vues Download Presentation
Télécharger la présentation

game programming help

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  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 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 gameplay and especially AI: • Ruby • Lua • Python

  6. Different programming language strength and weakness for Game:

  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 <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 << "\n\n\tTic Tac Toe\n\n"; 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