Skip to content

Commit 68cc0a2

Browse files
enable webgl
1 parent 2af7381 commit 68cc0a2

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

examples/threejs/platformer/game.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ import * as LJS from '../../../dist/littlejs.esm.js';
1616
import * as THREE from 'three';
1717
const {vec2} = LJS;
1818

19-
// disable LittleJS WebGL so the 2D canvas is only used for UI and HUD stuff
20-
LJS.setGLEnable(false);
21-
2219
// platforming constants
2320
const zGravity = .012; // fall acceleration per update
2421
const jumpVelocity = .22; // takeoff speed

examples/threejs/sideScroller/game.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ import * as LJS from '../../../dist/littlejs.esm.js';
1414
import * as THREE from 'three';
1515
const {vec2, hsl} = LJS;
1616

17-
// disable LittleJS WebGL so the 2D canvas is only used for UI and HUD stuff
18-
LJS.setGLEnable(false);
19-
2017
///////////////////////////////////////////////////////////////////////////////
2118
// objects that drive three.js meshes
2219

0 commit comments

Comments
 (0)