bacongamejam05-notsoalonein.../src/config.coffee

51 lines
769 B
CoffeeScript

canvas = document.getElementById 'canvas'
context = canvas.getContext '2d'
context.textAlign = 'center';
gamestates =
RUN: 'RUN'
WIN: 'WIN'
OVER: 'OVER'
config =
gamestate: gamestates.RUN
pixelsize: 15
debug_available: true
debug: false
lights: true
map:
width: 60
height: 40
origin:
x: 0
y: 50
player =
position: 0
lightrange: 10
blocks =
walkable: [1, 0, 4, 6, 7, 8]
entities: [1, 2, 7, 5, 6, 8]
colors =
floor: '#eeeeee'
wall: '#333333'
player: '#850091'
key: '#ffe91a'
door: '#0883fd'
exit: '#07fd0f'
breakable: '#bf7d0b'
inventar =
key: false
#candles: 0
#sticks: 0
#lighter: false
levels = []
current_level = 0
level = null
shadow_layer = null
enemy_layer = null
selected_layer = null