Fork me on GitHub
#quil
<
2018-12-12
>
cgore21:12:10

@shawx538 With my toy quil project, I can access images like this:

(defn image [tile]
  (q/image (load-image (str "tiles/sapphire-star/" (name tile) ".png")) 0 0))
I use a structure like this:
.. (up a dir)
<ers/cgore/sapphire-star
 resources/
   tiles/
     sapphire-star/
       door.png
       door.psd
       floor.png
       floor.psd
       hull.png
       hull.psd
       window.png
       window.psd
   quil.png
 src/
   sapphire_star/
     ship/
     camera.clj
     core.clj
     keyboard.clj
     level.clj
     player.clj
     space.clj
     tile.clj
     units.clj
 target/
 README.md
 ns-dep-graph.png
 project.clj
It’s just JVM resources.

unwarysage21:12:00

So there needs to be a resources folder, in the root, that contains the images?

cgore21:12:42

You can specify other resource directories in the project.clj file too