Ignore:
Timestamp:
Dec 23, 2002, 2:46:27 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • aliens are now named foo, bar and baz.
  • beginning of life jauges.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/src/collide.c

    r50 r60  
    44 *                 All Rights Reserved
    55 *
    6  *   $Id: collide.c,v 1.8 2002/12/23 09:28:37 sam Exp $
     6 *   $Id: collide.c,v 1.9 2002/12/23 13:46:27 sam Exp $
    77 *
    88 *   This program is free software; you can redistribute it and/or modify
     
    262262void collide_player_tunnel( game *g, player *p, tunnel *t, explosions *ex )
    263263{
     264    if( p->dead )
     265    {
     266        return;
     267    }
     268
    264269    if( p->x <= t->left[p->y] )
    265270    {
    266271        p->x += 2;
    267272        add_explosion( g, ex, p->x+1, p->y-2, 0, 0, EXPLOSION_SMALL );
     273        p->life -= 50;
    268274    }
    269275    else if( p->x + 5 >= t->right[p->y] )
     
    271277        p->x -= 2;
    272278        add_explosion( g, ex, p->x+4, p->y-2, 0, 0, EXPLOSION_SMALL );
     279        p->life -= 50;
    273280    }
    274281}
Note: See TracChangeset for help on using the changeset viewer.