A web-based horror game inspired by Vietnamese coin toss mechanics with a dark twist.
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.
- 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)
- Open
index.htmlin a modern web browser - Click "BแบฎT ฤแบฆU" (Start) to begin
- Choose either "NGรP" or "แปฌA"
- Watch the coins flip and see your fate!
- Try to survive as many rounds as possible
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
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 effectjumpscare.mp3: Jumpscare sound effectvictory.mp3: Victory sound effectambient.mp3: Ambient horror sounds
- Win: +10 points
- Loss: -5 points (minimum 0)
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.
- Random jumpscare images displayed on loss
- Screen shake effect
- Loud sound effect (when audio is added)
- Static noise overlay
- Random glitch effects during gameplay
- Creepy messages appearing at intervals
- Color distortion effects
- Unpredictable animation timing
Edit the jumpscareImages array in script.js to add more horror images (use base64 or URLs).
Edit the victoryMessages array in script.js to customize victory text.
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%)
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
Tested and works on:
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- 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
Feel free to fork this project and add your own horror elements!
Free to use and modify for personal and commercial projects.
Chฦกi tแปt... nแบฟu bแบกn dรกm! ๐ป