Developing Game-Themed Applications with XNA Game Studio

Day 1 - Section II: The XNACS1Lib Library
a. Defining and Controlling a circle

back to Day-1 main page


References:

Goals:

Notice:  To work with the XNACS1Lib Library, a bare minimum project must include:


BeginTemplateSource: Download and unzip the begin template source folder and you will see two folders: If we try to compile this project, we will get an error messages. In this tutorial we will
  1. Fix the compile error by including XNACS1Lib_PC.dll as a library reference for the project.
  2. Include code to define and control the circle.
  3. Show how to include the font file in the Content folder.

1. Reference to the DLL library:  Now we can compile and run the application. Though, nothing shows up, this is expected because our application is complete empty.

2. Define and control a circle: 

Now we can compile and run the application and see the circle. However, we cannot see any output messages. This is because we have not included the font files in the project.  

3. Including the font file
: 


Now finally we can compile and run the application and observe the output messages.


This document and the related materials are developed with support from Microsoft Research Computer Gaming Initiative under the Computer Gaming Curriculum in Computer Science RFP, Award Number 15871, and 16531.


Kelvin Sung
Computing and Software Systems
University of Washington, Bothell
ksung@u.washington.edu