Skip to content

Afnath-max/JavaScript-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript-Game

Game Collection:

This repository contains three interactive games built using HTML, CSS, and JavaScript. Each game has its own set of rules and provides a fun user experience. Below are the details of the games:

  1. Dice Game

The Dice Game allows you to roll a pair of dice and randomly generate values for both dice. The player can click on the "Roll Dice" button to roll again and see new values. The game can be used to simulate random dice rolls for various activities or games that require dice.

Features:

  • Simulate a roll of two dice.
  • Display the result for both dice.
  • Roll the dice multiple times.
  1. Drum Kit

The Drum Kit game lets you play different drum sounds by clicking on corresponding buttons or pressing specific keys on your keyboard. It is a fun and simple way to learn basic rhythm.

Features:

  • Clickable buttons for different drum sounds.
  • Play drum sounds using your keyboard keys (e.g., W, A, S, D, J, K, L).
  • Visual and audio feedback for each sound played.
  1. Simon Game Challenge

The Simon Game is a memory game where the player must repeat a sequence of colors that gets progressively longer. The player has to remember the sequence and click the correct buttons in order to win.

Features:

  • Random sequence of colors shown to the player.
  • Player must repeat the sequence by clicking buttons.
  • Game progresses as the sequence gets longer.
  • Game ends if the player clicks the wrong button.

How to Play:

Dice Game:

  • Click the "Roll Dice" button to roll the dice and get random values.
  • You can keep clicking to roll again.

Drum Kit:

  • Click on the drum buttons or press the corresponding keyboard keys (W, A, S, D, J, K, L) to play different drum sounds.

Simon Game Challenge:

  • Watch the sequence of colors flash on the screen and repeat the sequence by clicking the corresponding color buttons.
  • The game will continue until you make a mistake.

How to Run:

  • Clone the repository or download the files.
  • Open the index.html file for the respective game in your browser.
  • Enjoy playing the games!

Technologies Used:

HTML,CSS,JavaScript

License: This repository is open-source and available for modification. Feel free to fork it, contribute, and make improvements!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors