Menu additions and Function
- Menu now has buttons - Menu buttons will change color when hovered over - Menu "start" button now changes stage to the Game Test
This commit is contained in:
parent
f68115733e
commit
e9da50897f
6 changed files with 123 additions and 11 deletions
|
|
@ -2,5 +2,6 @@ CloisterBlackLight = love.graphics.newFont("GFX/fonts/CloisterBlackLight-axjg.tt
|
|||
Dearkatie = love.graphics.newFont("GFX/fonts/Dearkatienbp-nZeg.ttf", 20)
|
||||
Effexor_Intro = love.graphics.newFont("GFX/fonts/Effexor-AEm.ttf", 250)
|
||||
Effexor_menu = love.graphics.newFont("GFX/fonts/Effexor-AEm.ttf", 100)
|
||||
Effexor_buttons = love.graphics.newFont("GFX/fonts/Effexor-AEm.ttf", 50)
|
||||
ScratchedCarPaint_Intro = love.graphics.newFont("GFX/fonts/ScratchedCarPaint-Kd57.ttf", 100)
|
||||
ScratchedCarPaint = love.graphics.newFont("GFX/fonts/ScratchedCarPaint-Kd57.ttf", 50)
|
||||
ScratchedCarPaint_menu = love.graphics.newFont("GFX/fonts/ScratchedCarPaint-Kd57.ttf", 50)
|
||||
10
scripts/inputs.lua
Normal file
10
scripts/inputs.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function mouseOver(object)
|
||||
local mx, my = love.mouse.getPosition()
|
||||
local time = 0
|
||||
if mx > object.x and mx < object.x + object.width then
|
||||
if my > object.y and my < object.y + object.height then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
8
scripts/items.lua
Normal file
8
scripts/items.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function item.create(type, commands)
|
||||
local object = {}
|
||||
for i = 1, #commands do
|
||||
object[commands]
|
||||
i = i + 1
|
||||
end
|
||||
return object
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue