UIClass ui; //Yep
World *currentWorld;//u-huh
-//static int randNext=1;
-
-void irand(unsigned int seed){
- srand(seed);
-}
-
-int grand(void){
- return rand();
-}
-
void logic();
void render();
**************************/
irand(time(NULL));
-
entPlay = &player;
entPlay->spawn(0, 0);
build.spawn(-1, (grand()%20)-10, 0);
-
// Generate the world
World *w=NULL,*w2=NULL;
w2=new World(4,w,NULL);
float gw;
+
while(gameRunning){
prevTime = currentTime;
currentTime = SDL_GetTicks();