Browse Source

rand()

jl777
jl777 5 years ago
parent
commit
c166507c62
  1. 6
      src/cc/tetris.c

6
src/cc/tetris.c

@ -1,6 +1,12 @@
#include "tetris.h"
/*
In order to port a game into gamesCC, the RNG needs to be seeded with the gametxid seed, also events needs to be broadcast using issue_games_events
*/
int rand();
static int random_tetromino(void)
{
return rand() % NUM_TETROMINOS;

Loading…
Cancel
Save