Old School Hangman - Classic Word Guessing Game

Seele01-Flash
By
Old School Hangman brings the timeless word-guessing classic to your browser. Challenge your vocabulary and deductive skills as you guess letters to reveal hidden words before the hangman drawing is complete.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Old School Hangman - Paper Sketch Edition**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Living Sketchbook" aesthetic. The game should look like a 3D doodle on a piece of yellow graph paper (reference the logo background). * **Camera**: Use an **Orthographic Camera** to simulate a flat paper surface while retaining 3D depth for UI elements. * **Background**: A seamless, repeating yellow graph/grid paper texture. * **The Gallows & Stickman**: Instead of standard primitives, use `THREE.Line` or `THREE.TubeGeometry` with a "wiggle" effect in the vertex shader to simulate hand-drawn pencil strokes that jitter slightly (boiling line effect). * **The Word Display**: Dashes `_ _ _` representing the hidden letters should look like pencil underlines. Revealed letters should use a handwritten font loaded via `FontLoader`. * **Performance**: Use a single texture atlas for UI elements. Limit the polygon count on the "pencil" lines. Use `InstancedMesh` for the keyboard keys if possible to reduce draw calls. ### 2. Audio Requirements * **BGM**: A relaxing, lo-fi acoustic guitar or "study beats" track that loops seamlessly. It should be low volume to aid concentration. * **SFX - Drawing**: A distinct "pencil scratching on paper" sound whenever a body part is added to the hangman. * **SFX - UI**: A satisfying "typewriter clack" or "pen tap" when selecting a letter. * **SFX - Win/Loss**: A "tada" jazz flourish for winning; a "paper crumpling" sound for losing (as if throwing away the bad drawing). * **SFX - Error**: A harsh "scribble" sound when choosing a wrong letter. ### 3. Gameplay Loop * **Initialization**: Load a dictionary of words (e.g., an array of strings). Select a random word. Display blank underlines corresponding to word length. * **Core Mechanic**: * Player taps a letter from the virtual keyboard. * **Correct Guess**: The letter fills in the blank(s) above. Score +10 points. * **Wrong Guess**: The letter is crossed out/grayed out. One part of the "Hangman" is drawn (Order: Gallows -> Head -> Body -> Left Arm -> Right Arm -> Left Leg -> Right Leg). * **Diamond Economy**: Implement a currency called "Diamonds." * Win a game = Earn 5 Diamonds. * **Hint System**: A "Buy Clue" button consumes 20 Diamonds to randomly reveal one vowel or a difficult consonant in the hidden word. * **Win Condition**: All letters revealed before the stickman is fully drawn. Show "You Survived!" UI. * **Loss Condition**: Stickman is fully completed. Show "Game Over" UI with the revealed word. ### 4. Mobile Controls & Interaction * **Orientation**: **Portrait Mode** (Vertical) is mandatory to fit the gallows at the top and the keyboard at the bottom. * **Input Method**: Use `THREE.Raycaster` for touch events. * **Virtual Keyboard**: Construct a 3D grid of letter blocks (A-Z) at the bottom 1/3 of the screen. * **Touch Area**: Each key must be at least 44x44 units visually to ensure hit-testing accuracy on mobile. * **Feedback**: When tapped, the key should physically depress (Z-axis movement) and change color (e.g., to Green for correct, Red for incorrect, Gray for used). * **Haptic Feedback**: Trigger `navigator.vibrate(20)` on button press (if supported) for tactile feel. * **UI Scaling**: Ensure the main scene scales responsively to `window.innerWidth/Height` so the keyboard never overlaps the drawing area on smaller screens. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Old School Hangman is a beloved classic word puzzle game that has entertained players for generations. This free online version maintains all the suspense and strategy of the traditional game while adding modern features like diamond rewards and hint systems. With a solid 4.37/5 rating from players, it's the perfect blend of nostalgia and engaging gameplay.

The game challenges your vocabulary knowledge and logical thinking as you attempt to guess hidden words one letter at a time. Each wrong guess adds a part to the hangman drawing - guess incorrectly too many times and the game ends!

Core Features

Classic Hangman Gameplay

Experience the authentic hangman game mechanics that have made this puzzle a timeless favorite. The familiar gallows and step-by-step drawing create the perfect tension as you work to solve each word puzzle.

Diamond Reward System

Earn valuable diamonds as you successfully complete words. These diamonds can be used to purchase helpful clues when you're stuck on particularly challenging words, adding a strategic layer to the classic formula.

Progressive Difficulty

Start with simpler words and gradually face more challenging vocabulary as you advance. The game adapts to provide an appropriate challenge level that keeps you engaged without becoming frustrating.

Mobile-Optimized Design

Perfectly designed for both desktop and mobile play. Whether you're using a mouse or touchscreen, the intuitive interface makes letter selection smooth and responsive.

High Score Tracking

Compete against yourself and track your progress with built-in high score functionality. Challenge yourself to improve your word-solving efficiency and accuracy.

Game Strategy

Smart Letter Selection

Successful hangman players know that strategy matters. Start with common vowels (A, E, I, O, U) as they appear frequently in most words. Follow up with popular consonants like R, S, T, L, and N.

Avoid Uncommon Letters

Letters like X, Y, Z, Q, and J appear rarely in most words. Save these for last when you have a better sense of the word structure, or avoid them entirely unless you're confident.

Use Word Patterns

As letters are revealed, think about common word patterns and structures. This deductive approach can help you solve words more efficiently and conserve your guesses.

How to Play

Desktop Players : Use your mouse to point and click on the letters you want to guess. The interface is intuitive and responsive for precise letter selection.

Mobile Players : Simply tap the letters on your touchscreen device. The game is fully optimized for mobile play with large, easy-to-tap letter buttons.

Objective : Guess all the letters in the hidden word before the hangman drawing is completed. Each incorrect guess adds a body part to the gallows. Complete words to earn diamonds and unlock hints for future puzzles.

Why Play Old School Hangman

Educational Value

Hangman is more than just entertainment - it's an excellent way to improve vocabulary, spelling, and logical thinking skills. Perfect for students, language learners, or anyone looking to keep their mind sharp.

Stress-Free Gaming

With no time pressure or complex controls, Old School Hangman offers relaxing gameplay that you can enjoy at your own pace. It's perfect for quick breaks or extended puzzle-solving sessions.

Universal Appeal

Suitable for all ages and skill levels, this classic game brings families together and provides solo entertainment. The simple rules make it accessible to everyone, while strategic depth keeps experienced players engaged.

No Downloads Required

Play instantly in your web browser without any downloads or installations. The game loads quickly and runs smoothly on any modern device with internet access.

Frequently Asked Questions (FAQ)