How can i install a OOP Framework for Atom and Love ?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Lovingsoul1337
Citizen
Posts: 53
Joined: Fri Feb 21, 2020 1:26 pm

How can i install a OOP Framework for Atom and Love ?

Post 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 :)
Lovingsoul1337
Citizen
Posts: 53
Joined: Fri Feb 21, 2020 1:26 pm

Re: How can i install a OOP Framework for Atom and Love ?

Post 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 :)
Xugro
Party member
Posts: 110
Joined: Wed Sep 29, 2010 8:14 pm

Re: How can i install a OOP Framework for Atom and Love ?

Post 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 :)
Lovingsoul1337
Citizen
Posts: 53
Joined: Fri Feb 21, 2020 1:26 pm

Re: How can i install a OOP Framework for Atom and Love ?

Post by Lovingsoul1337 »

Awesome thank you !
Lovingsoul1337
Citizen
Posts: 53
Joined: Fri Feb 21, 2020 1:26 pm

Re: How can i install a OOP Framework for Atom and Love ?

Post by Lovingsoul1337 »

Like this ? For some Reason it doesnt give a Output...

--> https://snipboard.io/bcLB5m.jpg

:cool:
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: How can i install a OOP Framework for Atom and Love ?

Post 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.
Lovingsoul1337
Citizen
Posts: 53
Joined: Fri Feb 21, 2020 1:26 pm

Re: How can i install a OOP Framework for Atom and Love ?

Post 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...
tobiasvl
Prole
Posts: 29
Joined: Mon Oct 01, 2018 4:58 pm
Location: Norway
Contact:

Re: How can i install a OOP Framework for Atom and Love ?

Post by tobiasvl »

I assume this has been solved in this post
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], lenlenlL6, Majestic-12 [Bot] and 53 guests