4
0

split source
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-12-10 22:33:36 +01:00
parent 94931d3651
commit 9dfbdcd052
24 changed files with 1086 additions and 935 deletions

35
inc/config.lua Normal file
View 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
}
}