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
Prole
Posts: 32
Joined: Fri Feb 21, 2020 1:26 pm

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

Post by Lovingsoul1337 » Fri Mar 20, 2020 2:10 pm

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
Prole
Posts: 32
Joined: Fri Feb 21, 2020 1:26 pm

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

Post by Lovingsoul1337 » Fri Mar 20, 2020 3:00 pm

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
Citizen
Posts: 80
Joined: Wed Sep 29, 2010 8:14 pm

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

Post by Xugro » Fri Mar 20, 2020 5:57 pm

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
Prole
Posts: 32
Joined: Fri Feb 21, 2020 1:26 pm

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

Post by Lovingsoul1337 » Fri Mar 20, 2020 6:16 pm

Awesome thank you !

Lovingsoul1337
Prole
Posts: 32
Joined: Fri Feb 21, 2020 1:26 pm

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

Post by Lovingsoul1337 » Fri Mar 20, 2020 6:34 pm

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

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

:cool:

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

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

Post by bobbyjones » Sat Mar 21, 2020 6:00 am

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.
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

Lovingsoul1337
Prole
Posts: 32
Joined: Fri Feb 21, 2020 1:26 pm

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

Post by Lovingsoul1337 » Sat Mar 21, 2020 11:05 am

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 » Sat Mar 21, 2020 10:09 pm

I assume this has been solved in this post

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 36 guests