 define (require) ->
     
     Entity = require 'cs!game/entities/Entity'
+    floor = Math.floor
     
     class Plane extends Entity
         

            @speedLossUphill = 600
            @speedLossDownhill = 500
            
        
        # Mise à jour
        # @param Number dt

        # @param CanvasRenderingContext2D
        handleDraw: (ctx) ->
            
            ctx.save()
            ctx.translate(floor(@x + @width * 0.5), floor(@y + @height * 0.5))
            ctx.rotate(@frame/3*15 * Math.PI / 180)
            ctx.translate(floor(- @width * 0.5), floor(- @height * 0.5))
            
            ctx.drawImage(@image,
                          0, @height * (@frame + 3),
                          @width, @height,
                          0, 0,
                          @width, @height)
            
            ctx.restore()
        
        
        # Appliquer le déplacement vertical
