Home

Forum

Games

~~~~~~~~~~~~~

Chapter
Examples



Programming 2D Games

Official site of "Programming 2D Games" the book
by: Charles Kelly

Chapter 2 Windows Programming Fundamentals

Hello World

A complete Windows application that displays "Hello World" in the title bar of a window.

  • Demonstrates Windows programming fundamentals.

Hello World

download......(Source Included)

Character Input

Displays the character typed on the keyboard.

  • Uses the WM_CHAR message to get keyboard input.

Character Input

download......(Source included)

Keys Down

Displays a grid that represents the current key press state of every key on the keyboard.

  • Uses the WM_KEYDOWN and WM_KEYUP messages to determine the state of the keys on a keyboard.

Key Down

Download......(Source included)

Prevent Multiple

A Windows application that allows only one running instance of itself.

  • Demonstrates using a mutex to prevent multiple instances of a program.

Hello World

download......(Source Included)

 

 


Creative Commons License
Programming 2D Games Examples by Charles Kelly are licensed under a Creative Commons Attribution 3.0 Unported License.

 

This website copyright © 2012 by Charles Kelly, All Rights Reserved

Last Updated:

24 May, 2013