Monday, November 17, 2008

Tuesday, November 11, 2008

Pong v2.0

We'll be making the following additions to the PONG CODE we began yesterday. You will have *at least* 2 full class periods to complete this.
  1. Keep track of the current score.
  2. Keep track of the current number of times the ball has hit the paddle; reset this number when somebody wins.
  3. There should be a sound played when the ball strikes a paddle.
  4. There should be a different sound played when the ball strikes a wall.
  5. The paddles should be replaced by similarly sized bitmap images.
  6. The ball should be replaced with a similarly sized bitmap image.
  7. The rest time in the main logic loop should get shorter as the number of hits increases.
  8. Add something *else* to make your Pong game unique.

.

Wednesday, November 5, 2008

BPA

BPA today too.


.

Tuesday, November 4, 2008

BPA hoy

If you are not yet finished with the color test program, then finish it before you start working on BPA. 

We're going to spend the rest of the week on BPA.


. 

Monday, November 3, 2008

Color Test

We're going to finish up the color test program today.

Your program should have...

6 clickable arrows which control the color (either bitmaps or triangles)
3 numbers indicating the intensities for each of r, g, b
2 clickable boxes for random color and reset color
1 circle colored whatever color is indicated by the 3 numbers


.

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.


.

Friday, October 24, 2008

Test

You have the entire class period to complete your 9wks test.


.

Wednesday, October 22, 2008

Allegro Circles

We're going to start by reviewing the many circles example from yesterday.

You'll then be responsible for recreating the same effect.


. 

Monday, October 20, 2008

Allegro Circles

We're going to start today with a brief Allegro review. Then we're going to be doing some bouncing...

Yeah, I know...


.

Wednesday, October 15, 2008

Super Tic-Tac-Toe

Refer to this page for today's assignment.

Your assignment today is to redesign this tic-tac-toe game from a 3x3 grid, to a 4x4 grid.

You need to make sure that your game resets if a player wins or there are no empty squares.

Make sure that you download the necessary image files.

For extra credit, add sound effects for placing x's & o's, and for winning.

All other gameplay should be left intact or enhanced.

Upload your main.cpp file when you're done, use "Super Tic-Tac-Toe" in the description field.


.

Tuesday, October 14, 2008

Allegro

We're going to review The Allegro lessons from yesterday.


.

Monday, October 13, 2008

Tuesday - Allegro

You’re assignment today is to begin reading and working through these Allegro C++ tutorials:
You can access each tutorial by using the menu in the upper left hand corner; under "Allegro Lessons". 

When you begin an Allegro Project, after you start a new project, and add a piece of source code, you must link the allegro library.
To do this, you must go to the menu bar and click "Project", "... Properties", then add "alleg.lib" to the "Additional Dependancies" field under "Input" under "Linker" under "Configuration Properties". Check out the following screenshot.
 

For each section, you must upload your main.cpp file; make sure that you include the tutorial section (Allegro Basics, I/O, Drawing Primitives, Drawing Graphics From Files, Animation, Backgrounds, Mouse, Animation II) in the description field when you upload. I expect you to actually READ these. 

Be prepared to answer questions about Allegro tomorrow. I expect you to get all of these read, compiled, and uploaded.


.

Monday, October 6, 2008

BPA

We're going to focus on BPA for a few days...


.