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...


.

Thursday, October 2, 2008

Allegro - Tried n True

We're going to introduce pre-packaged game engines by using Allegro. It's been around for a while and there are a ton of open-source games coded in Allegro that we can use as examples. First we have to install it:

Allegro Installation


0) Copy the files:
  • Copy the contents of the include folder to C:\Program Files\Microsoft Visual Studio 8\VC\include
  • Copy the contents of the lib folder to to C:\Program Files\Microsoft Visual Studio 8\VC\lib

2) Extract all files into c:\

3) Run c:\allegro\build\pre-build-msvc.bat

4) Open c:\allegro\build\msvc8\Allegro.sln. Finish conversion. Click Build / Batch Build. Check all versions. Wait for build to finish.

5) Copy the files:
  • Copy the contents of C:\allegro\include to C:\Program Files\Microsoft Visual Studio 8\VC\include
  • Copy the .lib files from C:\allegro\lib\msvc to C:\Program Files\Microsoft Visual Studio 8\VC\lib
  • Copy the .dll files from C:\allegro\lib\msvc to C:\Windows\System32
6) Start a new project then add a main source file.

7) Click Project / Properties. Click Configuration Properties / Linker / Input. Add alleg.lib to Additional Dependancies.

8) Now we're ready to program using Allegro.

9) We're going to start with a few tutorials.

10) Finally, we master the universe.


.

Wednesday, October 1, 2008

Game Engines

You have a technical writing exercise due Monday. You will have today in class to work on this. Whatever you don't finish in class is assigned as homework due Monday.

Write a 2-3 page paper on the 3 of the most popular 2D Game Engines and the 3 of the most popular 3D Game Engines.

The paper should be in paragraph form 11pt font; 1.5 spacing.

Cite your sources!

DO NOT COPY & PASTE!!!

Answer the following questions for each of the 6 engines you elect. 
  • What's the engine called?
  • Who developed it?
  • How much does it cost?
  • Where can you get it?
  • Is there thorough documentation?
  • Are there many pieces of sample code available?

.

Tuesday, September 30, 2008

Bubble Sort

Keep pluggin away at the bubble sort program.
  • Start by declaring an array of 10 integers.
  • Display the array with a for loop.
  • Use the pseudocode from wikipedia to bublesort the array.
  • Redisplay the array.
  • Then, adapt your code so that it will bubblesort acording to the price of a product (as we discussed yesterday).

.

Monday, September 29, 2008

// structures \\

We've got a lesson/ demo on structures in c++ today.


.

Thursday, September 25, 2008

Review the WS

We're going to spend some time reviewing part B of the C++ WS.


.