Changeset 68
- Timestamp:
- Jan 6, 2003, 1:22:58 PM (20 years ago)
- Location:
- ttyvaders/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ttyvaders/trunk/TODO
r66 r68 41 41 * the nuke should break the tunnel 42 42 43 * the laser stays alive when the ship exploded 44 -
ttyvaders/trunk/src/collide.c
r64 r68 4 4 * All Rights Reserved 5 5 * 6 * $Id: collide.c,v 1.1 0 2002/12/23 16:21:38 sam Exp $6 * $Id: collide.c,v 1.11 2003/01/06 12:22:58 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 56 56 if( x <= t->left[y] ) 57 57 { 58 if( y-2 >= 0 ) t-> right[y-2] -= damage - 1;58 if( y-2 >= 0 ) t->left[y-2] -= damage - 1; 59 59 if( y-1 >= 0 ) t->left[y-1] -= damage; 60 60 t->left[y] -= damage + 1; 61 61 if( y+1 < g->h ) t->left[y+1] -= damage; 62 if( y+2 < g->h ) t-> right[y+2] -= damage - 1;62 if( y+2 < g->h ) t->left[y+2] -= damage - 1; 63 63 } 64 64 else … … 98 98 if( x <= t->left[y+j] ) 99 99 { 100 if( y+j-1 >= 0 ) 101 { 102 t->left[y+j-1]--; 103 } 100 if( y+j-1 >= 0 ) t->left[y+j-1]--; 104 101 t->left[y+j] -= 2; 105 if( y+j+1 < g->h ) 106 { 107 t->left[y+j+1]--; 108 } 102 if( y+j+1 < g->h ) t->left[y+j+1]--; 109 103 } 110 104 else 111 105 { 112 if( y+j-1 >= 0 ) 113 { 114 t->right[y+j-1]++; 115 } 106 if( y+j-1 >= 0 ) t->right[y+j-1]++; 116 107 t->right[y+j] += 2; 117 if( y+j+1 < g->h ) 118 { 119 t->right[y+j+1]++; 120 } 108 if( y+j+1 < g->h ) t->right[y+j+1]++; 121 109 } 122 110 break; … … 294 282 p->vx = 2; 295 283 add_explosion( g, ex, p->x+1, p->y-1, 0, 0, EXPLOSION_SMALL ); 296 p->life -= 80;284 p->life -= 180; 297 285 } 298 286 else if( p->x + 5 >= t->right[p->y] ) … … 301 289 p->vx = -2; 302 290 add_explosion( g, ex, p->x+4, p->y-1, 0, 0, EXPLOSION_SMALL ); 303 p->life -= 80;291 p->life -= 180; 304 292 } 305 293 }
Note: See TracChangeset
for help on using the changeset viewer.