quil

cgore 2018-12-12T21:20:10.006200Z

@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.

unwarysage 2018-12-12T21:22:00.007200Z

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

cgore 2018-12-12T21:23:44.007400Z

Yup

cgore 2018-12-12T21:24:42.008Z

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

cgore 2018-12-12T21:32:20.008200Z

https://clojuredocs.org/clojure.java.io/resource