Merge branch 'master' of https://git.teletype.hu/games/impostor
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -28,6 +28,18 @@ local STATE_HANDLERS = {
|
||||
AudioTestWindow.update()
|
||||
AudioTestWindow.draw()
|
||||
end,
|
||||
[WINDOW_MINIGAME_BUTTON_MASH] = function()
|
||||
MinigameButtonMashWindow.update()
|
||||
MinigameButtonMashWindow.draw()
|
||||
end,
|
||||
[WINDOW_MINIGAME_RHYTHM] = function()
|
||||
MinigameRhythmWindow.update()
|
||||
MinigameRhythmWindow.draw()
|
||||
end,
|
||||
[WINDOW_MINIGAME_DDR] = function()
|
||||
MinigameDDRWindow.update()
|
||||
MinigameDDRWindow.draw()
|
||||
end,
|
||||
}
|
||||
|
||||
local initialized_game = false
|
||||
|
||||
@@ -6,3 +6,10 @@ function Print.text(text, x, y, color, fixed, scale)
|
||||
print(text, x + 1, y + 1, shadow_color, fixed, scale)
|
||||
print(text, x, y, color, fixed, scale)
|
||||
end
|
||||
|
||||
function Print.text_center(text, x, y, color, fixed, scale)
|
||||
scale = scale or 1
|
||||
local text_width = print(text, 0, -6, 0, fixed, scale)
|
||||
local centered_x = x - (text_width / 2)
|
||||
Print.text(text, centered_x, y, color, fixed, scale)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user