New To Love And Need Some Help Learning

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
User avatar
theresaspyaroundhere
Prole
Posts: 4
Joined: Thu Dec 15, 2016 4:44 am

New To Love And Need Some Help Learning

Post by theresaspyaroundhere »

okay, so I just signed up for a forum account and i only started learning love a few weeks ago.
i was just wondering if somebody knew or could link me to a place where i could learn more about creating games with love, for example youtube tutorials, etc. and i'm mediocre at lua, so im not a pro either. thanks for your help :)
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: New To Love And Need Some Help Learning

Post by s-ol »

go read all of the PiL, maybe dissect some other love games and just generally treasure the wiki messing around.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: New To Love And Need Some Help Learning

Post by Sir_Silver »

I'm not much of a reader, I was very fortunate to have a friend who taught me most of what I know from the start of my programming to where I am today. I don't know if I would be able to learn and maintain the motivation to learn just by reading, but to each their own. If I were you though, I would try to find someone more knowledgeable than myself and pester them with questions :P

I think that youtube game tutorials teach people how to copy more than how to think in terms of code, which I think is neither creative nor useful for when you want to make your own projects.

That said, if you need a brief overview of lua, I recommend this tutorial:

https://www.youtube.com/watch?v=iMacxZQMPXs
User avatar
theresaspyaroundhere
Prole
Posts: 4
Joined: Thu Dec 15, 2016 4:44 am

Re: New To Love And Need Some Help Learning

Post by theresaspyaroundhere »

like i said im mediocre at lua but im not an absoulte beginner. all i need to know is how to do stuff in love because im pretty new at that, thank you though
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: New To Love And Need Some Help Learning

Post by Sir_Silver »

Oh okay, well here is a link to the wiki side of the love website, where you can look at all of the cool functions that allow you to do drawing operations and whatever else you can imagine: https://love2d.org/wiki/love

Code: Select all

-- Load some default values for our rectangle.
function love.load()
    x, y, w, h = 20, 20, 60, 20
end
 
-- Increase the size of the rectangle every frame.
function love.update(dt)
    w = w + 1
    h = h + 1
end
 
-- Draw a coloured rectangle.
function love.draw()
    love.graphics.setColor(0, 100, 100)
    love.graphics.rectangle("fill", x, y, w, h)
end
These are some of the basic love functions you will use, perform all of your drawing operations in love.draw and anything that needs to update in love.update. There are more callback functions that you can find on the wiki side.
User avatar
ken.athomos
Citizen
Posts: 77
Joined: Fri Aug 05, 2016 10:13 am
Location: Philippines

Re: New To Love And Need Some Help Learning

Post by ken.athomos »

Hey dude!

I'm assuming you have already setup LÖVE and an IDE/Text Editor on your machine. HOWEVER IF YOU HAVEN'T YET, please check this.

Here are the following stuff you can use to learn LÖVE:
  • The LÖVE Wiki Tutorials Section - This contains some user made tutorials. Don't be intimidated by how many it looks because it isn't that much. Most of it are just translations.
  • Sheepolution - This is made by user u/Sheepolution. This is a sort of website-online-book for those who want to learn LÖVE. I suggest reading up to Chapter 13 and possibly moving on to Chapter 14 if and only if you understood the previous Chapters.
  • Sockmunkee Dev Videos - This is a playlist of YouTube videos created by Sockmunkee Dev. Sadly the videos aren't made for LÖVE version 0.10.0+ and arguably the way he writes the code may not be considered the best way BUT the videos do serve as a great way of understanding and seeing basic code live.
  • LÖVE Video Tutorial ~45min - This is created by user u/josefnpat. As the title shows, its a 45 minute video about LÖVE and how to code with it.
  • How to LÖVE Videos - This is a YouTube playlist that tackles most of the basic stuff concerning LÖVE.
Stuff I can personally vouch for:
  • I have personally used the Sockmunkee Dev Videos to refresh basic concepts and have also read the ones made by Sheepolution. I've used Sheepolution's content as a huge refresher for LÖVE as a whole since I stopped tinkering with the language during my first semester of college.
  • OSM Studios - Your First Love2d Game in 200 Lines. I used this tutorial when I was first starting out with LÖVE. I personally think that this explains some of the basic stuff and shows implementations of it very well.
  • Baseline 2D Platformer. Shameless plug. I made this. Aside from the fact that I did this, I personally would suggest you read the comments I put in the code snippets. I made them with the aim of explaining game code/logic in mind.
Other stuff:
  • LÖVE Forums. You know, the one you are currently in XD
  • LÖVE Wiki. This is basically the LÖVE Documentation/API.
  • LÖVE Reddit. Don't know about this one personally. I use the forums more.
Good luck on the journey dude! I am also still currently on it :P Don't hesitate to ask in the forums BUT please do search about your concern first before making a thread about it. Don't hesitate to PM people here as well.
Post Reply

Who is online

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