Skip to content

Tarekuzjaman0/TruthDare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎉 Truth and Dare - Spinning Bottle Game

A Truth and Dare game for Android using Java and XML in Android Studio. The game features a spinning bottle animation that randomly selects a player when tapped.

🚀 Features

  • 🎡 Fast Bottle Spin – Spins quickly in 1.5 seconds.
  • 🔄 Smooth Animation – Uses RotateAnimation for fluid movement.
  • 🔊 Sound Effects – Plays a spin sound when the bottle rotates.
  • 🎯 Random Player Selection – Chooses between Player 1 to Player 4.
  • 📱 Edge-to-Edge UI – Modern Android UI with EdgeToEdge mode.

🎮 How It Works

  1. Tap the bottle to start spinning.
  2. The bottle rotates randomly and stops after 1.5 seconds.
  3. A random player is selected based on the final bottle position.
  4. The selected player’s name appears on the screen.

🛠️ Tech Stack

  • Java – Android development.
  • XML – UI design.
  • MediaPlayer – For playing sound effects.
  • RotateAnimation – For smooth bottle rotation.

⚙️ Setup & Installation

  1. Clone this repository:
    git clone https://github.com/Tarekuzjaman0/TruthDare.git