Add score-o mode and split game map HUD presentation
This commit is contained in:
@@ -30,7 +30,7 @@ type MapPageData = MapEngineViewState & {
|
||||
showRightButtonGroups: boolean
|
||||
showBottomDebugButton: boolean
|
||||
}
|
||||
const INTERNAL_BUILD_VERSION = 'map-build-157'
|
||||
const INTERNAL_BUILD_VERSION = 'map-build-166'
|
||||
const REMOTE_GAME_CONFIG_URL = 'https://oss-mbh5.colormaprun.com/wxmini/test/game.json'
|
||||
let mapEngine: MapEngine | null = null
|
||||
function buildSideButtonVisibility(mode: SideButtonMode) {
|
||||
@@ -98,10 +98,13 @@ Page({
|
||||
hudPanelIndex: 0,
|
||||
panelTimerText: '00:00:00',
|
||||
panelMileageText: '0m',
|
||||
panelActionTagText: '目标',
|
||||
panelDistanceTagText: '点距',
|
||||
panelDistanceValueText: '--',
|
||||
panelDistanceUnitText: '',
|
||||
panelProgressText: '0/0',
|
||||
gameSessionStatus: 'idle',
|
||||
gameModeText: '顺序赛',
|
||||
panelSpeedValueText: '0',
|
||||
panelTelemetryTone: 'blue',
|
||||
panelHeartRateZoneNameText: '--',
|
||||
@@ -160,10 +163,13 @@ Page({
|
||||
hudPanelIndex: 0,
|
||||
panelTimerText: '00:00:00',
|
||||
panelMileageText: '0m',
|
||||
panelActionTagText: '目标',
|
||||
panelDistanceTagText: '点距',
|
||||
panelDistanceValueText: '--',
|
||||
panelDistanceUnitText: '',
|
||||
panelProgressText: '0/0',
|
||||
gameSessionStatus: 'idle',
|
||||
gameModeText: '顺序赛',
|
||||
panelSpeedValueText: '0',
|
||||
panelTelemetryTone: 'blue',
|
||||
panelHeartRateZoneNameText: '--',
|
||||
@@ -442,6 +448,18 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
handleSetClassicMode() {
|
||||
if (mapEngine) {
|
||||
mapEngine.handleSetGameMode('classic-sequential')
|
||||
}
|
||||
},
|
||||
|
||||
handleSetScoreOMode() {
|
||||
if (mapEngine) {
|
||||
mapEngine.handleSetGameMode('score-o')
|
||||
}
|
||||
},
|
||||
|
||||
handleOverlayTouch() {},
|
||||
|
||||
handlePunchAction() {
|
||||
|
||||
Reference in New Issue
Block a user