directory structure for fxgl app (specifically .tmx files)

33 Views Asked by At

I've been following an older tutorial for fxgl that uses the tiled software to create maps (https://www.youtube.com/watch?v=37wfF9GW1vQ&t=9s). I've looked online for anything about what the directory structure should look like, but every time I try to run it I get the error: Asset not found: tutorial.tmx. The line of code that runs this is FXGL.setLevelFromMap("tutorial.tmx"); under the initGame() function. I've been using Maven to build the project, and my current directory structure is as follows: directory structure. Thanks in advance for any help you can provide.

1

There are 1 best solutions below

0
Dylan Hetzel On

In the file "module-info.java" the first line needs to have the modifier open before the module *class name* {