Hello, I will take a small break from this and begin work on an editor. Currently all the levels/waves are generated using code.
For example level 1 is this function call:
Rem LKW - ***********************************************************************
Rem LKW - * Function enemy_CreateEnemy *
Rem LKW - ***********************************************************************
Rem LKW - * ENEMY ID, *
Rem LKW - * AMOUNT, *
Rem LKW - * LOCATION, *
Rem LKW - * 0-left, 1-right, 2-top, 3-bottom *
Rem LKW - * 4-circle, 5-random, 6-userdefined *
Rem LKW - * RADIUS#, *
Rem LKW - * X POSITION#, *
Rem LKW - * Y POSITION#, *
Rem LKW - * TIME BEFORE SPAWN, *
Rem LKW - * -1 - when last enemy from previous *
Rem LKW - * wave was killed. *
Rem LKW - * 0 - instantly *
Rem LKW - * +1 - any value 1 or higher will be *
Rem LKW - * counted as milliseconds *
Rem LKW - * LEVEL ID (parent) *
Rem LKW - ***********************************************************************
id = wave_create()
enemy_CreateEnemy( 1, 5*mu, 5, 0, 0, 0, 0, id )
enemy_CreateEnemy( 1, 10*mu, 5, 0, 0, 0, -1, id )
enemy_CreateEnemy( 1, 15*mu, 5, 0, 0, 0, -1, id )
enemy_CreateEnemy( 1, 20*mu, 5, 0, 0, 0, -1, id )
enemy_CreateEnemy( 1, 10*mu, 0, 0, 0, 0, -1, id )
enemy_CreateEnemy( 1, 10*mu, 1, 0, 0, 0, 1, id )
enemy_CreateEnemy( 1, 10*mu, 2, 0, 0, 0, 1, id )
enemy_CreateEnemy( 1, 10*mu, 3, 0, 0, 0, 1, id )
enemy_CreateEnemy( 1, 20*mu, 5, 0, 0, 0, 1, id )
wave(id).LevelCode = "WELCOME"
wave(id).LEvelTime = 36500
As you can guess, this is sometimes hard to figure out and require a lot of compiling and testing. It would be much easier and faster if I had an editor for this bit of level design.
Here is the demo and progress notes. You currently have unlimited life.
Controls:
WASD - move
Mouse - shoot / aim
P - pause (currently bugs the timers, essentially you can cheat by pausing)
SPACE - exit pause
ESC - end game
Download:
v0.2
Any immediate bugs you find, let me know and I will compile a quick update. Meanwhile, this game is on a stall until the Editor is complete.
Log:
6 Jan 2013 (v0.2)
Updated: Set main menu design
Updated: Adjusted coin size
Added: Select display resolution
Added: Select difficulty
Added: Enable/disable particles and, or background effects
Added: Player can not die during level swap
Added: 4 new enemies
Added: Enemy shoot
Screenshot: