             
             # Spritesheet de l'avion
             @layers = [
-                { speed: 10, alpha: 0.6, shift: 0, image: @scene.game.assets.backgroundMountainsB },
-                { speed: 20, alpha: 1,   shift: 0, image: @scene.game.assets.backgroundMountainsA },
-                { speed: 40, alpha: 0.6, shift: 0, image: @scene.game.assets.backgroundClouds },
+                {
+                    oncoming: 'bottom'
+                    speed: 10
+                    alpha: 0.6
+                    image: @scene.game.assets.backgroundMountainsB
+                }, {
+                    oncoming: 'bottom'
+                    speed: 20
+                    alpha: 1
+                    image: @scene.game.assets.backgroundMountainsA
+                }, {
+                    oncoming: 'top'
+                    speed: 40
+                    alpha: 0.6
+                    image: @scene.game.assets.backgroundClouds
+                }
             ]
         
         # Mise à jour

        handleDraw: (ctx) ->
            ctx.save()
            
            for layer in @layers
                @width = layer.image.width
                
                x = -@t * layer.speed + layer.shift % @scene.width
                x -= @width while x + @width > 0
                
                ctx.globalAlpha = layer.alpha or 1
                
                while x < @scene.width
                    ctx.drawImage(layer.image, x, @y)
                    x += @width
            
            ctx.restore()

define (require) ->
    
    Entity = require 'cs!game/entities/Entity'
    easeout = require('cs!helper').easeout
    
    class Background extends Entity
        
