Proximity - Strategic Number Battle Game

Seele01-Flash
By
Proximity is a captivating strategic puzzle game where players deploy numbered soldiers to capture territories. Combining elements of classic board games like Othello with numerical strategy, it challenges your tactical thinking and planning skills.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Proximity". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Modernize the 2004 aesthetic into a **Sci-Fi Holographic** style. The game board should float in a dark, nebulous void (dark teal/black gradient background). * **Grid System:** Generate a hexagonal grid (honeycomb pattern). Use `CylinderGeometry` (6 segments) for tiles to create 3D hexagonal tokens. * **Neutral Tiles:** Translucent dark glass material. * **Player 1 (Blue):** Neon Cyan glowing material with metallic edges. * **Player 2/AI (Red):** Neon Crimson glowing material with metallic edges. * **Numbers:** Render dynamic 3D numbers (1-20) on top of the tiles. Use white or bright silver for contrast. * **Performance:** Use `InstancedMesh` for the grid if possible to optimize draw calls on mobile devices. Keep polygon count low per tile. * **Lighting:** Use a central PointLight to create specular highlights on the "glass" tiles and an AmbientLight for base visibility. ### 2. Audio Requirements * **BGM:** A minimal, thinking-paced ambient electronic track (Eno-esque or Synthwave) that loops seamlessly. * **Sound Effects (SFX):** * *Placement:* A heavy, satisfying mechanical "clack" or digital "lock-in" sound. * *Capture:* A high-pitched "power-up" or digital "flip" sound when enemy tiles change color. * *Turn Switch:* A subtle "whoosh" indicating the active player has changed. * *Game Over:* A short musical jingle (triumphant for win, somber for loss). ### 3. Gameplay Loop * **Setup:** A hexagonal board (e.g., roughly 6x6 or a defined hex shape). Two starting tiles (one Blue, one Red) placed initially. * **Turn Logic:** 1. The game generates a random number (1-20) for the current player. This is the "Active Soldier." 2. Player selects an empty hex to place the soldier. 3. **The "Proximity" Mechanic:** Upon placement, the code must check all 6 adjacent neighbors. 4. **Capture:** If an adjacent tile belongs to the enemy AND has a *lower* number than the just-placed tile, the enemy tile flips to the current player's color. * **End Game:** The game ends when the board is full. * **Win Condition:** The player with the highest count of tiles (Strategy 1) or highest sum of points (Strategy 2 - specifically request Tile Count for this classic version) wins. ### 4. Mobile Controls & Interaction * **Input Method:** `Raycaster` based touch interaction. * **Tap:** Tap an empty hex to place the current number. * **UI & HUD:** * **Portrait Mode Optimized:** * **Top Bar:** Scoreboard (Blue Score vs. Red Score). * **Bottom Bar:** "Current Number" indicator (show the tile the player is about to place) and a "Next Number" preview. * Make buttons and the "Current Number" indicator large enough for thumb interaction (minimum 44px touch target). * **Visual Feedback:** * When the player touches a valid empty hex (before lifting the finger), highlight the hex in a subtle white glow. * **Juice:** When a tile is captured, add a small tween animation (scale up slightly and settle back down) or a color flash to emphasize the takeover. * **Haptics:** Trigger `navigator.vibrate(50)` on tile placement and `navigator.vibrate([50, 50, 50])` on a successful capture chain. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Proximity

Proximity is an innovative strategy puzzle game that combines mathematical thinking with territorial warfare. With a solid 3.2/5 rating from puzzle enthusiasts, this brain-teasing game challenges players to think several moves ahead while managing numbered armies across a hexagonal battlefield.

Unlike traditional puzzle games, Proximity requires both strategic planning and numerical awareness. Each move affects the balance of power on the board, creating a dynamic gameplay experience that keeps players engaged for hours.

Core Features

Strategic Depth

  • Territory Control : Capture and defend hexagonal territories using numbered soldiers
  • Dynamic Gameplay : Every placement affects surrounding areas, creating chain reactions
  • Multiple Strategies : Various approaches to victory, from aggressive expansion to defensive positioning
  • Brain Training : Enhances logical thinking, pattern recognition, and strategic planning skills

Accessible Design

  • Free to Play : Complete game experience at no cost
  • Browser-Based : No downloads required, play instantly in your web browser
  • All Ages Content : Suitable for players of all skill levels and ages
  • Cross-Platform : Compatible with desktop computers, tablets, and mobile devices

Unique Mechanics

The game's hexagonal grid system creates more complex interactions than traditional square-based strategy games. Each hexagon can influence up to six neighboring territories, making every placement decision crucial to your overall strategy.

Game Mechanics

Territory Capture System

When you place a numbered soldier, it automatically captures any adjacent territories controlled by enemies if your number is higher. This creates opportunities for massive territorial gains with a single well-planned move.

Number Strategy

Managing your numbered pieces becomes increasingly important as the game progresses. Higher numbers provide more capture potential but are limited in quantity, requiring careful resource management throughout each match.

Operation Guide

Basic Controls

  • Mouse : Click to select and place numbered soldiers on hexagonal territories
  • Keyboard : Navigate menus and access game options
  • Strategic Placement : Choose optimal positions to maximize territory capture
  • Turn Management : Plan multiple moves ahead for maximum effectiveness

Victory Conditions

The player controlling the most territories when all pieces are placed wins the game. This simple objective masks the deep strategic complexity that emerges during gameplay.

Why Play Proximity

Mental Exercise

Proximity serves as an excellent brain training tool, improving spatial reasoning, numerical skills, and strategic thinking. Regular play can enhance problem-solving abilities applicable to real-world scenarios.

Quick Sessions

Each game can be completed in 10-15 minutes, making it perfect for short breaks or casual gaming sessions. The quick pace keeps gameplay fresh and prevents mental fatigue.

Competitive Challenge

Whether playing against computer opponents or challenging friends, Proximity offers scalable difficulty that grows with your skill level. Master the basics, then develop advanced strategies for ultimate territorial dominance.

Educational Value

The game subtly teaches mathematical concepts, spatial relationships, and logical reasoning, making it an excellent choice for students and lifelong learners seeking engaging educational content.

Frequently Asked Questions (FAQ)