-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
83 lines (62 loc) · 1.5 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
local vector = require "lib.vector"
local config = {
trigger_collections = {
"tutorial_trigger",
"lore_trigger"
},
initial_level = "entrance",
initial_spawner = "initial_spawn",
time_step = 1.0 / 200.0,
tile_size = 16,
tileset_width = 320,
tileset_height = 320,
tileset_rows = 20,
tileset_columns = 20,
window_width = 768,
window_height = 576,
text_display = {
width = 600,
y = 150,
font = 'res/blocktopia.ttf'
},
player = {
respawn_time = 3,
size = vector(16, 32),
origin = vector(8, 32),
fall_through_time = 0.1,
acceleration = 500,
friction = 0.95,
jump_attenuation = 0.6,
blaster = {
cooldown = 0.4,
velocity = 400,
damage = 1
},
super_blaster = {
cooldown = 0.3,
velocity = 400,
damage = 3
},
jump = {
impulse = 180,
float_time = 0.2,
float_gravity = 50,
},
high_jump = {
impulse = 220,
float_time = 0.2,
float_gravity = 50,
},
gravity = 800
},
enemies = {
patroller_speed = 48
}
}
config.object_colors = {
spawn = { 0x00, 0xFF, 0xFF },
exit = { 0xAA, 0xFF, 0x00 },
killbox = { 0xFF, 0x00, 0x00 },
scarab = { 0xFF, 0x00, 0xFF }
}
return config;