Skip to content

Commit

Permalink
Update globe URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ToonTalk committed Oct 19, 2024
1 parent 036d074 commit 694cef7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions apps/etymology map game.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<meta charset="UTF-8">
<title>Etymology Globe Game</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Styles -->
<!-- Include Globe.gl via CDN -->
<script src="https://unpkg.com/globe.gl/dist/globe.gl.min.js"></script>
<style>
body {
margin: 0;
Expand Down Expand Up @@ -99,12 +100,11 @@ <h1>Etymology Globe Game</h1>
<button id="next-btn">Next Word</button>
</div>

<!-- Include Globe.gl via ES Module -->
<script type="module">
import Globe from 'https://unpkg.com/globe.gl/dist/globe.gl.module.js';

<!-- Your game script -->
<script>
// Words data with 'continent' property added
const words = [
// [Include all your word objects here]
{
word: "Astronomy",
origin: { lat: 37.9838, lng: 23.7275 }, // Athens, Greece
Expand Down Expand Up @@ -327,7 +327,7 @@ <h1>Etymology Globe Game</h1>
etymology: "Origin uncertain; possibly from Creole or African languages.",
continent: "North America"
},
// Add more words as needed
// Add the rest of the words...
];

let currentWordIndex = 0;
Expand Down Expand Up @@ -373,8 +373,6 @@ <h1>Etymology Globe Game</h1>
}

function onGlobeClick(clickLatLng) {
console.log('Globe clicked at:', clickLatLng.lat, clickLatLng.lng);

const wordObj = words[currentWordIndex];
const playerLatLng = { lat: clickLatLng.lat, lng: clickLatLng.lng };
const originLatLng = wordObj.origin;
Expand Down

0 comments on commit 694cef7

Please sign in to comment.