By jlnr (dev)
Date 2017-08-17 19:16
In the above loop, x will be "10_of_clubs.png", but you cannot load Gosu::Image.new("10_of_clubs.png")
because the subdirectory is missing. Try Gosu::Image.new("PNG-cards-1.3/" + x)
.
The Dir.glob approach works a little better in that regard because it will include the full path. I'm not sure why that didn't work, it should.