var game = {
var : {},
object : {},
level : {},
state : {},
util : {},
collisionTypes : me.collision.types,
onload : function () {
// Initialize the video.
if (!me.video.init(1080, 2340, {wrapper : "screen", scale : "auto", scaleMethod: "fit" , antiAlias: true, doubleBuffering: false, subpixel: false, transparent: false, powerPreference: 'default'})) {
alert("Your browser does not support HTML5 canvas.");
return;
}
me.audio.init("mp3,ogg");
// me.utils.function.defer(me.plugin.register, this, window.melonjsdebugPlugin.DebugPanelPlugin, "debugPanel");
...
This is my vanilla js code