Page 1 of 1

Thanks I get it

Posted: Fri Sep 15, 2017 1:41 am
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.

Re: Thanks I get it

Posted: Fri Sep 15, 2017 1:44 am
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.

Re: Thanks I get it

Posted: Fri Sep 15, 2017 5:56 am
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

Re: Thanks I get it

Posted: Fri Sep 15, 2017 6:28 am
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.

Re: Thanks I get it

Posted: Sat Sep 16, 2017 1:49 am
by 2dmk
Hi guys,thank you very much indeed.

Re: Thanks I get it

Posted: Wed Sep 20, 2017 1:03 am
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.