Tweaked rendering
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user