Add camera AR view, GPS stable mode and wider machine range
- Real-world mode opens the phone's rear camera as the game background; the 3D camera stands at the GPS position and follows the phone's orientation, so machines, beacons, range circles, the route and the robot appear in their real direction. City, traffic and family are hidden in this view; a toggle switches back to the 3D map, and drag turns the view where there is no orientation sensor - Stable mode (default on): drops GPS jumps impossible on foot, holds the position until it drifts past half the GPS error, calms the compass - Arrival range is 2.5x the GPS error (20–50 m), shown as a ground circle - Tests for the stabilizer, AR orientation and field of view Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<link rel="apple-touch-icon" href="./icons/apple-touch-icon.png">
|
||||
</head>
|
||||
<body>
|
||||
<video id="camera" playsinline muted autoplay hidden></video>
|
||||
<canvas id="world"></canvas>
|
||||
<div id="loading">در حال ساختن شهر مشهد…</div>
|
||||
|
||||
@@ -61,6 +62,8 @@
|
||||
<div id="rank"><b id="rank-name">تازهوارد</b><span id="xp">۰ XP</span><div class="bar"><i id="xp-bar"></i></div></div>
|
||||
<div id="toolbar">
|
||||
<button id="gps-toggle" type="button">📍 دنیای واقعی</button>
|
||||
<button id="ar-toggle" type="button" hidden>📷 دوربین</button>
|
||||
<button id="stable-toggle" type="button" class="on" hidden>🎯 پایدار: روشن</button>
|
||||
<button id="sound" type="button" aria-pressed="false">صدا: خاموش</button>
|
||||
<button id="quality" type="button">گرافیک</button>
|
||||
<button id="restart" type="button">شروع دوباره</button>
|
||||
|
||||
Reference in New Issue
Block a user