Thursday, October 30, 2008

Mouseplay

Answer the following questions in a comment to this blog:
  1. What reserved variables describe the location of the mouse cursor?
  2. What reserved variable describes the state of mouse buttons?
  3. What function describes the speed of the mouse cursor? 
Take time now to complete the program from yesterday. UPLOAD your work when complete.


.

Wednesday, October 29, 2008

Allegro Mouse

Your assignment today is to write an Allegro program which has 6 rects that'll act as buttons. 2 buttons for each color, r, g, b. One button per color for up and down. Below each pair of buttons, display a number ranging from 0 to 255. There will also be a circle on the screen whose color is whatever color is dictated by the 3 values for r, g, b. There sould also be a button for resetting colors and a button for generating random comolrs. The program should exit when the user hits escape.

Here's a sample screenshot:


.

Tuesday, October 28, 2008

Allegro

Today, we're going to be adding to our Allegro notes page.

At the end of class, UPLOAD your amended notes.


.