next up previous
Next: About this document ...

Assignment #2
CpSc 481: 2D Game Engine Construction
Computer Science Department
Clemson University
Using timers, keys and scrolling
Brian Malloy, PhD
September 20, 2005



In order to receive credit for this assignment, your solution must be submitted, using the handin command, by 8AM Thursday, October 6th, 2005. I will zip your files and move them to my directory at that time. You may submit your solution before the deadline as many times as you like; only your final submission will be considered. However, for multiple submissions, it's best to use the same names for files, since only those will be overwritten by your submission.

The purpose of this assignment is to extend your knowledge of Game Development using the Simple Directmedia Layer, SDL. Your goal for this assignment is to extend your first assignment (or mine, or someone's) to include the following:

  1. Incorporate the use of a timer so that your animation runs smoothly and at the same speed on different computers.
  2. Incorporate a scrolling background.
  3. Intercept keyboard input to allow the user to control one of your sprites.

You should study the examples on my web page, which include code demonstrations of how to scroll a background, the use of a timer to control lines and intercepting keyboard input. I have also placed my solution to the first assignment on the web page.

Here is the handin command:

        handin.481.3 2 *




next up previous
Next: About this document ...
Brian Malloy 2005-09-20