I have more than 20 years as programmer and something that tripped me off a little was that the examples at https://killedbyapixel.github.io/LittleJS/examples/ cannot be just copy pasted, the examples with images is reasonable that need to be downloaded first but otherwise should work fine, meaning the engineInit call should be included the code
The tile system is a also quite confusing, to let beginners get started the tile constructor should allow strings with the location of the image file, maybe show a warning in the console saying this is not the best approach but allow it nonetheless, I mean like this:
I have more than 20 years as programmer and something that tripped me off a little was that the examples at https://killedbyapixel.github.io/LittleJS/examples/ cannot be just copy pasted, the examples with images is reasonable that need to be downloaded first but otherwise should work fine, meaning the engineInit call should be included the code
The tile system is a also quite confusing, to let beginners get started the tile constructor should allow strings with the location of the image file, maybe show a warning in the console saying this is not the best approach but allow it nonetheless, I mean like this: