How to start?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
TheGameMaker
Prole
Posts: 1
Joined: Fri Jun 20, 2014 6:42 pm

How to start?

Post by TheGameMaker »

I downloaded the 64 bit zipped version for mac and when I open it up it opens up an application called Baby Inspector or something. How do I code?
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: How to start?

Post by Plu »

The thing you downloaded is the executable, but the actual code has to be written in a regular code editor (like notepad++ or sublime or whatever you have on Mac)
Zeliarden
Party member
Posts: 139
Joined: Tue Feb 28, 2012 4:40 pm

Re: How to start?

Post by Zeliarden »

User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: How to start?

Post by T-Bone »

TLDR: Once you have a folder containing a main.lua, drag that folder onto the Löve .app and it'll run.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: How to start?

Post by Ranguna259 »

Step by step:
  • Create a folder
  • Create a file and name it main.lua
  • Paste this inside the file:

    Code: Select all

    function love.draw()
      love.graphics.rectangle('fill',100,100,100,100)
    end
  • Drag and drop the folder into the love.app
  • Edit main.lua however you want and do step 4 again to reload your code.
  • Read the wiki and have fun
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests