did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780321512918

Starting Out with Games and Graphics in C++

by
  • ISBN13:

    9780321512918

  • ISBN10:

    032151291X

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2009-03-27
  • Publisher: Addison-Wesley
  • View Upgraded Edition

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping Icon 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.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $125.40 Save up to $31.35
  • Buy Used
    $94.05
    Add to Cart Free Shipping Icon Free Shipping

    USUALLY SHIPS IN 2-4 BUSINESS DAYS

Supplemental Materials

What is included with this book?

Summary

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
1.1
Hardware
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
Introduction
Literal Data
Variables
Calculations
In the Spotlight: Drawing Simple Bar Charts
Getting Values from Functions
Colors
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
Introduction
Bitmaps
Images and Transparency
Control Structures
Introduction
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
Sprites
Cel Animation and Sprite Sheets
Sprite Collision Detection
The Vulture Trouble Game: Introducing Audio, Physics, and Text Effects
Introduction
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
Inheritance
Downloading and Installing the Required Software
The ASCII Character Set
Online
Case Study: Scones McNabb
Case Study: Object-Oriented Vulture Trouble
Table of Contents provided by Publisher. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program