anchor.diff:      goToLevel("resources/levels/level_$currentlevel.json");
     }
   
  -  bool loop(int looptime)
  -  {
  -    if(stop == true)
  -      return false;
  -    if(lastTime == null)
  -      lastTime = looptime;
  -
  -    update(looptime);
  -
  -    //framerate
  -    int now = looptime;//(new Date.now()).value;
  -    int delta = now-lastTime;
  -    lastTime = now;
  -    time += delta;
  -    frames++;
  -    if(time > 1000)
  +  void loop(double looptime)
  +  {
  +    if(stop != true)
       {
  -      fps = (1000*frames/time).toInt();
  -      time = 0;
  -      frames = 0;
  +      if(lastTime == null)
  +        lastTime = looptime;
  +
  +      update(looptime);
  +
  +      //framerate
  +      double now = looptime;//(new Date.now()).value;
  +      double delta = now-lastTime;
  +      lastTime = now;
  +      time += delta;
  +      frames++;
  +      if(time > 1000)
  +      {
  +        fps = (1000*frames/time).toInt();
  +        time = 0.0;
  +        frames = 0;
  +      }
  +    
  +      window.requestAnimationFrame(loop);
       }
  -    
  -    window.requestAnimationFrame(loop);
  -  }
  -  void update(int looptime)
  +  }
  +
  +  void update(double looptime)
     {
       for(int i = 0; i < gameobjects.length; i++)
         gameobjects[i].update(lastTime, looptime);
  
positive.code: /**
  Platform game example
   
  @author Danny Hendrix
  **/
  
  #library('PlatformGame');
  
  #import ("dart:html");
  
  #import ("Render.dart");
  #import ("Camera.dart");
  #import ("MessageController.dart");
  #import ("level/Level.dart");
  #import ("renderobjects/gameobjects/Player.dart");
  #import ("renderobjects/gameobjects/GameObject.dart");
  
  #import ("../utils/PreLoader.dart");
  #import("../utils/JsonController.dart");
  #import("../utils/Vector.dart");
  
  /**
  Main Game class
  
negative.code: 
    //framerate
    int frames = 0;
    double lastTime;
    double time = 0.0;
    int fps = 0;
    
    static final int GRAVITY = 8;
  