Proximity - Strategic Number Placement Puzzle Game

Seele01-Flash
By
Proximity is a strategic number placement puzzle game that combines tactical thinking with brain-teasing challenges. Place numbered soldiers strategically to capture territories and outsmart your opponents in this Othello-inspired hexagonal grid game.

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**: Cyber-Tactical Strategy Board. The aesthetic should be clean, dark, and futuristic, resembling a holographic war table. * **Grid System**: A mathematically perfect **Hexagonal Grid** (Honeycombe layout). The grid should be centered on the screen. * **Tile Models**: * **Empty Slots**: Dark, semi-transparent hexagonal plates with glowing teal edges to indicate valid placement zones. * **Player Units**: 3D Hexagonal prisms. * **Team Blue**: Metallic blue material with emissive blue text. * **Team Red (AI)**: Metallic red material with emissive red text. * **Text**: 3D floating numbers (1-20) on top of each unit to represent power levels. * **Lighting**: A dramatic spotlight focused on the board, plus point lights for the active player's turn (Blue or Red ambient glow). * **Mobile Optimization**: Use `InstancedMesh` for the hexagonal grid tiles to ensure 60FPS performance on mobile devices. Use simple geometry (low-poly) with standard materials. ### 2. Audio Requirements * **BGM**: A low-tempo, ambient "Thinking/Strategy" electronic track. Deep bass and subtle synth pads. * **SFX**: * **Selection**: A soft digital "chirp" when touching a valid tile. * **Placement**: A heavy, mechanical "lock-in" sound. * **Capture/Flip**: An energetic "power-up" or "data-upload" sound effect when an enemy tile is converted. * **Win/Loss**: A short fanfare for victory, a powering-down sound for defeat. ### 3. Gameplay Loop * **Setup**: A hexagonal board (size approx 6x6 or 7x7). * **Turn-Based Logic**: * Player (Blue) and AI (Red) take turns placing a unit on an empty tile. * **The "Next Number"**: At the start of a turn, the player is assigned a random number (1-20) shown in the UI. They must place this number on the board. * **The Proximity Mechanic (Core)**: * When a tile is placed, the game checks all 6 adjacent neighbors. * If an adjacent tile belongs to the ENEMY and has a **lower number** than the placed tile, the enemy tile is **captured** (flips color to the current player's team). * Friendly tiles and empty tiles are unaffected. * **Win Condition**: The game ends when all hex tiles are filled. The side with the highest count of controlled tiles wins. * **AI Logic**: The AI should prioritize moves that result in the highest immediate net gain (placing high numbers next to low-number player tiles). ### 4. Mobile Controls & Interaction * **Camera**: Fixed Top-Down Orthographic camera, optimized for Portrait Mode interaction. * **Input System**: * **Raycaster**: precise touch detection on the 3D grid. * **Tap**: Tap an empty hex to place the current unit immediately. * **UI Layout (HUD)**: * **Top Bar**: Scoreboard (Blue Score vs. Red Score). Large, readable font. * **Bottom Action Area**: A distinct "Current Unit" display zone located in the bottom 20% of the screen (Thumb Zone). This shows the number the player is holding, pulsing slightly. * **Feedback**: * **Haptic**: Trigger a light vibration (using `navigator.vibrate`) when a tile is placed and a stronger vibration when tiles are captured. * **Visual**: When a tile is captured, it should perform a 180-degree flip animation to change color. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Proximity is an engaging strategic puzzle game that challenges players to think tactically while placing numbered pieces on a hexagonal grid. With a solid 3.2/5 rating from puzzle enthusiasts, this game offers a unique blend of strategy and number-based puzzle solving that appeals to players who enjoy both tactical planning and mathematical challenges.

The game transforms the classic territory control concept into an innovative number-based strategy experience. Players must carefully consider each move, as the placement of numbered soldiers determines territorial control and ultimate victory.

Core Features

Strategic Number Placement System

The heart of Proximity lies in its innovative number placement mechanics. Each numbered piece acts as a soldier with specific capture abilities, creating layers of strategic depth that reward careful planning and tactical thinking.

Othello-Inspired Gameplay

Drawing inspiration from the classic Othello game, Proximity adds mathematical elements to territorial control. The familiar capture mechanics are enhanced with number-based rules that create new strategic possibilities.

Brain Training Benefits

  • Mathematical thinking : Enhance number recognition and strategic calculation skills
  • Spatial reasoning : Develop understanding of hexagonal grid patterns and relationships
  • Strategic planning : Improve forward-thinking and tactical decision-making abilities
  • Pattern recognition : Learn to identify winning combinations and defensive positions

Accessible Yet Challenging

Rated for all ages, Proximity offers an easy-to-learn interface with deep strategic gameplay. The simple mouse and keyboard controls make it accessible to players of all experience levels, while the tactical depth provides lasting challenge.

Game Mechanics

Proximity uses a hexagonal grid system where players place numbered soldiers to capture enemy territories. The winner is determined by who controls the most armies at the game's conclusion. This creates dynamic gameplay where early advantages can shift, and comeback victories are always possible.

Territory Control Dynamics

Each numbered piece influences surrounding hexagons based on specific rules. Players must balance offensive expansion with defensive positioning, creating engaging tactical decisions throughout each match.

Operation Guide

Basic Controls: - Mouse : Click to select positions and place numbered soldiers on the hexagonal grid - Keyboard : Use for additional game functions and menu navigation

Gameplay Strategy: 1. Analyze the hexagonal grid to identify key strategic positions 2. Place numbered soldiers considering their capture potential 3. Plan several moves ahead to maximize territorial control 4. Adapt your strategy based on opponent moves and changing board conditions 5. Focus on controlling the most armies to secure victory

Why Play Proximity

Proximity stands out among puzzle games by combining mathematical strategy with territorial control mechanics. It offers the perfect balance for players seeking mental stimulation without overwhelming complexity. The game's all-ages rating makes it suitable for family gaming, while the strategic depth satisfies serious puzzle enthusiasts.

The hexagonal grid system creates unique spatial challenges different from traditional square-based puzzle games. Each game session provides fresh strategic scenarios, ensuring high replayability and continuous learning opportunities.

Whether you're looking to improve your strategic thinking skills, enjoy a quick mental challenge, or engage in thoughtful gameplay, Proximity delivers an entertaining and intellectually rewarding experience that combines the best elements of strategy and puzzle gaming.

Frequently Asked Questions (FAQ)