How do you look at source code?

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
Vimm
Party member
Posts: 113
Joined: Wed Mar 16, 2016 8:14 pm

How do you look at source code?

Post by Vimm »

I found a cool platformer made with LOVE and the source code is available for download, so I wanted to look at it to better understand how game dev works, but when it gave me the .love file, I had no idea how to actually see the source, can anyone explain?
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: How do you look at source code?

Post by s-ol »

A .love is just a renamed .zip. Rename it back to .zip and extract it and look at the lua files.

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
Vimm
Party member
Posts: 113
Joined: Wed Mar 16, 2016 8:14 pm

Re: How do you look at source code?

Post by Vimm »

s-ol wrote:A .love is just a renamed .zip. Rename it back to .zip and extract it and look at the lua files.
I'm disappointed in myself for not thinking that, lol XD thanks
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests