Wednesday, April 23, 2025

Snakes on a Plane(t)

Last year, I created Map Snake - a playful adaptation of the classic computer game. The concept was simple: maneuver an ever-growing snake around a map of cities while avoiding collisions with your own tail.

Well, now Engaging Data has released their own take, called Snake on a Globe. And let me be clear: I’m not annoyed that they stole my idea - I’m annoyed that they made it better. And a lot more fun.

Snake on a Globe

In Snake on a Globe, the game expands to a spherical Earth and includes the largest cities in the world, turning your Snake adventure into a true test of geographical knowledge. Your mission? Navigate from city to city, gobbling up apples as you go. But there's a twist - movement is restricted to lines of longitude and latitude, and the Earth is round. That means you can move east, west, and even over the poles.

The game calculates the minimum number of steps it should take to reach each apple. If you exceed that number, your score begins to decline—and it turns red to remind you.

Behind the Scenes

The game is built using Three.js and Three Globe, powerful JavaScript libraries that render the globe in full 3D. The list of cities - and their populations - comes from Simplemaps, giving the game a real-world data backbone. 

No comments: