2 Player Tag - Online Multiplayer Tag Game

Seele01-Flash
By
2 Player Tag is a fun online multiplayer game where two players compete in classic tag gameplay across various themed levels. Play locally with a friend using the same keyboard in this exciting chase game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**2 Player Tag**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** "Flat 3D" or "2.5D" aesthetic using an **Orthographic Camera** to perfectly mimic the reference 2D platformer look while leveraging WebGL performance. * **Color Palette:** High-contrast, vibrant arcade colors. * **Background:** A dynamic, scrolling checkerboard pattern split diagonally: Bright Orange (#FF6600) on the top-left and Cyan Blue (#00CCFF) on the bottom-right. * **Players:** Simple geometric cubes (representing squares). Player 1 is Red (#FF0000) with a thick black outline (using `LineSegments` or a shader). Player 2 is Blue (#0000FF) with a similar outline. * **Level Design:** A confined single-screen arena with floating platforms (black rectangles). The arena should have boundaries so players don't fall off-screen endlessly. * **Visual Feedback:** The player currently designated as "IT" should pulse or have a glowing particle effect above their head to clearly distinguish them. * **Mobile Optimization:** Use `BoxGeometry` and `MeshBasicMaterial` for maximum FPS. Minimize draw calls. ### 2. Audio Requirements * **BGM:** Upbeat, fast-paced "8-bit Chiptune" or "Electro-Swing" track that increases in tempo during the last 10 seconds of the round. * **Sound Effects (SFX):** * **Jump:** A classic retro "Jump" or "Boing" sound. * **Tagging:** A sharp "Slap" or "Hit" sound when players collide. * **Countdown:** A ticking clock sound for the final 5 seconds. * **Win/Loss:** A short victory jingle and a sad trombone for the loser. ### 3. Gameplay Loop * **Core Mechanic:** Local multiplayer chase. One player starts as "IT". If the "IT" player touches the other player, the "IT" status transfers immediately. * **Round Logic:** Each round lasts 30 seconds. * **Victory Condition:** The player who is **NOT** "IT" when the timer hits 0:00 wins the round. * **Match Structure:** "Best of 4". Keep track of the score (e.g., Red: 1 - Blue: 2) at the top of the screen. * **Physics:** Arcade physics. High gravity, snappy movement, no momentum slide (crisp stopping). Players can jump through the bottom of platforms but land on top (one-way platforms). ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape Mode Only** (Force landscape via CSS warning if portrait). * **Dual-Control Layout (Local Multiplayer):** * **Left Side (Player 1 - Red):** Three distinct virtual buttons (Left Arrow, Right Arrow, Jump Button). Placed in the bottom-left corner. * **Right Side (Player 2 - Blue):** Three distinct virtual buttons (Left Arrow, Right Arrow, Jump Button). Placed in the bottom-right corner. * **Multi-Touch Support:** The code **must** handle multi-touch events so both players can run and jump simultaneously without input blocking. * **UI Elements:** * Scoreboard at the top center. * A large "IT" indicator arrow pointing to the current target. * Buttons must be at least 60x60 pixels for hit-testing accuracy. * **Feedback:** Trigger `navigator.vibrate(50)` on the device when a tag occurs (haptic feedback). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

2 Player Tag brings the classic childhood game of tag to your browser with exciting multiplayer action. This free online game lets you and a friend enjoy competitive tag gameplay using the same keyboard, featuring colorful 2D graphics and multiple unique levels. Whether you're looking for a quick gaming session or extended fun with friends, this casual platform game delivers instant entertainment without any downloads required.

Core Features

Local Multiplayer Fun

Experience the thrill of tag with local multiplayer functionality that allows two players to compete on the same device. The split-screen design with red and blue player zones creates an engaging competitive atmosphere perfect for friends and family gaming sessions.

Diverse Themed Levels

Each round takes you to a new level with unique visuals, music, and obstacles . From colorful checkered patterns to varied environmental challenges, every game feels fresh and exciting. The dynamic level system ensures that no two matches are exactly alike.

Simple Yet Engaging Gameplay

The game follows traditional tag rules with a modern twist - if you get tagged, you become "it" and must chase the other player. The player who isn't "it" at the end of each round scores a point , making every second count in this fast-paced chase game.

Browser-Based Gaming

As a web browser game , 2 Player Tag requires no downloads or installations. Simply open your browser and start playing immediately on any computer with internet access.

Game Rules

The rules are straightforward and easy to learn: - One player starts as "it" and must tag the other player - When tagged, roles switch and the tagged player becomes "it" - The player who is NOT "it" when the round ends receives one point - Best of four rounds wins the match - Navigate obstacles and use level features to your advantage

Controls Guide

Player 1 Controls: - W: Move up - A: Move left
- D: Move right

Player 2 Controls: - Arrow Keys: Move in all directions

Additional Controls: - M: Mute/unmute audio - Hold Esc: Quit game

Why Play 2 Player Tag

This game is perfect for anyone seeking quick, competitive fun with friends. The simple controls make it accessible to players of all ages, while the varied levels and obstacle-based gameplay keep matches exciting and unpredictable. It's an ideal choice for:

  • Gaming with friends during breaks or gatherings
  • Family entertainment that everyone can enjoy
  • Quick gaming sessions when you want immediate fun
  • Nostalgic gameplay that brings back childhood memories of tag

The game's free-to-play nature and browser compatibility make it easily accessible whenever you want to enjoy some competitive multiplayer action.

Frequently Asked Questions (FAQ)