Ignore:
Timestamp:
Dec 23, 2002, 5:21:38 PM (20 years ago)
Author:
Sam Hocevar
Message:
  • new timestamp for a new snapshot.
  • lots of sanity checks in collide.c.
  • moved usleep() to graphics.c.
  • added random key generator in the dummy driver.
  • cosmetic changes in the energy bars.
File:
1 edited

Legend:

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

    r61 r63  
    44 *                 All Rights Reserved
    55 *
    6  *   $Id: main.c,v 1.15 2002/12/23 15:06:13 sam Exp $
     6 *   $Id: main.c,v 1.16 2002/12/23 16:21:38 sam Exp $
    77 *
    88 *   This program is free software; you can redistribute it and/or modify
     
    2525
    2626#include <string.h>
    27 #include <unistd.h>
     27
     28#include <time.h>
    2829
    2930#include "common.h"
     
    3536    game *g = malloc(sizeof(game));
    3637
    37     //srand(time(NULL));
     38    srand(time(NULL));
    3839
    3940    if( init_graphics() )
     
    165166        }
    166167
    167         usleep(40000);
     168        gfx_delay();
    168169
    169170        if( !poz || skip )
     
    201202
    202203            update_explosions( g, g->ex );
    203             /*if(purcompteur%2)*/ update_tunnel( g, g->t );
     204            update_tunnel( g, g->t );
    204205        }
    205206
Note: See TracChangeset for help on using the changeset viewer.