Page 1 of 1
Subdirectories[SOLVED]
Posted: Wed Jun 04, 2014 1:08 pm
by lilpaladin21
I need help. Basically I do not know how to import sub directories in love2d
So I need help on how...
Here is my love game...
EDIT: SOLVED
Re: Subdirectories
Posted: Wed Jun 04, 2014 1:34 pm
by Robin
Use / instead of \.
Backslashes are for escape characters, slashes are for paths.
Windows can use either slashes or backslashes for paths, but nowadays the rest of the world only uses slashes for paths.
Re: Subdirectories
Posted: Wed Jun 04, 2014 2:26 pm
by lilpaladin21
Does not work
Here is a new version
Re: Subdirectories
Posted: Wed Jun 04, 2014 4:49 pm
by Roland_Yonaba
First of all, there is a spelling mistake at line 3, in main.lua.
The font name is pixelmix.tff, instead of pixelmis.ttf.
Second, at line 9, what are you trying to accomplish when writing "import "media.module"" ? import is not a valid function in standard Lua, and not in LÖVE either, unless you have defined it by yourself. And what is "media.module" ?