OHAI
i am making fucking ultra huge progress with my game currently.
today i added rank and size variables to enemies, so when i spawn them, I can set its size and rank. this gives me an unlimited amount of different types for each enemy object, with a spectrum of freely chosable sizes and ranks from 1-11.
rank modifies all sorts of things, like damagemultiplicator, health, speed, value (=the kill money) etc.
size makes the ship more clumpsy (=turn slower), but with more health and more POWAR (and of course with less movement speed
)
also added rank sprites, so you can see what rank the enemy haz.
hp=20*rank*size;
badguy=1;
speed=(3+(rank-1))/size;
shipsize=0.3*size;
value=5*rank*size;
damagemultiplicator=1*rank*size;
deathtype=0; //=explosion
explosionsize=0.5*size;
fireratedeviation=50;
firerate=round(100/(rank+0.01));
mturnspeed=5*rank/size;
aturnspeed=5*rank/size;
mycolor=c_black;
movement='straight';
aim='straight';
weapon='shotgun';
firesound=snd_shotgun;
munition=obj_shotgun_ball;
bounce=0;
bulletspeed=10+(rank-1);
bulletspread=20+(rank-1);
bulletcount=20+(rank-1)*2;
bulletsize=0.05*size;
bulletdeathtype=6;
bulletexplosionsize=0.5*size;
bullethelp=0;
bulletcounter=0;
maxhp=hp;
fire=random_range(-fireratedeviation,fireratedeviation);
image_blend=mycolor;
image_angle = point_direction(x,y,obj_ship.x,obj_ship.y);
direction = point_direction(x,y,obj_ship.x,obj_ship.y);
image_xscale=shipsize;
image_yscale=shipsize;
it will be a lot of work to bring balance into the game.
as the above code shows, if I spawn a mega huge enemy, with a maximum rank of 11, the health will be... 55-folded lol. but i guess its fine, since its like the best enemy to ever be spawned.
stolen the rank thingys from here:
http://de.wikipedia.org/wiki/Dienstgrade_der_Streitkr%C3%A4fte_der_Vereinigten_Staatenhere, this is how the above coded enemy looks:
(is shotgun enemy..
)
also think about the unlimited possiblities for custom enemy tools. people can play around with ranks and ship sizes as much as they want
man the more i code this shitty game, the more addictive it gets.