Air Hockey Cup - Classic Table Hockey Game

Seele01-Flash
By
Air Hockey Cup is an addictive online sports game that recreates the classic table hockey experience with strategic gameplay, precise puck control, and time-based turns that challenge your aiming skills.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Air Hockey Cup". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Arcade Sports (Stylized/Cartoon). The aesthetic should mimic a glowing, futuristic air hockey table. * **Camera**: Fixed Top-Down Orthographic camera (or high-angle Perspective) to show the full rink clearly on a mobile screen. * **The Rink**: A rectangular ice-blue surface with glowing neon edges. Include standard hockey markings (center line, center circle, goal creases) using simple white lines. The surface should have a slight "glossy" material property to simulate ice/plastic. * **Game Objects**: * **Player Tokens**: Low-poly cylinders (chamfered edges). Team A (Player) = Red with a Star icon on top. Team B (AI) = Blue with a Snowflake icon on top. Total 5 tokens per team. * **The Puck**: A smaller, distinct black or gold cylinder representing the "ball" to be hit. * **Performance**: Use standard geometries (CylinderGeometry, BoxGeometry) where possible to reduce load. Use simple `MeshLambertMaterial` or `MeshPhongMaterial` for performance on mobile devices. Limit dynamic lights to one directional light and ambient light. ### 2. Audio Requirements * **BGM**: Upbeat, high-energy arcade synthesizer track (looping). * **Sound Effects (SFX)**: * **Impact**: Plastic "clack" sound when tokens hit the puck or walls (vary pitch slightly based on velocity). * **Goal**: A loud buzzer or air-horn sound accompanied by a cheering crowd effect. * **Timer**: A ticking clock sound that accelerates during the last 3 seconds of a turn. * **UI**: Soft clicks for selection; a "woosh" sound for the shooting action. ### 3. Gameplay Loop * **Type**: Turn-based Physics Strategy (similar to "Soccer Stars" or "Penny Football" but with Air Hockey physics). * **Setup**: 5 Player Tokens vs. 5 AI Tokens placed in formation on opposite sides of the rink. 1 Puck in the center. * **Turn Logic**: * **Player's Turn**: The player selects one of their tokens, aims, and flicks it to hit the Puck towards the opponent's goal. * **Physics Phase**: After the shot, the game waits until all moving objects come to a near-complete stop. * **AI's Turn**: The computer calculates a vector to hit the Puck towards the Player's goal. * **Timer**: strict 15-second limit per turn. If the time expires, the turn passes immediately to the opponent. * **Win Condition**: The first to score 3 goals wins the match. * **Physics**: Low friction (air table feel), high bounciness (restitution) on walls. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Portrait Mode** is preferred to maximize the rink's length on mobile phones (Player at bottom, AI at top). * **Slingshot Mechanic**: * **Input**: Touch and drag on a specific token. * **Visual Aid**: Render an arrow or dotted trajectory line opposite to the drag direction. The arrow should change color (Green -> Yellow -> Red) indicating force magnitude. * **Cancel**: If the user drags the finger back to the origin (zero force) and releases, the shot is cancelled. * **UI Layout**: * Scoreboard at the top center. * Turn Timer (large, readable font) near the active player's side or top corner. * "Your Turn" / "Opponent's Turn" floating text overlay for state changes. * **Feedback**: Trigger device vibration (Haptic Feedback) when a goal is scored or a heavy collision occurs. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Air Hockey Cup

Air Hockey Cup is a thrilling digital recreation of the beloved table hockey game that combines fast-paced action with strategic thinking. This free browser-based sports game challenges players to master puck control, perfect their aim, and outmaneuver opponents through tactical positioning and precise timing.

Unlike traditional air hockey, this game introduces a unique turn-based system where each move counts. With colorful tokens representing your team and strategic gameplay mechanics, Air Hockey Cup offers both casual fun and competitive depth that keeps players coming back for more.

Core Features

Strategic Turn-Based Gameplay

The game revolutionizes classic air hockey by implementing a strategic turn-based system. Each team controls 5 tokens on the field, and players must carefully plan their moves to position the puck advantageously while blocking opponent advances.

Intuitive Mouse Controls

Simple yet precise controls make the game accessible to all skill levels. Hold and drag with your mouse to adjust force and aim, then release to execute your shot. The physics-based system rewards accurate timing and strategic thinking.

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices. Whether you're playing on desktop with mouse controls or mobile with touch controls, the game adapts perfectly to your preferred platform without compromising the experience.

Customizable Game Settings

Personalize your gaming experience with adjustable difficulty levels, field sizes, puck speeds, and sound effects. Tailor the game to match your skill level and preferences for optimal enjoyment.

Game Mechanics

Objective and Scoring

The primary goal is to get the puck into your opponent's goal while defending your own net. Success requires a combination of offensive positioning and defensive strategy, making each move crucial to victory.

Time Pressure Element

Each turn comes with a time limit, adding excitement and urgency to decision-making. Players must quickly analyze the field, plan their strategy, and execute their move before time expires, creating intense gameplay moments.

Multi-Token Strategy

With 5 tokens per side, advanced players can execute complex strategies like using one shot to move multiple opponent tokens while advancing their own position. This depth makes every game unique and challenging.

Operation Guide

Desktop Controls

  • Mouse Hold and Drag : Position your cursor over a token, hold the left mouse button, and drag to set force and direction
  • Aim Adjustment : Pull back to cancel if your aim needs correction
  • Release : Let go of the mouse button to execute your shot

Mobile Controls

  • Touch and Drag : Tap and hold any token, then drag across the screen to adjust force and aim
  • Precision Aiming : Use smooth finger movements for accurate shots
  • Quick Release : Lift your finger to launch the puck

Winning Strategies

Focus on angles and positioning rather than just power. The best shots serve dual purposes: moving opponent tokens away from advantageous positions while advancing your own strategic goals. Always consider both offensive and defensive implications of each move.

Why Play Air Hockey Cup

Perfect for Quick Gaming Sessions

With its turn-based format and engaging gameplay, Air Hockey Cup is ideal for both quick breaks and extended gaming sessions. The strategic depth ensures you'll discover new tactics with each playthrough.

Skill Development

The game enhances spatial reasoning, strategic planning, and timing skills. Players naturally improve their ability to predict outcomes and plan multi-step strategies through regular play.

Stress-Free Entertainment

As a single-player game against AI, you can enjoy competitive gameplay without the pressure of human opponents. Play at your own pace and skill level while gradually improving your abilities.

Accessible Anywhere

Being a browser-based game means no downloads, installations, or storage concerns. Simply open your browser on any device and start playing immediately, making it perfect for gaming on the go.

Frequently Asked Questions (FAQ)