Skip to content

Commit e40057b

Browse files
committed
clean html & ao
1 parent 7ce13d2 commit e40057b

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/html/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ <h1 class="loadingText">Loading assets...</h1>
4545
<!-- Tab List -->
4646
<div class="tab_list text-light">
4747
<div class="tab_player clearfix">
48-
<span class="float-left">xd</span>
49-
<span class="float-right">OK</span>
48+
<span class="float-left"></span>
49+
<span class="float-right"></span>
5050
</div>
51-
<div class="tab_player">lol</div>
52-
<div class="tab_player">xd</div>
51+
<div class="tab_player"></div>
52+
<div class="tab_player"></div>
5353
</div>
5454

5555
<!-- MENU -->

src/scripts/world/ChunkMesher.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,13 @@ class ChunkMesher {
259259
}
260260

261261
aoColor (type) {
262-
if (type === 0) {
263-
return [0.9, 0.9, 0.9]
264-
} else if (type === 1) {
265-
return [0.7, 0.7, 0.7]
266-
} else if (type === 2) {
267-
return [0.5, 0.5, 0.5]
268-
} else {
269-
return [0.3, 0.3, 0.3]
270-
}
262+
const num = ({
263+
0: 0.7,
264+
1: 0.5,
265+
2: 0.3,
266+
3: 0.1
267+
})[type]
268+
return [num, num, num]
271269
}
272270

273271
genChunkGeo (cellX, cellY, cellZ) {

0 commit comments

Comments
 (0)