Ignore:
Timestamp:
Dec 23, 2002, 1:03:31 PM (18 years ago)
Author:
Sam Hocevar
Message:
  • lasers are now twice as fast.
  • walls are now filled, and displayed on top of aliens.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/main.c

    r51 r53  
    44 *                 All Rights Reserved
    55 *
    6  *   $Id: main.c,v 1.10 2002/12/23 10:06:27 sam Exp $
     6 *   $Id: main.c,v 1.11 2002/12/23 12:03:31 sam Exp $
    77 *
    88 *   This program is free software; you can redistribute it and/or modify
     
    7676
    7777    /* Temporary stuff */
    78     for( i = 0; i < 5; i++ )
    79     {
    80         add_alien( g, g->al, rand() % g->w, rand() % g->h / 2, ALIEN_POOLP );
    81     }
    82 
    8378    g->t->w = 25;
    8479
     
    147142                    {
    148143                        g->p->weapon = 4;
    149                         add_weapon( g, g->wp, g->p->x << 4, g->p->y << 4, 0, -16, WEAPON_LASER );
    150                         add_weapon( g, g->wp, (g->p->x + 5) << 4, g->p->y << 4, 0, -16, WEAPON_LASER );
     144                        add_weapon( g, g->wp, g->p->x << 4, g->p->y << 4, 0, -32, WEAPON_LASER );
     145                        add_weapon( g, g->wp, (g->p->x + 5) << 4, g->p->y << 4, 0, -32, WEAPON_LASER );
    151146                        /* Extra shtuph */
    152147                        add_weapon( g, g->wp, g->p->x << 4, g->p->y << 4, -24, -16, WEAPON_SEEKER );
    153148                        add_weapon( g, g->wp, (g->p->x + 5) << 4, g->p->y << 4, 24, -16, WEAPON_SEEKER );
    154149                        /* More shtuph */
    155                         add_weapon( g, g->wp, (g->p->x + 1) << 4, (g->p->y - 1) << 4, 0, -16, WEAPON_LASER );
    156                         add_weapon( g, g->wp, (g->p->x + 4) << 4, (g->p->y - 1) << 4, 0, -16, WEAPON_LASER );
     150                        add_weapon( g, g->wp, (g->p->x + 1) << 4, (g->p->y - 1) << 4, 0, -32, WEAPON_LASER );
     151                        add_weapon( g, g->wp, (g->p->x + 4) << 4, (g->p->y - 1) << 4, 0, -32, WEAPON_LASER );
    157152                        /* Even more shtuph */
    158                         add_weapon( g, g->wp, (g->p->x + 2) << 4, (g->p->y - 1) << 4, 0, -16, WEAPON_LASER );
    159                         add_weapon( g, g->wp, (g->p->x + 3) << 4, (g->p->y - 1) << 4, 0, -16, WEAPON_LASER );
     153                        add_weapon( g, g->wp, (g->p->x + 2) << 4, (g->p->y - 1) << 4, 0, -32, WEAPON_LASER );
     154                        add_weapon( g, g->wp, (g->p->x + 3) << 4, (g->p->y - 1) << 4, 0, -32, WEAPON_LASER );
    160155                        /* Extra shtuph */
    161156                        add_weapon( g, g->wp, g->p->x << 4, g->p->y << 4, -32, 0, WEAPON_SEEKER );
     
    210205        /* Print starfield, tunnel, aliens, player and explosions */
    211206        draw_starfield( g, g->sf );
     207        draw_aliens( g, g->al );
    212208        draw_tunnel( g, g->t );
    213209        draw_bonus( g, g->bo );
    214         draw_aliens( g, g->al );
    215210        draw_explosions( g, g->ex );
    216211        draw_weapons( g, g->wp );
     
    225220    free_starfield( g, g->sf );
    226221    free_tunnel( g->t );
    227 //    free_player( g->p );
     222    free_player( g->p );
    228223}
    229224
Note: See TracChangeset for help on using the changeset viewer.