Getting started on MacOS

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
sdeban
Prole
Posts: 7
Joined: Sun Feb 05, 2017 5:13 pm

Getting started on MacOS

Post by sdeban »

Love looks like a great way to develop games using an easy language. However, I followed the installation instructions on the Love wiki site to the letter and created the minimal program as instructed, but when I run it, the app says there is nothing to run:

"boot.lua : 433 : no code to run"

My code is, as instructed on the getting started section of the wiki,

Code: Select all

function love.draw()
    love.graphics.print("Hello World", 400, 300)
end
Am I missing something? It looks like I am making a function but not calling it, however I can't find anything about how to call a function.

Any help would be appreciated.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Getting started on MacOS

Post by bartbes »

Did you name your file main.lua? And, did you start love by passing the directory to it on the command line, by dropping the directory on it (or a shortcut to it), or by making a .love file? That error indicates love found neither conf.lua nor main.lua.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Getting started on MacOS

Post by Positive07 »

If you created a zip/love file make sure that when you open it you see main.lua and not a single folder, if you see the folder then it's packaged incorrectly
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
sdeban
Prole
Posts: 7
Joined: Sun Feb 05, 2017 5:13 pm

Re: Getting started on MacOS

Post by sdeban »

It was within a folder, so that was the problem. Works now. Thanks!
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests