1
0
Fork 0
mirror of https://github.com/imjasonh/dodec synced 2026-07-07 01:32:17 +00:00
dodec/index.html
Jason Hall 65e5dc2b8f
Implement Globetrotter game rules and mechanics
Major changes:
- Replace simple two-player game with full Globetrotter ruleset
- Add proper game state with Rovers, Buildings, and Fortifications
- Implement HQ spaces (pentagons) and regular spaces (triangles)
- Rovers start in random HQ spaces with 5 hit points
- Movement restricted to adjacent faces only
- Add collision detection and fortification blocking
- Implement win/loss conditions
- Update UI to show game status and unit counts

Game mechanics implemented:
- Turn-based movement between adjacent faces
- Unit positioning on 3D polyhedron
- Face type detection (HQ vs regular)
- Basic win condition checking

Not yet implemented:
- Combat system (shooting)
- Building construction
- Fortification placement
- Special building abilities

Based on rules from:
https://github.com/imjasonh/globetrotter

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-10 00:41:00 -04:00

56 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Globetrotter - 3D Strategy Game</title>
<style>
body {
margin: 0;
padding: 0;
background: #000;
font-family: Arial, sans-serif;
overflow: hidden;
}
#container {
width: 100vw;
height: 100vh;
position: relative;
}
#ui {
position: absolute;
top: 20px;
left: 20px;
color: white;
z-index: 100;
}
#info {
background: rgba(0, 0, 0, 0.7);
padding: 10px;
border-radius: 5px;
max-width: 300px;
}
</style>
</head>
<body>
<div id="container">
<div id="ui">
<div id="info">
<h3>Globetrotter</h3>
<p>Rotate: Click and drag</p>
<p>Click adjacent face to move</p>
<div id="face-info">Loading...</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/math/ConvexHull.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/geometries/ConvexGeometry.js"></script>
<script src="game.js"></script>
</body>
</html>