Thanks I get it

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
2dmk
Prole
Posts: 19
Joined: Fri Aug 11, 2017 12:25 am

Thanks I get it

Post by 2dmk »

Thanks guys.
I get it.I found that 'path' must be correct.Now path is 'E:/xxxx/love/love.exe'.
But ever I wrote it as'E:/xxxx/love2d/love.exe',which that caused error.
But whether it need change 'path' in system enviroment?Hope it no harm to system.Anyway it has been changed.
Attachments
c.jpg
c.jpg (103.52 KiB) Viewed 4219 times
b.jpg
b.jpg (112.86 KiB) Viewed 4219 times
a.jpg
a.jpg (113.88 KiB) Viewed 4219 times
2dmk
Prole
Posts: 19
Joined: Fri Aug 11, 2017 12:25 am

Re: Thanks I get it

Post by 2dmk »

But next do what? Because I am really first time to touch love2d.
Would you like to show some free sample game codes?
Thanks.
sphyrth
Party member
Posts: 260
Joined: Mon Jul 07, 2014 11:04 am
Contact:

Re: Thanks I get it

Post by sphyrth »

Next step is that you must familiarize yourself with Love2D's three basic functions: load, update, and draw

Code: Select all

function love.load()
   text = 'Hello World'
   x = 400
   y = 300
end

function love.update(dt)
end

function love.draw()
   love.graphics.draw(text, x, y)
end
The above code will display the same thing as your original code, but this is for good practice.

For learning more, I'm not sure if you should start by learning Lua first or go to Chapter 5 on this Tutorial Site
Sheepolution
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Thanks I get it

Post by zorg »

Also, just to rain on your parade, the PATH variable should have had at least a dozen paths already in there... so in effect, you may have borked everything else that you could run from the command line from anywhere.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
2dmk
Prole
Posts: 19
Joined: Fri Aug 11, 2017 12:25 am

Re: Thanks I get it

Post by 2dmk »

Hi guys,thank you very much indeed.
User avatar
Beelz
Party member
Posts: 234
Joined: Thu Sep 24, 2015 1:05 pm
Location: New York, USA
Contact:

Re: Thanks I get it

Post by Beelz »

For future reference: append PATH, don't overwrite it (at the end add a semicolon, then the path to include). As Zorg said, you probably messed that all up.

Code: Select all

if self:hasBeer() then self:drink()
else self:getBeer() end
GitHub -- Website
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests