marklovers / kaplay

🦖 A JavaScript game library
https://kaplayjs.com
MIT License
247 stars 17 forks source link

bug: fonts don't work with loadRoot #118

Open amyspark-ng opened 1 month ago

amyspark-ng commented 1 month ago

Describe the bugA clear and concise description of what the bug is.

VersionWhat version are you running?

kaboom v3000

To Reproduce Steps to reproduce the behavior:

  1. do loadRoot
  2. load a font, i haven't tested with the other loadfonts only loadFont
  3. the font won't be loaded, but if you do loadRoot(".") before loading the font, the font will be loaded