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
How can i install a OOP Framework for Atom and Love ?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Citizen
- Posts: 61
- Joined: Fri Feb 21, 2020 1:26 pm
-
- Citizen
- Posts: 61
- Joined: Fri Feb 21, 2020 1:26 pm
Re: How can i install a OOP Framework for Atom and Love ?
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
--> https://snipboard.io/wrn9WY.jpg
Thanks in advance
Re: How can i install a OOP Framework for Atom and Love ?
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:
Have fun
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'
-
- Citizen
- Posts: 61
- Joined: Fri Feb 21, 2020 1:26 pm
Re: How can i install a OOP Framework for Atom and Love ?
Awesome thank you !
-
- Citizen
- Posts: 61
- Joined: Fri Feb 21, 2020 1:26 pm
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: How can i install a OOP Framework for Atom and Love ?
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.
-
- Citizen
- Posts: 61
- Joined: Fri Feb 21, 2020 1:26 pm
Re: How can i install a OOP Framework for Atom and Love ?
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...
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 ?
I assume this has been solved in this post
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 4 guests