Subdirectories[SOLVED]

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
lilpaladin21
Prole
Posts: 3
Joined: Fri May 16, 2014 3:00 pm

Subdirectories[SOLVED]

Post 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
Attachments
Game.love
(42.44 KiB) Downloaded 94 times
Last edited by lilpaladin21 on Wed Jun 04, 2014 6:24 pm, edited 2 times in total.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Subdirectories

Post 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.
Help us help you: attach a .love.
lilpaladin21
Prole
Posts: 3
Joined: Fri May 16, 2014 3:00 pm

Re: Subdirectories

Post by lilpaladin21 »

Does not work

Here is a new version
Attachments
Game 2.0.love
(42.43 KiB) Downloaded 103 times
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Subdirectories

Post 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" ?
Post Reply

Who is online

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