## [SOLVED] How do I import files from specific folder in the game directory?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
YounYokel
Prole
Posts: 13
Joined: Thu Oct 03, 2019 5:57 pm
Location: Kazakhstan

### [SOLVED] How do I import files from specific folder in the game directory?

Hello! It's quite weird for me, but when I'm setting the new font but I cannot import the font from a folder, I need to type the name only. If that file doesn't exists in the project folder, game will crash.

Code: Select all

local myFont = love.graphics.newFont( "fonts\opensans.ttf", 14 )

What should I do to allow the folders in my project?
Last edited by YounYokel on Thu Oct 10, 2019 4:37 pm, edited 1 time in total.

pgimeno
Party member
Posts: 1905
Joined: Sun Oct 18, 2015 2:58 pm
Location: Valencia, ES

### Re: How do I import files from specific folder in the game directory?

YounYokel
Prole
Posts: 13
Joined: Thu Oct 03, 2019 5:57 pm
Location: Kazakhstan

### Re: How do I import files from specific folder in the game directory?

pgimeno wrote:
Wed Oct 09, 2019 6:23 pm