An example browser for love2d
You can currently select between 4 examples
You can click on them, see the code then run them by pressing the run button
Press "escape" button or close the window to exit the example and restart the example navigator
Note: this is a re-release. I removed experimental code and fixed the license.
github repo:
https://github.com/monolifed/lovexnav
Love Example Navigator
Love Example Navigator
Last edited by monolifed on Mon Jul 19, 2021 3:26 pm, edited 3 times in total.
Re: Love Example Navigator
When I select the one example folder in this and click run, nothing happens. Maybe show only buttons that actually do something?
The example code:
Better code, because the above is cargo cult programming:
The example code:
Code: Select all
-- Load an image and display it
local image
function love.load()
image = love.graphics.newImage("assets/chest.png")
end
function love.draw()
love.graphics.draw(image, 20, 20)
end
Code: Select all
local image = love.graphics.newImage("assets/chest.png")
function love.draw()
love.graphics.draw(image, 20, 20)
end
Re: Love Example Navigator
Currently:
You have to click on "loading_image.lua"
Read it for a while
Press run
Note: Log tells you why nothing happened when you clicked run
You have to click on "loading_image.lua"
Read it for a while
Press run
Note: Log tells you why nothing happened when you clicked run
Re: Love Example Navigator
I'm not asking for help on how to make it work, I'm giving suggestions on how to make it better. If there's nothing to run, don't show a run button. A basic UX principle.
Re: Love Example Navigator
Added 3 more examples
Re: Love Example Navigator
Are you aware of the classic https://love2d.org/wiki/examples.love ?
Re: Love Example Navigator
Yes, I wrote some parts of the browser and a few of examples
Re: Love Example Navigator
Added a repo
Placed run option to the end of runnable examples
Placed run option to the end of runnable examples
Who is online
Users browsing this forum: Google [Bot] and 210 guests