Skip to content

Commit 4626735

Browse files
authored
Use AUTO constant instead of magic number for renderer setting (#1375)
1 parent 904abbd commit 4626735

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/examples/src/examples/platformer/createGame.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DebugPanelPlugin } from "@melonjs/debug-plugin";
22
import {
33
Application,
4+
AUTO,
45
audio,
56
device,
67
event,
@@ -23,7 +24,7 @@ export const createGame = () => {
2324
const _app = new Application(800, 600, {
2425
parent: "screen",
2526
scaleMethod: "flex-width",
26-
renderer: 0, // AUTO
27+
renderer: AUTO,
2728
preferWebGL1: false,
2829
depthTest: "z-buffer",
2930
subPixel: false,

0 commit comments

Comments
 (0)