Ignore:
Timestamp:
Dec 23, 2002, 10:28:37 AM (17 years ago)
Author:
Sam Hocevar
Message:
  • the beam now digs the tunnel.
  • the starfield is now an array of stars.
  • fixed wall rendering (offset issues and disappearing left wall).
  • 32 seekers on fragbomb explosion, not 16.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/src/common.h

    r44 r50  
    44 *                 All Rights Reserved
    55 *
    6  *   $Id: common.h,v 1.9 2002/12/22 22:36:42 sam Exp $
     6 *   $Id: common.h,v 1.10 2002/12/23 09:28:37 sam Exp $
    77 *
    88 *   This program is free software; you can redistribute it and/or modify
     
    2222
    2323#define STARS 50
    24 #define WEAPONS 100
     24#define WEAPONS 200
    2525#define BONUS 30
    2626#define ALIENS 30
    27 #define EXPLOSIONS 100
     27#define EXPLOSIONS 200
    2828
    2929#ifdef USE_SLANG
     
    4444
    4545#define GET_RAND(p,q) ((p)+(int)((1.0*((q)-(p)))*rand()/(RAND_MAX+1.0)))
     46#define GET_MAX(a,b) ((a)>(b)?(a):(b))
     47#define GET_MIN(a,b) ((a)<(b)?(a):(b))
    4648
    4749typedef struct
     
    5355typedef struct
    5456{
    55     int x[STARS];
    56     int y[STARS];
    57     int z[STARS];
    58     char ch[STARS];
    59     int c[STARS];
     57    int x, y, z, c;
     58    char ch;
    6059
    6160} starfield;
     
    170169void add_bonus( game *g, bonus *bo, int x, int y, int type );
    171170
    172 void init_starfield( game *g, starfield *s );
     171starfield * create_starfield( game *g );
    173172void draw_starfield( game *g, starfield *s );
    174173void update_starfield( game *g, starfield *s );
     174void free_starfield( game *g, starfield *s );
    175175
    176176tunnel * create_tunnel( game *g, int w, int h );
Note: See TracChangeset for help on using the changeset viewer.