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

47 lines
697 B
CoffeeScript

canvas = document.getElementById 'canvas'
context = canvas.getContext '2d'
context.textAlign = 'center';
# the config
config =
gamewin: false
gameover: false
pixelsize: 15
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
# tmp: level
shadow_layer = enemy_layer = null