Skip to content

Friendlier examples and API #161

@Ivanca

Description

@Ivanca

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:

tile('flappy_duck.png')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions