Introduces the transparent color. The default is the pink.
This commit is contained in:
@@ -17,7 +17,8 @@ function Config.initial_data()
|
||||
blue = 3,
|
||||
white = 4,
|
||||
item = 7,
|
||||
meter_bg = 1
|
||||
meter_bg = 1,
|
||||
transparent = 12
|
||||
},
|
||||
timing = {
|
||||
minigame_win_duration = 180
|
||||
|
||||
@@ -3,7 +3,7 @@ local _sprites = {}
|
||||
local _active_sprites = {}
|
||||
|
||||
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 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
|
||||
|
||||
@@ -7,6 +7,7 @@ local initialized_game = false
|
||||
local function init_game()
|
||||
if initialized_game then return false end
|
||||
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
|
||||
MenuWindow.refresh_menu_items()
|
||||
initialized_game = true
|
||||
|
||||
Reference in New Issue
Block a user