Skip to content

Fix Game #2

@carsonSgit

Description

@carsonSgit

What?

Not sure what happened, the cave stage encounters this error:

Sprite.js:29 Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
    at Sprite.render (https://lostsouls.pages.dev/lib/Sprite.js:29:24)
    at Eye.renderEntity (https://lostsouls.pages.dev/src/entities/GameEntity.js:89:67)
    at Eye.render (https://lostsouls.pages.dev/src/entities/GameEntity.js:74:14)
    at Eye.render (https://lostsouls.pages.dev/src/entities/Eye.js:97:15)
    at https://lostsouls.pages.dev/lib/Map.js:227:9
    at Array.forEach (<anonymous>)
    at Map.render (https://lostsouls.pages.dev/lib/Map.js:226:14)
    at PlayState.render (https://lostsouls.pages.dev/src/states/PlayState.js:46:12)
    at StateMachine.render (https://lostsouls.pages.dev/lib/StateMachine.js:44:21)
    at Game.render (https://lostsouls.pages.dev/lib/Game.js:62:21)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions