| |
| |
| |
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 | |