Page 1 of 1
How can i install a OOP Framework for Atom and Love ?
Posted: Fri Mar 20, 2020 2:10 pm
by Lovingsoul1337
Hey there
im currently trying to install a Framework how can i do that ? I got Atom as Code Editor with "Love-IDE"...
Thanks in advance
Re: How can i install a OOP Framework for Atom and Love ?
Posted: Fri Mar 20, 2020 3:00 pm
by Lovingsoul1337
I did create a Folder for the Framework how can i now use it in my Code ?
-->
https://snipboard.io/wrn9WY.jpg
Thanks in advance
Re: How can i install a OOP Framework for Atom and Love ?
Posted: Fri Mar 20, 2020 5:57 pm
by Xugro
Take a peek at the documentation of
30log:
https://github.com/Yonaba/30log/wiki
To include the library you just have to add the following line of code:
Code: Select all
local class = require '30log-master/30log'
Have fun
Re: How can i install a OOP Framework for Atom and Love ?
Posted: Fri Mar 20, 2020 6:16 pm
by Lovingsoul1337
Awesome thank you !
Re: How can i install a OOP Framework for Atom and Love ?
Posted: Fri Mar 20, 2020 6:34 pm
by Lovingsoul1337
Like this ? For some Reason it doesnt give a Output...
-->
https://snipboard.io/bcLB5m.jpg
Re: How can i install a OOP Framework for Atom and Love ?
Posted: Sat Mar 21, 2020 6:00 am
by bobbyjones
You attempted to adapt the tutorial but made a mistake. On line 5 change Window to Jenny. Also read up on Lua Variable Scope. You want the Jenny variable to be available to the draw function but it will be stuck to the update functions scope. So it will still error even after you make the change.
Re: How can i install a OOP Framework for Atom and Love ?
Posted: Sat Mar 21, 2020 11:05 am
by Lovingsoul1337
Hey there still dont get a output...i did remove the whole class thing and for some reason i doesnt write something on the Screen...
function love.load()
end
function love.update()
end
function love.draw()
love.graphics.setColor(1,1,1)
love.graphics.print("Jenny")
end
Thanks for your help...
Re: How can i install a OOP Framework for Atom and Love ?
Posted: Sat Mar 21, 2020 10:09 pm
by tobiasvl
I assume this has been solved
in this post