mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-30 08:34:59 +00:00
feat: Enhance mouse grab functionality and improve logging in SDL window service
This commit is contained in:
@@ -574,8 +574,8 @@ local function create_room_objects()
|
||||
{room.wall_thickness, room.wall_height, room.half_size}, green_wall),
|
||||
}
|
||||
|
||||
-- Add lanterns in the four corners
|
||||
local lantern_offset = 4.0
|
||||
-- Add lanterns in the four corners (adjusted for bigger room)
|
||||
local lantern_offset = room.half_size - 2.0 -- 2 units from wall
|
||||
objects[#objects + 1] = create_lantern(lantern_offset, lantern_offset)
|
||||
objects[#objects + 1] = create_lantern(-lantern_offset, lantern_offset)
|
||||
objects[#objects + 1] = create_lantern(lantern_offset, -lantern_offset)
|
||||
|
||||
@@ -324,6 +324,7 @@ def _sync_assets(build_dir: str, dry_run: bool) -> None:
|
||||
("scripts", ["*.lua"]),
|
||||
("shaders", ["*.spv"]),
|
||||
("scripts/models", ["*.stl", "*.obj", "*.fbx"]),
|
||||
("config", ["*.json"]),
|
||||
]
|
||||
|
||||
print("\n=== Syncing Assets ===")
|
||||
@@ -369,7 +370,7 @@ def run_demo(args: argparse.Namespace) -> None:
|
||||
|
||||
exe_name = args.target or ("sdl3_app.exe" if IS_WINDOWS else "sdl3_app")
|
||||
binary = str(Path(build_dir) / exe_name)
|
||||
cmd: list[str] = [binary]
|
||||
cmd: list[str] = [binary, "-j", "config/seed_runtime.json"]
|
||||
run_args = _strip_leading_double_dash(args.args)
|
||||
if run_args:
|
||||
cmd.extend(run_args)
|
||||
|
||||
Reference in New Issue
Block a user