This commit is contained in:
35
inc/config.lua
Normal file
35
inc/config.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
--------------------------------------------------------------------------------
|
||||
-- Game Configuration
|
||||
--------------------------------------------------------------------------------
|
||||
local Config = {
|
||||
screen = {
|
||||
width = 240,
|
||||
height = 136
|
||||
},
|
||||
colors = {
|
||||
black = 0,
|
||||
light_grey = 13,
|
||||
dark_grey = 14,
|
||||
green = 6,
|
||||
npc = 8,
|
||||
item = 12 -- yellow
|
||||
},
|
||||
player = {
|
||||
w = 8,
|
||||
h = 8,
|
||||
start_x = 120,
|
||||
start_y = 128,
|
||||
sprite_id = 1
|
||||
},
|
||||
physics = {
|
||||
gravity = 0.5,
|
||||
jump_power = -5,
|
||||
move_speed = 1.5,
|
||||
max_jumps = 2,
|
||||
interaction_radius_npc = 12, -- New constant
|
||||
interaction_radius_item = 8 -- New constant
|
||||
},
|
||||
timing = {
|
||||
splash_duration = 120 -- 2 seconds at 60fps
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user