Open j7b opened 7 years ago
I thought any resources in the Internet would be available via XHR, but this depends on iframe's sandbox setting.
Mostly want for convenience, two lines to reference image and rectangle is nicer than trying to load decode and parse images and atlases in playground
So you want to get *ebiten.Image directly by specifying a kind of key, instead of decoding from a URL?
Yes, I envision it looking like
import "github.com/something/kenny.nl/animals"
var Image = animals.Image
var Rect = animals.Map["elephant.png"]
We need Go Gophers!
Would like to add assets from ebiten examples and kenney.nl spritesheets like