I'm going to assumme that you have all of the necessary files to do this successfully. This includes some sort of zipping utility, a copy of mari0.love that has been renamed to mari0.zip, and all of the (unzipped) source files in the same folder. If not, search the forums, the information is there. Explaining every little detail is beyond the scope of this tutorial.
Lets start with a .png image. I made a portal gun. :D
Put the image file in your images/smb folder.
now open main.lua, scroll down to line 171 and change it to read
Code: Select all
menuselection = love.graphics.newImage("graphics/" .. graphicspack .. "/menuselect_portalgun.png")
Since my image is a little wider than the mushroom was, we'll need to make a little more space for it.
Open menu.lua and scroll down to line 282 - 292. You should see this code...
Code: Select all
if selection == 0 then
love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale)
elseif selection == 1 then
love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
elseif selection == 2 then
love.graphics.draw(menuselection, 81*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
elseif selection == 3 then
love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
elseif selection == 4 then
love.graphics.draw(menuselection, 98*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
end
Code: Select all
if selection == 0 then
love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale)
elseif selection == 1 then
love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale,5 )
elseif selection == 2 then
love.graphics.draw(menuselection, 81*scale, (137+(selection-1)*16)*scale, 0, scale, scale,5 )
elseif selection == 3 then
love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale,5)
elseif selection == 4 then
love.graphics.draw(menuselection, 98*scale, (137+(selection-1)*16)*scale, 0, scale, scale, 8)
end
Drag and drop the menu.lua back to the .zip to update and run that bad boy. Your result should be like this..
Excellent now customize it to death!!