 
 class Game
   constructor: (@engine) ->
-    @hadGameOver = false
+    @had_game_over = false
     @stars = []
     @meteors = []
     @batch = new Batch()

      pos: new Vec2d(0, @engine.size.y / 2)
    @ship_vel = new Vec2d()

    @nextMeteorInterval = 0.3
    @nextMeteor = @nextMeteorInterval

    @score = 0


    @engine.start()

  update: (dt) =>
    if @had_game_over
      if @engine.buttonJustPressed(Button.Key_Space)
        location.href = location.href
      return
    score_per_sec = 60
    @score += score_per_sec * dt

    @next_meteor_at -= dt
    if @next_meteor_at <= 0
      @next_meteor_at = @meteor_interval
      @createMeteor()

    @meteor_interval -= dt * 0.01

    for obj_list in [@stars, @meteors]
      for obj in obj_list
