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.


.

Wednesday, September 24, 2008

C++ WS

You have the entire class to finish working on the C++ worksheet assigned yesterday.


.

Tuesday, September 23, 2008

Back to C++

We're going to make sure that we're all familiar with C++ before we start controlling our fish.

You have a rather lengthy C++ worksheet to accomplish this.

Write your answers on a piece of paper for part A and part B, problems 1 & 2.
This MUST be turned in today.

For part B, problems 3, 4, & 5, you must write each program and upload them accordingly.
You'll have half of tomorrow to finish this.


.

Monday, September 22, 2008

Monday

For today, I want you to revisit the fishtank code linked in a previous blog post. Make the following changes to the original code:
  • Add your own animated background
  • Add another animated sprite to the 

If you have these 2 mods done, you may work quietly on BPA.


.

Friday, September 19, 2008

Friday...

BPA for most...

I'll clarify.


.