Starting Out with Games and Graphics in C++

  • ISBN13:


  • ISBN10:


  • Edition: 1st
  • Format: Paperback
  • Copyright: 2009-03-27
  • Publisher: Addison-Wesley
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $125.40


KEY BENEFIT : This accessible, step-by-step presentation uses graphical examples and simple, complete, video games to teach programming skills and C++. KEY TOPICS : Introduction to Computers and Programming; Graphics Programming with C++ and the Dark GDK; Variables, Colors, and Calculations; void Functions; Working with Images; Control Structures; The Game Loop and Animation; Value-Returning Functions and Mouse Input; Arrays and Text Processing; Working with Files; and Object-Oriented Programming. Game Projects: Scones McNabb; Vulture Trouble; Object-Oriented Vulture Trouble. MARKET : Ideal for beginning C++ programmers.

Author Biography

Tony Gaddis is the principal author of the Starting Out with series of textbooks. He has nearly two decades of experience teaching computer science courses, primarily at Haywood Community College. Tony is a highly acclaimed instructor who was previously selected as the North Carolina Community College Teacher of the Year, and has received the Teaching Excellence award from the National Institute for Staff and Organizational Development. The Starting Out with series includes introductory textbooks covering Programming Logic and Design, Alice, C++, Java, Microsoft Visual Basic, and Python.

Table of Contents

Introduction to Computers and Programming
How Computers Store Data
How a Program Works
C++ and the Dark GDK Library
Graphics Programming with C++ and the Dark GDK Library
Getting Your Feet Wet with the Dark GDK Library
The Screen Coordinate System
Basic 2D Shapes
Displaying Text
In the Spotlight: The Orion Constellation Program
The Program Development Cycle
Variables, Calculations, and Colors
Literal Data
In the Spotlight: Drawing Simple Bar Charts
Getting Values from Functions
In the Spotlight: Drawing the Italian Flag
Named Constants
void Functions
Modularizing a Program with Functions
Defining and Calling a void Function
Designing a Program to Use Functions
Local Variables
Passing Arguments to Functions
Global Variables and Constants
Working with Images
Images and Transparency
Control Structures
Single-Alternative Decision Structures: The if Statement
Dual-Alternative Decision Structures: The if-else Statement
Nested Decision Structures and the if-else-if Statement
Repetition Structures: The while Loop and the do-while Loop
The Increment and Decrement Operators
Repetition Structures: The for Loop
Using the for Loop to Process Pixels in an Image
Logical Operators
The switch Statement
Numeric Truth, Flags, and bool Variables
The Game Loop and Animation
The Game Loop
Simple Animation
Controlling Objects with the Keyboard
Cel Animation and Sprite Sheets
Sprite Collision Detection
The Vulture Trouble Game: Introducing Audio, Physics, and Text Effects
Playing Sound Effects and Music
Simulating Falling Objects
Text Effects
The Vulture Trouble Game
Value-Returning Functions and Mouse Input
Writing a Value-Returning Function
Working with the Mouse
The Bug Zapper Game
Arrays and Tile Mapping
Array Basics
Sorting Arrays
Two-Dimensional Arrays
Tile Maps
Strings and Files
Working with Strings
Introduction to File Input and Output
Saving a Game's High Score
Object-Oriented Programming
Procedural and Object-Oriented Programming
Classes and Objects
An Object-Oriented Game: Balloon Target
Downloading and Installing the Required Software
The ASCII Character Set
Case Study: Scones McNabb
Case Study: Object-Oriented Vulture Trouble
Table of Contents provided by Publisher. All Rights Reserved.

Rewards Program

Write a Review