Just so you know... I'm about to go to bed!
However, been working on alien classes so we don't have to hard code them into the game. When the aliens are spawned a list is checked to see if it's gfx has been loaded yet, if it has it attaches itself to that image if not it loads the gfx and adds it to this list.
This means that if you have a level with only 2 types of alien in it only 2 alien gfx sets are loaded, ie It loads stuff as it needs it.
Anyway, the alien class thus far is:
The turnspeed is a new one so the big aliens don't turn round as fast as the smaller ones... still got to code this lot in but it's getting there.
However, been working on alien classes so we don't have to hard code them into the game. When the aliens are spawned a list is checked to see if it's gfx has been loaded yet, if it has it attaches itself to that image if not it loads the gfx and adds it to this list.
This means that if you have a level with only 2 types of alien in it only 2 alien gfx sets are loaded, ie It loads stuff as it needs it.
Anyway, the alien class thus far is:
; Alien Class outline ; gfx stuff <gfxsize>64</gfxsize> <gfxframes>128</gfxframes> <health>10</health> ; start health of the alien <fdelay>10</fdelay> ; speed of animation (higher is slower) <frameTotal>8</frameTotal> ; The total number of frames in the animation <speed>1</speed> ; The speed the alien can move <radius>20</radius> ; The size of the alien <offset>32</offset> ; The pixel offset, ie a 64x64 sprite needs to offset 32 pixels to centre <bloods>0</bloods> ; first particle to use as blood <bloode>7</bloode> ; last particle to use as blood <hurtsound></hurtsound> ; sound for when the alien is hurt <deathsound></deathsound> ; sound for when the alien is killed <canshoot>0</canshoot> ; if the alien can shoot <bullettype>0</bullettype> ; bullet type if the alien is a shooter <shootdelay>0</shootdelay> ; speed of shooting the higher the slower the shooting <turnspeed></turnspeed> ; ** not yet implemented ** how fast the alien turns around
The turnspeed is a new one so the big aliens don't turn round as fast as the smaller ones... still got to code this lot in but it's getting there.