diff options
| author | Arslaan Pathan <[email protected]> | 2025-06-14 20:02:12 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2025-06-14 20:02:12 +1200 |
| commit | 37127e7d25d003b2526f06fa894736abe80b8454 (patch) | |
| tree | 439cdf2cc9fe1b869a3fab8db52e5a0c1eef6997 /assets/scripts/character-select.lua | |
| parent | ed38ddd48d0393ba4296ac4ba34e92d791be0f3e (diff) | |
| download | showdownofthesticks-37127e7d25d003b2526f06fa894736abe80b8454.tar.xz showdownofthesticks-37127e7d25d003b2526f06fa894736abe80b8454.zip | |
queueTextForRender, starting character select, new character portraits - at least placeholders, the art is shit right now
Diffstat (limited to 'assets/scripts/character-select.lua')
| -rw-r--r-- | assets/scripts/character-select.lua | 24 |
1 files changed, 24 insertions, 0 deletions
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 |
