Introduces the transparent color. The default is the pink.

This commit is contained in:
2026-04-09 13:46:05 +02:00
parent 87d4f5843b
commit a4a6ad2ab2
3 changed files with 4 additions and 2 deletions

View File

@@ -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