Skip to content

Commit

Permalink
update to melonjs 17
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Mar 5, 2024
1 parent b0fc610 commit ba11815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions platformer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<!-- Since import maps are not yet supported by all browsers, its is necessary to add the polyfill es-module-shims.js -->
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"melonjs": "https://cdn.jsdelivr.net/npm/melonjs/+esm",
"debugPlugin" : "https://cdn.jsdelivr.net/npm/@melonjs/debug-plugin/dist/@melonjs/debug-plugin.min.js"
{
"imports": {
"melonjs": "https://cdn.jsdelivr.net/npm/melonjs@17/+esm",
"debugPlugin" : "https://cdn.jsdelivr.net/npm/@melonjs/debug-plugin/dist/@melonjs/debug-plugin.min.js"
}
}
}
</script>
<!-- Canvas placeholder -->
<div id="screen"></div>
Expand Down
2 changes: 1 addition & 1 deletion platformer/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function onload() {
me.audio.init("mp3,ogg");

// allow cross-origin for image/texture loading
me.loader.crossOrigin = "anonymous";
me.loader.setOptions({ crossOrigin : "anonymous" });

// set all ressources to be loaded
me.loader.preload(resources, () => {
Expand Down

0 comments on commit ba11815

Please sign in to comment.