kunjgit / GameZone

This open source repository contains collection of games build on basic tech stacks in web development . Use your creativity and build your own game and contribute to the repository by making PR 🎮
https://kunjgit.github.io/GameZone/
Apache License 2.0
516 stars 790 forks source link

[Enhancement]: Keyboard Event Listener for Smooth Music Playback #3102

Open shubhanshukaintura opened 1 month ago

shubhanshukaintura commented 1 month ago

Do you want to have the enhancement of existing game ? 😀 Describe yourself..

Currently, our game requires users to move the mouse cursor to trigger music playback, which can disrupt the flow of gameplay. To address this, I suggest implementing a keyboard event listener that allows users to play music seamlessly without the need to interact with the mouse.

By adding this feature, players can enjoy uninterrupted gameplay while effortlessly controlling the music using keyboard buttons. This enhancement not only enhances user convenience but also contributes to a smoother and more immersive gaming experience overall.

Describe the solution you'd like

  1. First, I will add event listeners for specific keyboard buttons (e.g., spacebar, enter key) in the game's codebase. These event listeners will detect when the designated keys are pressed by the user.

  2. Next, I will integrate the functionality to play music within the game. This may involve creating a function or method specifically for music playback, or utilizing existing audio-related features within the game's code.

Select program in which you are contributing

GSSoC24

Code of Conduct

shubhanshukaintura commented 1 month ago

Please assign me this issue under GSSoC24

kunjgit commented 1 month ago

Hey @shubhanshukaintura ! Thank you for raising an issue 💗 You can self assign the issue by commenting /assign in comment 😀 Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀 Don’t Forget to ⭐ our GameZone🎮 Make sure you join our Discord🕹️

shubhanshukaintura commented 1 month ago

/assign

suryapratapsingh26 commented 1 month ago

I want to work on this issue under GSSOC 2024. Assign me this