Skip to content

jakhin03/tuantasybau

Repository files navigation

A web-based horror game inspired by Vietnamese coin toss mechanics with a dark twist.

๐ŸŽฎ Game Concept

Players choose between "NGรšP" or "แปฌA" and the system randomly generates 4 results from ["NGรšP", "แปฌA", "รšP", "NGแปฌA"]. If the player's choice matches the outcome, they receive a special victory animation. If they lose, they experience a horror jumpscare.

๐ŸŽจ Features

  • Polished UI/UX: Dark horror-themed interface with glitch effects
  • Dynamic Animations: Multiple victory and jumpscare variations
  • Progressive Horror: Random creepy messages and visual glitches
  • Score Tracking: Keep track of wins, losses, and total score
  • Responsive Design: Works on both desktop and mobile devices
  • Audio Effects: Background music, coin flip sounds, and jumpscare audio (placeholders included)

๐Ÿš€ How to Play

  1. Open index.html in a modern web browser
  2. Click "BแบฎT ฤแบฆU" (Start) to begin
  3. Choose either "NGรšP" or "แปฌA"
  4. Watch the coins flip and see your fate!
  5. Try to survive as many rounds as possible

๐Ÿ“ Project Structure

tai-xiu/
โ”œโ”€โ”€ index.html          # Main HTML file
โ”œโ”€โ”€ style.css           # All styling and animations
โ”œโ”€โ”€ script.js           # Game logic and interactions
โ”œโ”€โ”€ README.md           # This file
โ””โ”€โ”€ assets/             # (Optional) Add your own audio files
    โ””โ”€โ”€ audio/
        โ”œโ”€โ”€ bg-music.mp3
        โ”œโ”€โ”€ coin-flip.mp3
        โ”œโ”€โ”€ jumpscare.mp3
        โ”œโ”€โ”€ victory.mp3
        โ””โ”€โ”€ ambient.mp3

๐ŸŽต Adding Audio (Optional)

To enhance the horror experience, add audio files to the assets/audio/ directory:

  • bg-music.mp3: Background music (looping)
  • coin-flip.mp3: Coin flip sound effect
  • jumpscare.mp3: Jumpscare sound effect
  • victory.mp3: Victory sound effect
  • ambient.mp3: Ambient horror sounds

๐ŸŽฏ Game Mechanics

Scoring System

  • Win: +10 points
  • Loss: -5 points (minimum 0)

Victory Variations

The game includes multiple victory messages that appear randomly, adding psychological tension as players never know if the next "victory" will be genuine or ominous.

Jumpscare System

  • Random jumpscare images displayed on loss
  • Screen shake effect
  • Loud sound effect (when audio is added)
  • Static noise overlay

Progressive Horror Elements

  • Random glitch effects during gameplay
  • Creepy messages appearing at intervals
  • Color distortion effects
  • Unpredictable animation timing

๐Ÿ› ๏ธ Customization

Adding More Jumpscares

Edit the jumpscareImages array in script.js to add more horror images (use base64 or URLs).

Modifying Victory Messages

Edit the victoryMessages array in script.js to customize victory text.

Adjusting Difficulty

Modify the probability values in script.js:

  • Math.random() < 0.05: Frequency of glitch effects (5%)
  • Math.random() < 0.1: Frequency of creepy messages (10%)

โš ๏ธ Warning

This game contains:

  • Horror imagery
  • Sudden loud sounds (when audio is enabled)
  • Flashing effects
  • Psychological horror elements

Not recommended for:

  • People with heart conditions
  • Those sensitive to flashing lights
  • Players under 13 years old

๐ŸŒ Browser Compatibility

Tested and works on:

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

๐Ÿ“ Future Enhancements

  • Add difficulty levels
  • Implement save system
  • Add more jumpscare variations
  • Include multiplayer mode
  • Add story mode with progressive horror
  • Implement achievement system
  • Add sound toggle option

๐Ÿค Contributing

Feel free to fork this project and add your own horror elements!

๐Ÿ“œ License

Free to use and modify for personal and commercial projects.


Chฦกi tแป‘t... nแบฟu bแบกn dรกm! ๐Ÿ‘ป

About

feker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published