 blessed = require 'blessed'
-player  = require('play-sound')(opts = {})
+player  = require 'sfx'
 _       = require 'lodash'
+
+player.say("Welcome Green Elf")
 
 screen = blessed.screen({fastCSR: true})
 

mapStepSize = 10
walk = (wat, huh, where) ->
  wat[huh] += where
  player.play('./lib/assets/sound/steps.wav', (err) -> )
walkDatIcon = _.partial(walk, icon)

screen.key ['j'], (ch, key) -> walkDatIcon('top',  -1 * mapStepSize)

screen.key ['h'], (ch, key) -> walkDatIcon('left', -1 * mapStepSize)
screen.key ['l'], (ch, key) -> walkDatIcon('left',  mapStepSize)

mapScale = 1

screen.key ['m'], (ch, key) ->
  icon.width = icon.height = "100%"
  icon.scale = mapScale
  icon.setImage(bigmap)

screen.key ['r'], (ch, key) ->
