Rev 5293 | Rev 5302 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5293 | Rev 5298 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | }; |
86 | }; |
Line 87... | Line 87... | ||
87 | 87 | ||
Line 88... | Line 88... | ||
88 | void player_hit() { |
88 | void player_hit() { |
- | 89 | ||
- | 90 | game.health--; |
|
- | 91 | game.bg_color = COLOR_DARK_RED; |
|
Line 89... | Line 92... | ||
89 | 92 | ||
90 | game.health--; |
93 | soundbuf_play( &game.sound_hit ); |
91 | 94 | ||
Line 398... | Line 401... | ||
398 | 401 | ||
399 | 402 | ||
- | 403 | ||
400 | 404 | for (i = 0; i < game.objs_count; i++) { |
|
401 | for (i = 0; i < game.objs_count; i++) { |
405 | if ( IS_BIT_SET( game.objs[i].flags, OBJ_FLAG_DESTROYED ) ) { |
402 | if ( IS_BIT_SET( game.objs[i].flags, OBJ_FLAG_DESTROYED ) ) { |
406 | soundbuf_play( &game.sound_explosions[ rs_rand() % SOUND_EXPLOSIONS_COUNT ] ); |
Line 403... | Line 407... | ||
403 | game_obj_add( game_obj( OBJ_EXPLOSION, 0, 0, EXPLOSION_RADIUS, game.objs[i].x, game.objs[i].y, 0, 0.0 ) ); |
407 | game_obj_add( game_obj( OBJ_EXPLOSION, 0, 0, EXPLOSION_RADIUS, game.objs[i].x, game.objs[i].y, 0, 0.0 ) ); |