 window.AdventureBattle = class AdventureBattle
+    assetPaths: ['static/assets/wall.json']
     viewport: null
     player: null
 

    setupGame: ->
        @setupPixi()
        @setupConnection()
        @startGameLoop()

    setupPixi: ->
        @stage = new PIXI.Stage 0xf5f5f5
        @renderer = new PIXI.WebGLRenderer 1024, 576
        @viewport.append @renderer.view

    setupConnection: ->
        @socket = io.connect 'http://localhost:5000'


        requestAnimationFrame browserFrameHook

        slice1 = PIXI.Sprite.fromFrame("edge_01")
        slice1.position.x = 32
        slice1.position.y = 64
        this.stage.addChild(slice1)

    nextAnimationFrame: ->
        @renderer.render @stage