Docsity

Game Programming - Game Development Process - Lecture Slides, Slides of Computer Security

Partial preview of the text

Download Game Programming - Game Development Process - Lecture Slides and more Slides Computer Security in PDF only on Docsity!

Game Programming

The Game Development Process

Docsity.com

Outline

  • Teams and Processes
  • Debugging
  • Select Languages
  • Misc (as time allows)
    • AI
    • Multiplayer

Docsity.com

Programming Areas – Game Code

  • Everything directly related to game itself
    • How camera behaves, score is kept, AI for bots, etc.
  • Often in scripting language (rest is in C++, more on languages next) - Produce faster iterations - Allow technical designers/artists to change behaviors - More appropriate language for domain (ex: AI probably not easiest in C++)

Based on Chapter 3.1,Introduction to Game Development Docsity.com

Programming Areas – Game Engine

  • Support code that is not game specific
    • More than just drawing pretty 3d graphics (that is actually the graphics engine, part of the game engine)
    • Isolate game code from hardware
      • ex: controller, graphics, sound
      • Allows designers to concentrate on game
    • Common functionality needed across game
      • Serialization, network communication, pathfinding, collision detection, discrete event simulator (timeline)

Based on Chapter 3.1,Introduction to Game Development Docsity.com

Programming Team Organization

  • Programmers often specialize
    • Graphics, networking, AI
  • May be generalists , know something about everything
    • Often critical for “glue” to hold specialists together
    • Make great lead programmers
  • More than 3 or 4, need some organization
    • Often lead programmer, much time devoted to management
  • If more than 10 programmers, will be several leads (graphics lead, AI lead, etc.)

Based on Chapter 3.1,Introduction to Game Development Docsity.com

Software Methodologies

  • Code and Fix
  • Waterfall
  • Iterative
  • Agile
  • (Then, some common practices)

(Take cs3733, Software Engineering)

Docsity.com

Methodologies - Waterfall

  • Plan ahead
  • Proceed through various planning steps before implementation - requirements analysis, design, implementation, testing (validation), integration, and maintenance
  • The waterfall loops back as fixes required
  • Can be brittle to changing functionality, unexpected problems in implementation - Requires going back to beginning

Based on Chapter 3.1,Introduction to Game Development Docsity.com

Methodologies - Iterative

  • Develop for a period of time (1-2 months), get working game, add features - Periods can coincide with publisher milestones
  • Allows for some planning
    • Time period can have design before implementation
  • Allows for some flexibility
    • Can adjust (to new technical challenges or producer demands)

Based on Chapter 3.1,Introduction to Game Development Docsity.com

Common Practices – Version

Control

  • Database containing files and past history of

them

  • Central location for all code
  • Allows team to work on related files without

overwriting each other’s work

  • History preserved to track down errors
  • Branching and merging for platform specific

parts

Based on Chapter 3.1,Introduction to Game Development Docsity.com

Common Practices – Quality (1 of

  • Code reviews – walk through code by other programmer(s)
    • Formal or informal
    • “Two eyes are better than one”
    • Value is that the programmer is aware that others will read
  • Asserts
    • Force program to crash to help debugging
      • Ex: Check condition is true at top of code, say pointer not NULL before following
    • Removed during release

Based on Chapter 3.1,Introduction to Game Development Docsity.com

Common Practices – Pair (or “Peer”) Programming

  • Two programmers at one workstation
  • One codes and tests, other thinks
    • Switch after fixed time
  • Results:
    • Fewer breaks
    • More enjoyable, higher morale
    • Team-cohesion
    • Collective of ownership

http://en.wikipedia.org/wiki/Pair_programming Docsity.com

Outline

  • Teams and Processes (done)
  • Debugging (next)
  • Select Languages
  • Misc (as time allows)
    • AI
    • Multiplayer

Docsity.com

Sub-Outline

  • 5-step debugging process
  • Prevention
  • Game Maker specifics
  • Debugging tips

Docsity.com

Step 1: Reproduce the Problem Consistently

  • Find case where always occurs
    • “Sometimes game crashes after kill boss” doesn’t help much
  • Identify steps to get to bug
    • Ex: start single player, room 2, jump to top platform, attack left, …
    • Produces systematic way to reproduce

Docsity.com