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.


.