Home | Courses | Research | Projects | Links | Robocode | Imagine Cup | Serious Games | CGAMES2006 | Contact

Object Orientated Programming

Lectures

Semester 1

Semester 2

Labs

Semester 1 Labs

Semester 2 Labs

Installing Ogre3D

Self Tests

Arrays & Structs

Example Programs

Assignment

Make the following modifictions to the OgreFramework code:

Make 2 robots

Make one of the Robots be controlled by the player using the I J K L keys. Make use of the GameMaths code we developed in the labs this week and create an GameMaths::Entity to keep track of the robot's position and look. You will also have to make a class variable in MyProgram to hold the GameMaths::Entity and also to hold SceneNode that you will use to draw the Robot.

Make one of the Robots follow a path, with Waypoints loaded up from a text file formatted as follows:

Waypoints
10 0 10
6 0 7
-7 0 -9
...
...

With up to 10 waypoints specified. Again use a GameMaths::Entity object and make use of the walk function we developed for the Entity. In the update member function, you need to reposition the Ogre::SceneNode that drawe the GameMaths::Entity. Dont forget to orientate the robot so that it always faces the direction it looks. You might need to use the member function rotate on the SceneNode.

Make the second robot stop walking and switch to the Shoot animation if it can see the Player. When the player can no longer be seen, make it switch back to the Walk animation and keep following the path.

Any other ideas and enhancements you can think of!

Rubrick:

A - All your GameMaths code integrated with Ogre and Ogre rendering everything in the lab. Also, some little extra functionality that you can add. Use your imagination!

B - Mostly everything working. Integration between Ogre and the GameMaths code mostly working.

C - No Ogre rendering but all the GameMaths code working.

D - No Ogre rendering, most of the GameMaths code working, but incomplete.

E - Major problems with the GameMaths code and no Ogre code working.

Links

Last Updated: 15 February 2007
Contact me at: bryan.duggan@dit.ie