dungeon_crawler

diff prototype/src/main.cc @ 38:862461b686f4

start work on particle systems
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 29 Aug 2012 03:22:36 +0300
parents 938a6a155c94
children 060a44040577
line diff
     1.1 --- a/prototype/src/main.cc	Wed Aug 29 01:04:01 2012 +0300
     1.2 +++ b/prototype/src/main.cc	Wed Aug 29 03:22:36 2012 +0300
     1.3 @@ -10,6 +10,7 @@
     1.4  #include "renderer.h"
     1.5  #include "cmdcon.h"
     1.6  #include "cfg.h"
     1.7 +#include "timer.h"
     1.8  
     1.9  bool init(int xsz, int ysz);
    1.10  void cleanup();
    1.11 @@ -126,7 +127,7 @@
    1.12  
    1.13  void disp()
    1.14  {
    1.15 -	update(glutGet(GLUT_ELAPSED_TIME));
    1.16 +	update(get_time_msec());
    1.17  
    1.18  	if(cfg.stereo) {
    1.19  		glDrawBuffer(GL_BACK_LEFT);
    1.20 @@ -227,6 +228,8 @@
    1.21  
    1.22  	cam.input_move(dx, 0, dy);
    1.23  
    1.24 +	level->update(msec, dt);
    1.25 +
    1.26  	last_upd = msec;
    1.27  }
    1.28