From 37127e7d25d003b2526f06fa894736abe80b8454 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Sat, 14 Jun 2025 20:02:12 +1200 Subject: queueTextForRender, starting character select, new character portraits - at least placeholders, the art is shit right now --- assets/scripts/character-select.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 assets/scripts/character-select.lua (limited to 'assets/scripts/character-select.lua') diff --git a/assets/scripts/character-select.lua b/assets/scripts/character-select.lua new file mode 100644 index 0000000..c3f7e52 --- /dev/null +++ b/assets/scripts/character-select.lua @@ -0,0 +1,24 @@ +---@diagnostic disable: undefined-global + +characters = {"Cobalt Phantom", "Emerald Venom", "Golden Radiance", "Crimson Reaper"} +player1Character = "" +player2Character = "" + +function Setup() + print(characterSelectType) +end + +function Update() + local fontFile = "assets/fonts/OpenSans-Bold.ttf" + local fontSize = 50 + local text = "Character Select" + + local textWidth = getTextWidth(fontFile, fontSize, text) + local x = (WIDTH - textWidth) // 2 + local y = 20 + + queueTextForRender(text, fontFile, x, y, fontSize, 255, 255, 255, 255) + + + +end \ No newline at end of file -- cgit v1.2.3