anchor.diff:  num initialPauseInMillis = 400;
   num pauseInMillis = initialPauseInMillis;
   num tailIncreaseInterval = 5000;
  -
  -
   
   class Gold {
     Random rnd;
  
positive.code: const int WIDTH = 640;
  const int HEIGHT = 480;
  
  drawText(CanvasRenderingContext2D canvas, String text, String color) {
    canvas.clearRect(0, 0, WIDTH, HEIGHT);
    canvas.fillStyle = color;
    canvas.fillRect(0, 0, WIDTH, HEIGHT);
    canvas.font = "italic bold 24px sans-serif";
    canvas.strokeText(text, 0, 100);
  }
  
  // Create a simple state implementing only the handlers you care about
  class InitialState extends SimpleHtmlState {
    void onRender(GameLoop gameLoop) {
      print("Render initial_state");
      drawText(canvas, "Initial State", "rgb(255,0,102)");
    }
  
    void onKeyDown(KeyboardEvent event) {
      event.preventDefault();
  
      print("Key event");
      print("Switching to $custom_state_1");
      print("Rendering with ${custom_state_1.onRender}}");
      gameLoop.state = custom_state_1;
    }
  }
  //
  // To do this without creating a custom class, just pass your unique handler
  // functions in to the `GameLoopHtmlState` constructor.
  
negative.code: }
  
  
  void newGame() {
    print("newGame triggered");
  
  