Skip to content

Commit

Permalink
index updated
Browse files Browse the repository at this point in the history
  • Loading branch information
maurocristy87 committed Nov 11, 2024
1 parent 47e5cbb commit 8a4d2bc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { BroadPhaseMethods, CollisionMethods, Game } from "angry-pixel";
import { MainScene } from "@scene/MainScene";
import { collisionMatrix } from "@config/collisionMatrix";

const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop.toString()),
});
const params = new URLSearchParams(window.location.search);

export const createAndStart = () => {
// create game
Expand All @@ -19,8 +17,7 @@ export const createAndStart = () => {
collisionBroadPhaseMethod: BroadPhaseMethods.SpartialGrid,
collisionMethod: CollisionMethods.SAT,
},
// @ts-ignore
debugEnabled: Boolean(Number(params.debug)),
debugEnabled: Boolean(Number(params.get("debug"))),
});

// add scenes
Expand Down

0 comments on commit 8a4d2bc

Please sign in to comment.