rm $(INST)/curblaster
uninstall: remove
+check:
+ cppcheck --enable=warning,style,unusedFunction .
+test: check
+
clean:
rm *.o
rm curblaster
game_object enemy_shoot(game_object enemy, game_object player, game_object shot, int enshotchannel, Mix_Chunk *enshotsound){
int multiplier = 1;
- enshotchannel = play_sound_effect(enshotsound, enshotchannel);
+ play_sound_effect(enshotsound, enshotchannel);
shot.active=1;
//set direction
if(player.y<enemy.y){
const int landermax = 12;
const int crawlermax = 6;
const int missilemax = 3;
-const float version = 1.11;
+const float version = 1.12;
int score;
int lives;
strcpy (gate.line0, " ^ ");
strcpy (gate.line1, "/|\\");
strcpy (gate.radar, "|");
+ gate.chase = -1;
+ gate.phase = 0;
game_object gatebeam1;
gatebeam1.number = 11;
boomstuff.vspeed = 0;
boomstuff.vtime = 0;
boomstuff.phase = 0;
+ boomstuff.chase = -1;
strcpy (boomstuff.line0, "\\");
strcpy (boomstuff.line1, "/");
#include "play_sound_effect.h"
game_object encrazify(game_object lander, game_object crazy, Mix_Chunk *sound, int channel){
- channel = play_sound_effect(sound, channel);
+ play_sound_effect(sound, channel);
crazy.active=1;
crazy.x = lander.x;
crazy.y = lander.y;
return powerup;
};
-void determine_powerup(game_object powerups[], game_object object, int odds, Mix_Chunk *sound, int channel){
+void determine_powerup(game_object powerups[], game_object& object, int odds, Mix_Chunk *sound, int channel){
if(rand()%1000>odds){
for(int puploop = 0; puploop<4; puploop++){
if(powerups[puploop].active==0){
game_object powerup_init(game_object, game_object);
-void determine_powerup(game_object[], game_object, int, Mix_Chunk*, int);
+void determine_powerup(game_object[], game_object&, int, Mix_Chunk*, int);