Skip to content

Commit

Permalink
Remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemcu committed Oct 8, 2023
1 parent 04ab5f6 commit 21a17f2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 37 deletions.
23 changes: 0 additions & 23 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<meta name="description" content="An online genshin loading demo, created by TEAM.x.y.z. team." />
<title>原神启动</title>
<script>
(function (w, d, s, q, i) {
w[q] = w[q] || [];
var f = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = true;
j.id = 'beacon-aplus';
j.src = 'https://d.alicdn.com/alilog/mlog/aplus/' + i + '.js';
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'aplus_queue', '203467608');

//集成应用的appKey
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['appKey', '6502638e58a9eb5b0adbbd2e']
});
/************************以下内容为可选配置内容****************************/
//是否开启调试模式
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['DEBUG', false]
});
/******************************************************************/
</script>
</head>
<body>
<div id="root"></div>
Expand Down
1 change: 0 additions & 1 deletion src/core/components/Column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export class Column extends Component {
}
//根据所得的名称加载glb
for (let i of this.columeInstanceMap.keys()) {
console.log("lllll", i);
this.viewer.load({ url: "Genshin/Login/" + i + ".glb" }).then((v) => {
let columeInstance = this.columeInstanceMap.get(i);
//将mesh创建出实例组
Expand Down
3 changes: 2 additions & 1 deletion src/core/components/ForwardCamera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component, TWEEN, Vector3 } from "../../libs/xviewer";

export const cameraCenter = new Vector3()

let __delta = new Vector3();
export class ForwardCamera extends Component {
public speed = new Vector3(0, 0, -88)
private shouldStop = false;
Expand All @@ -13,7 +14,7 @@ export class ForwardCamera extends Component {
}
update(dt: number): void {
if (!this.shouldStop) {
cameraCenter.add(this.speed.clone().multiplyScalar(dt));
cameraCenter.add(__delta.copy(this.speed).multiplyScalar(dt));
this.viewer.camera.position.copy(cameraCenter)
}
}
Expand Down
12 changes: 0 additions & 12 deletions src/pages/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ export function Menu() {
</div>
</div>
<button className="ClickMe" onClick={login ? () => {
window["aplus_queue"].push({
action: 'aplus.record',
arguments: ['openDoor', 'CLK', {
value: 1,
}]
});
gameManager.emit("button-start-click");
gameManager.emit("start")
setLogin(false)
Expand All @@ -50,12 +44,6 @@ export function Menu() {
bottom: "16%",
backgroundImage: `url("/Genshin/jump.png")`
}} onClick={login ? () => {
window["aplus_queue"].push({
action: 'aplus.record',
arguments: ['flyBird', 'CLK', {
value: 1,
}]
});
window.open('https://www.bilibili.com/video/BV1E8411v7xy');
} : () => { }}></button>
</div>
Expand Down

0 comments on commit 21a17f2

Please sign in to comment.