feature/task110_sprite_silhouette #51

Merged
mr.three merged 8 commits from feature/task110_sprite_silhouette into develop 2026-04-09 19:47:29 +00:00
3 changed files with 4 additions and 2 deletions
Showing only changes of commit a4a6ad2ab2 - Show all commits

View File

@@ -17,7 +17,8 @@ function Config.initial_data()
blue = 3, blue = 3,
white = 4, white = 4,
item = 7, item = 7,
meter_bg = 1 meter_bg = 1,
transparent = 12
}, },
timing = { timing = {
minigame_win_duration = 180 minigame_win_duration = 180

View File

@@ -3,7 +3,7 @@ local _sprites = {}
local _active_sprites = {} local _active_sprites = {}
local function draw_sprite_instance(sprite_data, params) local function draw_sprite_instance(sprite_data, params)
local colorkey = params.colorkey or sprite_data.colorkey or 0 local colorkey = params.colorkey or sprite_data.colorkey or Config.colors.transparent
local scale = params.scale or sprite_data.scale or 1 local scale = params.scale or sprite_data.scale or 1
local flip_x = params.flip_x or sprite_data.flip_x or 0 local flip_x = params.flip_x or sprite_data.flip_x or 0
local flip_y = params.flip_y or sprite_data.flip_y or 0 local flip_y = params.flip_y or sprite_data.flip_y or 0

View File

@@ -7,6 +7,7 @@ local initialized_game = false
local function init_game() local function init_game()
if initialized_game then return false end if initialized_game then return false end
Context.reset() Context.reset()
poke(0x03FF, 1 << Config.colors.transparent) -- Set the default transparent color in the palette
Window.set_current("intro_title") -- Set initial window using new manager Window.set_current("intro_title") -- Set initial window using new manager
MenuWindow.refresh_menu_items() MenuWindow.refresh_menu_items()
initialized_game = true initialized_game = true