Skip to content

Commit 3ccd1f8

Browse files
committed
Update welcome game
1 parent 079e214 commit 3ccd1f8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
@@ -382,7 +382,6 @@ <h2>More</h2>
382382
</footer>
383383

384384
<script src="/js/load-images.js?ver=2.0.0"></script>
385-
<script src="/lib/enable3d/enable3d.framework.0.25.4.min.js"></script>
386-
<script async src="/welcome-game.js?ver=1.0.2"></script>
385+
<script type="module" src="/welcome-game.js?ver=1.0.3"></script>
387386
</body>
388387
</html>

src/welcome-game.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {
1+
import {
22
Project,
33
PhysicsLoader,
44
Scene3D,
@@ -8,7 +8,7 @@ const {
88
ThirdPersonControls,
99
PointerLock,
1010
PointerDrag
11-
} = ENABLE3D
11+
} from '/lib/enable3d/enable3d.framework.0.26.0_dev0.module.min.js'
1212

1313
/**
1414
* Is touch device?
@@ -280,7 +280,7 @@ class MainScene extends Scene3D {
280280
this.man.body.setAngularVelocityY(0)
281281

282282
const l = Math.abs(theta - thetaMan)
283-
let rotationSpeed = isTouchDevice ? 2 : 4
283+
let rotationSpeed = isTouchDevice ? 2 : 6
284284
let d = Math.PI / 24
285285

286286
if (l > d) {

0 commit comments

Comments
 (0)