 class Scene
   constructor: (@game) ->
     @layer = new Kinetic.Layer()
-    @layer.setVisible(false)
     @game.canvas.add(@layer)
-
-  start: () -> @layer.setVisible(true)
-  stop: () -> @layer.setVisible(false)
+    # Kinetic bug fix start
+    sprite = (new Kinetic.Sprite({
+      x: -99,
+      y: -99,
+      image: document.getElementById('tank_sprite'),
+      animation: 'brick',
+      animations: Animations.terrains,
+      frameRate: Animations.rate('brick'),
+      index: 0
+    }))
+    @layer.add(sprite)
+    sprite.start()
+    # Kinetic bug fix end
+    @layer.hide()
+
+  start: () -> @layer.show()
+  stop: () -> @layer.hide()
 
 class WelcomeScene extends Scene
   constructor: (@game) ->

  get_config: (key) -> @configs[key]
  init_default_config: () ->
    @configs = {
      fps: 60, players: 1, current_stage: 1,
      hi_score: 20000, p1_score: 0, p2_score: 0,
      last_score: 0, player_initial_life: 2, enemies_per_stage: 20,
    }

class StageScene extends Scene
  constructor: (@game) ->
    super(@game)
    @max_stage = @game.get_config('stages')
    @init_stage_nodes()

  start: () ->
    super()
