Shoot-em-up Project

What's this?
Hosted by...
More info & Download!
Install or Compile
Screenshots
Coming soon
README
Changelog

What's this?

It's a free open source shoot-em-up game! Created by Ben Jones and Trevor Dodds, without buying any modelling tools or game engines! It's made by hand, in OpenGL.

Play single-player or multiplayer across the net. Extra levels to be released soon!

Hosted by Sourceforge

SourceForge.net Logo

More info & Download!

http://www.sourceforge.net/projects/shoot

Install or Compile

For windows, just run the exe

For linux, install OpenGL and OpenAL first if you've not got them already. Then type 'make all'.

Screen shots

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Coming soon...

New weapons and pick-ups. New levels.

README

======================================================
       ______   __   ___  _______  _______  __________
      /     /  / /  /  / /      / /      / /         /
     /  ___/  / /  /  / / ___  / / ___  / /___    __/
    /___     / /__/  / / /  / / / /  / /     /   /
    ___/  / /  __   / / /__/ / / /__/ /     /   /
   /     / /  / /  / /      / /      /     /   /
  /_____/ /__/ /__/ /______/ /______/     /___/
                   SHOOT    v 0.9
======================================================
       a game by Trevor Dodds and Ben Jones
       
Contents
--------
Where from...
-------------
http://www.sourceforge.net/projects/shoot
http://www.luucu.com/trev/shoot

Files (Windows version, shootwin.zip):
--------------------
In this zip, you should find
shoot.exe  - game executable
server.exe - server executable (for multiplayer)
ShootCommand.bat - batch file used to open command line
glut32.dll     - graphics library needed to run the game
OpenAL32.dll   - sound library needed to run the game
readme.txt     - this file you're reading
CHANGELOG.txt  - version history
Level Files (.level)
Texture Files (.tex)
Texture Image Files (.bmp)
Sound Files (.wav)

Files (Linux version, shoot.tgz):
----------------------
shoot     - game binary
server    - server binary

libglut.so           |
libglut.so.3         | openGL libraries
libglut.so.3.7.1*    |

libopenal.a*         |
libopenal.so         | openAL libraries
libopenal.so.0       |
libopenal.so.0.0.7*  |

README    - this file you're reading
CHANGELOG - version history
Level Files (.level)
Texture Files (.tex)
Texture Image Files (.bmp)
Sound Files (.wav)

Installing:
-----------
Windows:
1. Unzip the zipfile shoot.zip to C:\ using your favourite zip program.
2. To run Shoot, go to the "Shoot" folder and double click on the 
"Shoot" file. This will run Shoot in its basic configuration, 
using example.level
as the level to play/edit

           - - - - - - - - - - - - - - - - - - - - - -
Linux:
1L. Extract the contents of file shoot.tgz using the following command:

   % tar xzf shoot.tgz

This will create a directory called 'shoot' with the game contents.

2L. To run Shoot immediately type:
   % cd shoot
   % ./shoot

   (See below for command line options)

           - - - - - - - - - - - - - - - - - - - - - -

Running the game
----------------
To run Shoot with various configuration options, open a command 
prompt in the current directory. Shoot can be run with several command line 
arguments to change how it runs.

These are:
- fullscreen - run it in fullscreen mode
eg shoot -fullscreen

levelname.level - run it, playing levelname.level
eg: shoot dmcastle.level

<serveraddress> - connect to a shoot server for a multiplayer game
eg: shoot arena.level 127.0.0.1    (connect to localhost server)
    shoot arena.level localhost    (ditto)
    shoot arena.level 82.12.64.44  (Connect to 82.12.64.44)

Note: Levelname must be supplied when connecting to multiplayer game

Supplying a name after the server address will set the player's name in game.
eg: shoot arena.level 82.12.64.44 Ben
would set your name to "Ben"

An example of running Shoot with command line arguments is:

c:\..\shoot>shoot arena.level 127.0.0.1 Ben -fullscreen

Starts Shoot playing arena.level, connecting to a server on the local machine, 
using the player name Ben, and in fullscreen mode

Multiplayer
-----------
  Setting up the server
  ---------------------
To run a multiplayer game between 2 or more people, a server needs to be run.

The server should be run on a computer whose IP address is known, and has 
sufficient resources to cope with multiple connections to it, since it will 
be routing the messages from every client in the game.

To run a server, first go to the directory where Shoot is installed and type:

In Windows:
   c:\..\shoot>server

In Linux:
   % ./server

This will run a Shoot server on that machine. Make sure your firewall allows 
connections on port 3490, otherwise the server will not be able to communicate
with the clients. The firewalls on every client computer should be set up in 
the same way. See your firewall's documentation for how to do this.

           - - - - - - - - - - - - - - - - - - - - - -
           
  Setting up the clients
  ----------------------
With the server set up, players just have to enter the game to begin playing. 
Decide between the players which map will be used for the game, so that every
player runs Shoot with the same map on the command line.

Once this has been decided, each player runs Shoot, connecting to the same 
server. For example, if the level is dmcastle.level and the server is at
82.12.64.44, each player would type

In Windows:
   c:\..\shoot>shoot dmcastle.level 82.12.64.44 <player's name> -fullscreen

In Linux:
   % shoot dmcastle.level 82.12.64.44 <player's name> -fullscreen

<player's name> is whatever name that player chooses to be represented by 
in-game. "-fullscreen" is optional, but is recommended for a better gaming 
experience.

  Quitting a multiplayer game
  ---------------------------
Quitting a multiplayer game is done using the menu in the same way as quitting
a singleplayer game. The other players' game is not disturbed by this.

===============================================================================

About:
------
Shoot is a 3D multiplayer first person shooter. Run around and shoot the other
players before they get you! If singleplayer is your thing, then battle your 
way through the legions of evil cyborg soldiers until you reach your ultimate 
goal... the arbitrary end of the level!

===============================================================================

Controls:
---------
Main game:

w - Move forward
d - Move backwards
a - Strafe left
s - Strafe right
Spacebar/Middle mouse - Jump
Left click - Primary fire
Right click - Secondary fire (if applicable)
t - talk to other players
i - toggle invert mouse

The arrow keys can be used to achieve the same effect as WSAD for movement.

Esc - Open menu

Menu:

Arrow keys - Navigate menu
Esc - Close menu and go back to main game
Enter - Select option

===============================================================================

Weaponry:
---------

Rocket Launcher aka "The Boxgun"
The Boxgun basically a pipe, housed in a 80's car-esque box. It deals death 
in the form of rockets and overly-bouncy grenades. Grenades stick to the wall 
on impact and explode on a timer

Shotgun
A classic. This two-barrelled variety is fearsome when you can see the whites 
of their eyes, and pointless at distance. Its reload time is as scary as the 
actual payload. But to different people...

Minigun
Fast, and very dangerous. The rugged construction of this gatling-style gun 
means it's not hugely accurate, but when you're firing so fast, who cares?

Surprise Launcher
The origins of this gun are shrouded in mystery. Why would anyone make such 
a weapon? It has no practical use... to the uneducated eye! To a desperate 
mercenary in a tight spot, it offers a somewhat random ray of hope. The 
surprise launcher has been the saviour of a small select few, often last 
seen running away from an increasingly large oversized explosion throwing 
their assailants skywards.

Items:
------

Health Packs
Pick one up for a 15 health boost

Rocket ammo crates
Get some extra rockets, you'll go through them quickly.

More items will come soon!

===============================================================================

Bugs:
-----

Shoot is an open source piece of software and is constantly in development.
With that in mind, it will contain bugs.

Upon finding a bug, email one of us at:

Trev - trev at primatedesign.co.uk
Ben - sheepyl33t at yahoo.com

A list of known bugs will go up on the site soon.

See the CHANGELOG file for most known bugs, and changes by date.

===============================================================================

Credits:
--------
Programming: Trevor Dodds and Ben Jones
Elliot Rice made the excellent minigun model, whilst Ben did the other
modelling. All the models are hand-coded.

motor.bmp
link.bmp
bulletbelt.bmp
barrel.bmp
...are copyright Elliot Rice and possibly someone whose site got Googled.
All other textures are copyright The Shoot 'Em Up Project (Ben Jones and 
Trevor Dodds) 2005

Game engine and level editor created from scratch, written using C++, 
OpenGL and OpenAL.

Uses code from NeHe, to load textures.
Function to load textures from Nehe (http://nehe.gamedev.net) 
submitted by Richard Campbell, Lesson 6

Uses Nehe's masking tutorial code from Lesson 20

Uses code from Lighthouse 3D, for calculating frames per second, and 
for billboarding.

FPS Calculation:
http://www.lighthouse3d.com/opengl/glut/index.php?fps

Billboarding:
http://www.lighthouse3d.com/opengl/billboarding/

Change log

14/7/05
- going through beginning to remove warnings
- removed \ in comments in surprise.cpp because they escape newline character
- removed unused variable in hud.cpp
- changed level 1 wall texture to window2 instead of window1
- changed level1b to have a hole for the end of level
- made bigger hole at end of level2 and reduced brightness of it
- changed level4.tex window1 to window2
13/7/05
- fixed bug where bullet loaded next level
- changed Makefile to compile with -D_LINUX_ and warnings
1/7/05
- made it load the next level when you complete one
- NUM_LEVELS constant limits number of levels. Will go back to level 1 when you complete them all
30/6/05
- made coke cans in clutter
- made cola machines in item
- player::checkHitItem detects hit with cola machines and uses clutter and level to make cans
- made 'v' (for vending machine) place cola machine items
29/6/05
- changed sprintf in shoot.cc to limit number of decimal places
- made baddies only activate if within +-200 vertically of player
28/6/05
- changed number of elements in second dimension of particles array (particle.h)
  from 8 to 7
- made clutter stuff
27/6/05
- made hack for getting rid of black walls with cloud texture in region.cc
- decreased texture bullet speed to try to make it work better!
25/6/05
- fixed windows startup stuff in client
- tested multiplayer with one player on windows one on linux
- disabled editor for multiplayer only
- made rocket jumps possible
- added logo
- updated README
23/6/05
- doesn't draw gun when you're out of lives
- added level complete message
- got rid of lives
- fixed -fullscreen when not using network. It must be last command line arg
- disabled editor
- changed default filename to level1.level
- disabled noclip
- disabled home and end keys for up and down
14/6/05
- increased shotgun spread and power
- made baddies have random weapons but more likely to have boxgun
- made baddies not pause so long for next shot if they have minigun
- made items respawn in network play
- decreased amount of ammo you start with
- made ammo packs give you ammo for all weapons
13/6/05
- changed wallmark initial brightness
- added lots of sounds!
12/6/05
- increased jumpPower and removed from Player::reset()
- sorted out sound for baddies and player hit
- added item textures and wallmark stuff
- added new core textures to texmanager.cc
- added rocket to surprise launcher model
- added sound for explosions but need to give it multiple sources
- made soundmanager class
- need to work on attaching sound to baddie/objects - mapping sound source to player etc.
- made baddie legs swing faster
- fixed minigun by resetting prop
- made minigun spin faster
- made shotgun kickback faster
- added viewbob and gunflash to shotgun
- added viewbob to minigun
- changed level::getCeilingOfPoint to return 10000 if point is in sky region so
  that bullets don't collide with sky
- sorted out surprise launcher so new rocket appears in time for next shot
11/6/05
- increased bspeed in shoot.cc
- decreased lift count in region.cc
10/6/05
- integrated
- changed mouseSensitivity in shoot.cc
- increased bspeed in player.cc
- changed srand to time() in shoot.cc
- experimenting with getting baddie to fall properly
- angleX = dieCount*2 in baddie.cc
- works now - think they were just still walking forwards while dying - see baddie.cc and player.cc
29/3/05
- baddie sound can be heard but quitely. Experimenting with orientation of listener.
28/3/05
- made bullet set ground to level.getFloorOfPoint() because using the new collision detection
  method means that it doesn't collide with walls that it goes over
- made baddies have a sound
- working on setting listener and source position - currently no sound heard
12/3/05
- made it clear the colour again and made mountains transparant again (problem was
  sky has to fade out (using fog) above mountains and fog was blending with the colour from
  the last frame (i.e. not the clear colour))
- fixed up collision method
8/2/05
- moved glutPostRedisplay to top of idle
- moved glClear to bottom of display and stopped it clearing the colour buffer
- removed blending on skybox mountains
- commented out the separate specular colour in init()
- made checkHit2 have collisionPoint as a reference parameter
- thinking of checking four points again, because if you move planes then you cause a lot of trouble!
  could do this in checkHit2???
26/1/05
- made wallmarks work for walls, ceiling and floor
- removed depth mask from trails
- made grenades explode properly
- turned off depth mask on explosion flashes and smoke
- implemented a new collision detection method for player
- varied wallmark size slightly with rand() - had floating point exception!
- made explosion flash size depend on explosion size
- made wallmark fit with explosion size on surprise launcher
23/12/04
- made baddies become unaware if they are too far away
- made baddies fade away before being deleted
22/12/04
- made Region::moveLift() return false all the time for platforms so they are removed from activeLifts straight away
- decreased DIECOUNT_LIMIT (in player.h) and made shoot.cc remove baddies that have reached their dead limit from
  the vector. Added Baddie::getReachedDeadLimit() so this can be achieved
- added glLightModel to init()
21/12/04
- made output method in level for couting region you're in
- fixed lift bug for old getCeilingOfPoint method (not using regionDivisions)
- added hacked section advancer regions
- made player.reset() also reset strafeRightSpeed
- increased rocket speed from 2 to 3
- introduced two lift times - short and long - shorter wait for activating lift (it was taking too long),
  then it waits longer at its destination height before returning to initial position
- made item collision area bigger so it's easier to pick up
- made it so if wall is black (bug) then pressing 'm' to make it brighter jumps it to BRIGHTNESS_DEFAULT
- made space jump
15/12/04
- added face class
- added communication class
- added srand to shoot.cc
- improved makefile - all .o files are now in one variable. Also, instead of 'make allfiles', it's now 'make all'
12/12/04
- changed makefile
- made it only send dead messages if NETWORK is 1
10/12/04
- made it so health displays as 0 if it's negative
- made client and server use weird ascii chars as codes for start and end of data
- made humans reset their connectionErrorCount upon construction so they don't get stuck!
- made bullet types that are sent +48 to bring them to normal displayable chars that don't conflict with start and end data chars
- fixed bug that wasn't sending grenade type - was using player.getBulletType() instead of 'type' variable in mousePress() in shoot.cc
- improved kickback on boxgun
- shifted kickback and viewbob variables into gun.h so they can be used by all guns
26/11/04
- made it send names
- made sky slightly higher, then lowered it again!
25/11/04
- made client a separate class
- made humans affect lifts and doors
- made client send data using glutTimerFunc
23/11/04
- added secondary fire for boxgun - makes rockets act in a more grenade like way, but they still explode on impact
22/11/04
- put glutInit() before dealing with command line args, as that function removes any args
  intended for glut itself
12/11/04
- added multiple hud message thing
- added kickback to shotgun
11/11/04
- made trails draw after bullets so they don't cover up half the bullet
10/11/04
- implemented WASD keys for movement
- implemented multiple start positions
- made it not reload upon death if NETWORK is 1
- made it set you to a random start position upon load/death
9/11/04
- made trails fade away
8/11/04
- multiple humans!
- increased server maxrecvbytes thing
- made it deal with overflows better
- sky pan
- core textures
- billboarding
- finished integrating
- made bullet trails thinner, disable depth test (so they don't cover up explosions), and last shorter periods of time
  EDIT: re-enabled depth test, that was a bad idea!
- fixed kickback to look right when looking up or down
- changed NETWORK so it is 1 if you specify an ip on command line
- made explosion flashes fade out so when you're hit directly by a bullet the flash fades away
7/11/04
- made server read things in terms of bytes
- fixed some bugs
6/11/04
- made clients read in data properly - if lots is sent at once it iterates through it
- made clients pass on when and where they fire(d)
- made humans animate when moving
- decreased smoothness of human movement for testing purposes
- using the fact that humans have id of > 99, in player.fire(), make them fire bullets from left hand side
  like player (id 0)
- quick and easy collision - made human objects check their own collision - may not be what really happens to other player
  e.g. other player could move into bullet and human on client side may not have updated position yet
- when using slower connections or a more distant server there seem to be errors in the position received from time to time
  maybe not all the data was sent at once?? For now I've just made it wait a bit until it can accept a suitable value
- fixed bug where player could send bullets repeatedly even if fire rate prevented them firing locally
  (made player::fire() return a value to say whether the firing was successful or not)
- made sky slightly bigger so you can't see the edges
- fixed lift bug - to do with ceiling being checked for a point in a lift before player has been 'snapped' to lift top
- made dead baddies so they go up with lifts
- removed purple tint from lift tops/bottoms
- made baddies not check for bullet collision if they are 'tooFar'
- made clients read data in terms of bytes!! it now accounts for not all the data being received straight away!
5/11/04
- made networking work! DELAY the sending! Sorted ids - don't worry about numbytes!!
- put normals in skybox, then realised lightings disabled
- made sky four polygons
28/10/04
- taken away purple tint from the floor and ceiling (in Region::draw())
25/10/04
- added torch, press 'f' to toggle when not in editor
- made it so you can save and load tiling options (tiling is done using '/' and '?')
- version 2 of level files is now complete - up to 100 textures can be used (0-99) and tiling can be saved
- made it so baddies height is decreased when they are lying down for bullet collision purposes
21/10/04
- made it so baddies are still affected by explosions when they are dead, so they slide about everywhere! Yay!
- made baddies slide forward slightly when they fall and die so the collision point is more central
18/10/04
- fixed segfault when you left grid range
17/10/04
- added screen flash for when you are hit
- adjusted max pushY in player::checkHitBullets so you can rocket jump a bit higher
16/10/04
- the region division thing seems to be working. It will output some error messages if not.
  Currently it outputs the array to the screen upon loading.
- fixed bug with banging your head on doors
15/10/04
- fixed a cause of segfaulting when moving lines - in the for loop in shoot.cc, i was an unsigned int and was
  taken to < 0 - i is now an int! This seems to work - tested by being a crazy right-clicker everywhere!
- removed unecessary zOverX and xOverZ vars in baddie::ai()
- should have got rid of the problems with asn being out of range
- decreased maximum push from bullets so that you shouldn't get stuck to walls anymore!
- also capped the push values when being pushed by explosions - min -1.0 and max 1.0
- baddies now only fire if they have a clear shot!
- baddies fire the direction they are facing if they fire when dying. (i.e. they fire upwards as they fall back)
  not sure if this looks silly?!
12/10/04
- got rid of one of the things that made it segfault - to do with deleting regions and others still being connected to it
- made baddies feet move when alive not dead!
- got rid of bug that made some wall brightnesses reset when you added a region
11/10/04
- Began updating from Ben's build - keeping stuff I added and copying in stuff that Ben added
- Baddie models updated
- in Baddie:ai() not bothered passing through aiOn, just don't call the ai if it's turned off
- added the code for bullet timer and thruster
- when copying player.cc, used constants in checkHitItem instead of numbers for checking which item it is
  also didn't return in the middle of loop so you can pick up more than one item at a time.
  also in player.cc noted that bullets are no longer passed to move
- noted region.cc our two files are the same except for initialisation in for loops
- noted that in shoot.cc I had fog start set to 100, Ben had set to 900, which probably makes more sense for indoor levels!
- made baddies bullets fire from it's gun (right hand side instead of left)
8/10/04
- made explosion effects look cool using different blending techniques
- got rid of gluPerspective and replaced with hard-coded glFrustum
- got rid of gluLookAt and replaced with operations that rotate and translate the world
- the above two points seem to speed things up - colossus now runs at high res with loads of baddies!
6/10/04
- got rid of atan and used a sqrtApprox and asn array in Trig.h (log tables) for asin instead
  (this seems to speed things up nicely!!)
- renamed window to 'Shoot-em-up Project'
4/10/04
- fixed level saving bug
29/9/04
- fixed bug that made all baddies aware when you fired first shot!
- increased mouse sensitivity (slightly) and added a new variable 'mouseSensitivity' to control this
26/9/04
- lowered baddies so they walk on the floor not hovering above it :-)
3/9/04
- fixed saving wall brightness so it works for lift walls (must remember to set brightness values before setting
  lift! D'oh!)
2/9/04
- can change grid size now, using q and w. I wouldn't recommend halving it any more than once from the standard size.
30/8/04
- can now change lift thickness!
29/8/04
- the hud message didn't display properly because it was a proportional font but every letter
  was displayed at a constantly increasing x coordinate. Now using fixed-width fonts for editor
  and hud messages
- made editor messages white
- implemented level file versions, to make updating old levels to the new system easier
- now loads and saves brightness
- surface brightness of floor, ceiling and lift bottom/top can be changed
28/8/04
- fixed bug that pinged you to top of walls if near a moving region
- integrated ben's lighting version and new baddie models
- made it so 'n' and 'm' increase/decrease brightness of walls, and ',' and '.' inc/dec floor brightness
- fixed it so that when you disable clipping you no longer are moved by lifts/moving regions
12/7/04
- sorry if you had three or four baddies it didn't work - fixed it
- you can delete baddies by firing a texture bullet or real bullet at them
- you can now save player position. Set the position by pressing 'x' whilst in editor mode.
- fixed it so you don't run out of ammo whilst changing textures!!
- made shotgun fire a spread of bullets
11/7/04
- fixed some bugs
10/7/04
- fixed some bugs
- made it so you can load/save baddie positions
9/7/04
- fixed a couple of lift/door bugs and a jumping bug
- made shotgun (gun 2) the right height
- explosions send people flying! ROCKET JUMPS!
- explosions injure you. Hit by a rocket now will knock off about 25 health - that's 10 for being hit
  by the bullet and 15 for being in the middle of the explosion. Hit by the edge of an explosion and
  you'll be injured a bit less - about 1 to 15 health loss.
- baddies are now saved and loaded along with level
8/7/04
- tested everything out a bit more - made a level full of loads of gimmicks (lifts/doors/walkways)
  all near each other and found loads of bugs, which have now mostly been fixed. Just a couple left,
  but I'll leave them for now as they're pretty harmless and rare.
7/7/04
- fixed it so you can still turn whilst pressing mouse button!
- made it so you can jump by pressing the middle mouse button
- made it so you can bang your head when going up on a door/lift and standing half on and half off
- fixed up door textures so you can plaster the lot
- stopped drawing bullets when exploding
- no longer explodes when changing textures!
5/7/04
- integrated new bullet/gun/explosion stuff
- changed bullet kill method to 'explode'
- fixed bullet collision problem
- made bullets collide with moving doors
- FLIPPING ECK absolute MISSION. Made bullets fire from the gun (it was a subtle
  problem that when you looked up/down the bullets weren't coming from the right
  place). Also, gun is now drawn on top of bullets.
3/7/04
- you can now change the texture of doors, (with difficulty)
- doors are now saved/loaded along with the level
2/7/04
- made doors, which can also be used as lifts!
1/7/04
- improved efficiency of code
- made big level
- realised the need for a bigger level grid, and a 'centre level' option
- allowed island regions to be at the edge of a region, without drawing walls (no z-fighting)
- converted fort.level to new level code
30/6/04
- after an absolute mission of a coding session, we now have lifts!!
- realised that a stationary lift can be used to make walkways, so we can have fake multi-level stuff!
  (i.e. a bridge you can walk over and under!)
- controls for lifts: o p [ ]
  p (place platform)
  [ set current lift (the one you're standing above) minimum height to the height you are at
  ] set max height
  o make it start at the top instead of the bottom, press again to change this
- made editor display confirmation of save operation
29/6/04
- added IN_EDITOR and EDITOR_MESS_AROUND constants
  IN_EDITOR 0 will be used for the actual game
  When in editor (IN_EDITOR 1) then baddies will not move, and you won't be able to fire.
  However, for messing around set EDITOR_MESS_AROUND 1 and baddies will move when you press 'e' to turn
  off the map, and you'll also be able to fire.
- fixed bug where deleting in an empty space caused editor lines to disappear
- changed keys to actual characters instead of ASCII codes (d'oh!)
- textures should now be able to be other sizes other than 256x256 (see gluBuild2DMipmaps line - it was
  hard coding the image size, but now is reading it from tempTex)
- integrated gun class
- got it to change weapon when you press 1 or 2 (change to weapon 1 boxgun or 2 shotgun) when not in editor
- baddies sink into the ground when they die (did this ages ago but missed it out from changelog)
- slowed down baddies a lot, the side-stepping maniacs were too hard to kill!
- since to change textures you need to point at a wall/floor/ceiling, it became necessary to be able to look
  up and down in editor mode. So the controls have now been 'improved' slightly. Page up and down look up and
  down. However, if you hold ctrl first, they raise/lower the floor, if you hold shift they raise/lower the ceiling
  and if you hold ctrl+shift then they raise/lower the floor and ceiling.
- made it so you can use a texture name instead of a number, although surfaces just use numbers cos they only
  need to cycle through them. Useful for baddies. Useage:
    void Baddie::draw(const TextureManager &texMan)
    {
      string texName = "robosoldier";
      int texId = texMan.getId(texName);
      if (texId > -1) glBindTexture(GL_TEXTURE_2D, texId);
      else cerr << "Texture not found: " << texName << endl;
    ...
28/6/04
- finished up reorganising
- made walls so you can change their textures
- disabled baddie movement when editor is active
- implemented it so that when you fire at a wall in editor mode it changes the texture
- made it load and save wall textures along with the level
- fixed a bullet collision with floor bug
- made it so you can change floor/ceiling textures, and load/save these with level
- stopped showing bullet when it's for changing textures
- speeded it up so texture change is 'instant'
- you can now change textures by pointing at a surface and pressing 'f' or 'g' to cycle
  forward or backward through textures respectively.
- can place baddies when in editor mode by pressing 'b'
- baddies now fire towards you if you're a different height
27/6/04
- reorganised everything so player has control, and objects communicate using reference parameters
- made it so you can delete a region by walking to it and double pressing 'd'
- increased draw distance
26/6/04
- made it so sky is saved/loaded
- bullets now hit ceiling correctly
- fixed 'corner of death' (one of the corners made things go haywire - turned out it was because of a division
  by zero in one of the normal calculations)
- removed unnecessary sqrts in player.cc
25/6/04
- added baddie ai to make it sidestep when it gets within a certain range. Looks cool!
- added a baddie texture to make it look like this weird llama type creature!
- noted problem with plain shaded stuff - always make sure you disable GL_TEXTURE_2D before
  drawing plain stuff cos otherwise the last texture used will influence colour.
24/6/04
- fixed bug that let you fly in example level - set pointHeights to oldPointHeights upon hit
- finally got it to look completely up and down by manually rotating an invisible 'lookAt' point
  around in 3D space as you move the mouse
- got bullets to fire up and down - no floor or ceiling collision yet though
23/6/04
- disabled editor controls when editor is deactivated (except left 'c' there for messing around)
- turned off the editor map/grid when editor is deactivated
- made it so left mouse button fires when editor is deactivated
- locked angleX to -90 - 90 in Pawn::turn()
- stopped it hopping when you look up and walk forward
- attempted to make it so you can look up and down vertically, although this is still not ideal
- moved translate to 'raise the camera' to after the perspective calculations so that you don't look
  down through walls
- put perspective back to normal for now (see gluPerspective - the aspect ratio was 1.2 to make things
  feel further away, but people may think this is a mistake so back to 1.0 for now)
- noted bug that level editor doesn't save whether regions are sky (no roof) or not. Will consider
  looking into object serialization and how to use it in C++ as this would make saving everything easier
- hidden mouse pointer when not in editor mode
- added crosshair
22/6/04
- fixed editor lighting bug - cheers Ben
- added Gun
- removed depth testing on gun to stop it going through walls
- cut down bullet move method to check collision on just one point
- added texture manager
- implemented two textures
- made a more complex level
- realised the need for island regions
- made bullets actually come from the gun, instead of centre of screen
- adjusted perspective to make things seem slightly further away and more spaced out
  (also hopefully making bullets look squarer, because they are!)
- improved editor so you no longer have to draw regions from the top left
  (but you still need to draw the points in a clockwise order)
- noticed gun seems to change colour when wall textures are resized! Not sure why
- made wall textures not use the whole texture if wall is thin (so texture doesn't appear so squashed)
- applied same principle to floor and ceiling textures, noting that it doesn't work for diagonals
- sorted it so you can make 'islands' within regions (but not pits)
- implemented mouse look! Press e to activate/deactivate editor (this will soon diable editor grid and controls)
  when editor is not active mouse look and strafe come into play!
21/6/04
- sorted out mipmapping for textures. Now runs a lot faster! Happy!
- improved handling by making accel and decel linear and increasing turn speed
- attempted to make walls feel less 'sticky' and more solid by penalising speed more upon a hit
- made a baddie with simple ai to turn slowly and follow player around
20/6/04
- put collision and other stuff in a pawn object
- added bullets
18/6/04
- added textures
- fixed loads of collision bugs (to do with ceiling joins, corners, setting ground value in more than one place)