đŠ️ Air Snake
đŠ️ Air Snake – Fly Your Plane, Avoid The Chemtrails
Map Snake is a fun new twist on the classic Snake game - except this time, instead of a pixelated reptile, you’re flying a plane across the world, leaving behind a shimmering contrail. The goal is simple: collect map markers to grow your trail, and whatever you do - don’t fly into your own chemtrails!
You can play the game right in your browser, and each game begins at a random global location.
✈️ How to Play
1. Press “Start Game” to begin.
Your plane will appear somewhere in the world, ready for takeoff.
2. Use your arrow keys to steer:
- ↑ Up
- ↓ Down
- ← Left
- → Right
3. Collect the map markers that appear randomly on the map. Each one you collect adds length to your glowing contrail and increases your score.
4. Avoid your own trail! If your plane touches any part of the contrail you’ve left behind, the game ends.
5. When the game is over, you’ll see your final score and personal best, which are saved locally in your browser.
đ Under the Hood
Map Snake is built using MapLibre GL JS with an OpenFreemap Positron basemap. The player’s path is drawn dynamically as a LineString GeoJSON feature, updated in real time as the plane moves.
As you fly, MapLibre continuously updates the geometry of your flight path and the position of your plane marker. The game uses haversine distance calculations to measure proximity and to detect collisions, calculating trail length, and checking when you’ve collected a new marker.
Each map marker is randomly generated within the map’s current bounds, encouraging you to explore the area while avoiding your ever-growing trail. When you collect one, your contrail length increases - along with your score - and a new marker is added somewhere else on the map.



Comments