Example Code

Creating a Space Ship Game in LabWindows/CVI

Code and Documents

Attachment

This program is a game similar to the arcade game Galaga (there are some differences from Galaga). The program is written in LabWindows/CVI 7.0 and demonstrates a number of programming techniques, including those in the following list:
Using multiple timers
Programmatically moving controls
Duplicating controls
Dynamically creating controls
Collision detection
Using ActiveX controls
Playing sounds
Using keyboard input
Switching between panels

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors