Tweaked rendering

This commit is contained in:
2022-07-02 13:52:31 +02:00
parent 529703b7e4
commit 6f54ba9477
4 changed files with 18 additions and 8 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ function state_menu()
local buttons = {
make_button({x=10, y=10, w=30, text="play", data={i=1},
on_click=function() set_state(states.game) end,
on_click=function() set_state(states.loading) end,
on_hover=function(btn) btn.color = 7 selected = 1 end,
on_draw=on_btn_draw}),
make_button({x=10, y=20, w=30, text="rules", data={i=2},
@@ -42,6 +42,7 @@ function state_menu()
end,
_draw = function()
cls()
for k,button in ipairs(buttons) do
button:draw(selected == k)
end
+1
View File
@@ -33,6 +33,7 @@ function state_rules()
end,
_draw=function()
cls()
custom_font()
print("1) yOU CAN'T HAVE MORE THAN\n TWO (2) CONSECUTIVE TILES\n OF THE SAME COLOR", 2,2, 7)