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

51 lines
769 B
CoffeeScript
Raw Normal View History

2013-06-13 21:15:18 +02:00
canvas = document.getElementById 'canvas'
context = canvas.getContext '2d'
context.textAlign = 'center';
2013-06-13 21:46:14 +02:00
gamestates =
2013-06-13 22:02:36 +02:00
RUN: 'RUN'
WIN: 'WIN'
OVER: 'OVER'
2013-06-13 21:46:14 +02:00
2013-06-13 21:15:18 +02:00
config =
2013-06-13 21:46:14 +02:00
gamestate: gamestates.RUN
2013-06-13 21:15:18 +02:00
pixelsize: 15
2013-06-13 21:46:14 +02:00
debug_available: true
2013-06-13 21:15:18 +02:00
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
2013-07-11 22:55:45 +02:00
shadow_layer = null
enemy_layer = null
selected_layer = null