Playing around with Canvas Query.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
455 B

app = playground(
width: 8*20,
height: 8*15,
scaleToFit: true,
smoothing: false,
create: ->
@loadImages "layers", "active", "progress", "selected", "entities", "hud", "actions", "speechbubbles"
@currentHoveredTile = new Tile
ready: ->
@setState @game
render: ->
@layer.clear "#00f"
layerIndexToName: (index)->
resTypes = (k for own k of @game.resources)