Skip to content

Commit 5122643

Browse files
committed
feat: adds party mode
1 parent 3cd5157 commit 5122643

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

packages/web/assets/globals.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ body {
77
touch-action: pan-x pan-y;
88
}
99

10-
.map-wrapper {
10+
.map-wrapper, .game-map {
11+
cursor: crosshair;
1112
touch-action: auto !important;
1213
}
1314

packages/web/components/score-board-overlay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
>
1010
<h4 class="md:min-w-[50px]" style="text-align: left;">{{ room.scoreboard[player.sessionId].points || 0 }}</h4>
1111
<Pin :id="player.pin" :width="pinSize" />
12-
<h4 :class="`${isEnd ? 'flex' : 'hidden'}`">{{ player.username }}</h4>
12+
<h4>{{ player.username }}</h4>
1313
</div>
1414
</div>
1515
</div>

packages/web/pages/play/_id/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</CountryFlagWithName>
7171
</Overlay>
7272
<Overlay :room="room" position="bottomleft">
73-
<ScoreBoardOverlay :room="room" />
73+
<ScoreBoardOverlay v-if="inPartyRoundEnd || room.state === states.ROUND_END" :room="room" />
7474
</Overlay>
7575

7676
<Overlay :room="room" v-if="!inPartyRoundEnd" :interactive="true" position="topright">

packages/web/utils/functions/humanizeDistance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const humanizeDistance = (pointA, pointB, unitless = false) => {
2222
}
2323

2424
if (unitless) {
25-
return result.distance.toFixed(0)
25+
return parseInt(result.distance.toFixed(0))
2626
}
2727

2828
if (result.distance >= result.smallBorder) {

0 commit comments

Comments
 (0)