Dodge and Shoot: A Simple JavaScript Game with Enemies, Score, and Health

Score: 0
Health: 1
Power UP: OFF
Time: 01:30
GAME OVER
GAME WIN
RESTART GAME?
START GAME?
(CONTROLS: WSAD + U)

 

Description

Description: “Experience the thrill of an exciting and challenging browser-based game! Dodge and Shoot is a straightforward yet engaging JavaScript game that puts your skills to the test. In this game, you control a character with arrow keys in all directions, and you can shoot bullets to eliminate enemies. But be careful – if an enemy collides with you, your character will briefly change color, and you’ll lose your health. If you run out of health, it’s game over!

Key Features:

  • Movement: Use WSAD keys to navigate your character across the game screen, dodging incoming enemies.
  • Shooting: Fire bullets at enemies by pressing the U key, scoring points for each successful hit.
  • Power Up: Collect or click on a Power UP, which appears randomly every 15 seconds. This will boost your ship with more bullets and a faster speed of shooting at a cost of bigger size.
  • Scoring: Keep track of your score as you eliminate enemies, with each enemy shot down earning you 10 points. And 50 points for a bigger enemy. Their healthbar denotes remaining life left.
  • Health: You got one Health.
  • Full Screen: Press the full screen button to maximize the game window.
  • Game Over: When your health drops to zero or the Timer Ends, the game ends, and a ‘Game Over’ message appears.
  • Restart: When game ends you can restart the game to continue playing.
  • Boss Fight: When the timer reaches 0 you will fight a Boss, who shoots at the player. Beat him and you will Win the game.

This game is a fantastic way to test your reflexes and hand-eye coordination while having a blast. Whether you’re a game developer looking for inspiration or just a casual gamer seeking some quick entertainment, Dodge and Shoot has you covered. Try to beat your high score and challenge your friends to see who can survive the longest in this action-packed adventure!”

Have fun playing Dodge and Shoot, and don’t forget to challenge your friends to beat your high score.

How Was The Game Made

Chat with ChatGPT

This chat began with a request to create a simple JavaScript game where a character can move in all directions and shoot. The game was developed, and then additional features were added, such as enemies, scoring, health, and a game over condition. We also discussed how to incorporate sound effects into the game to make it more engaging. Finally, we provided a description of the game for use in a post.

Night Cafe Studio Arts

We used NightCafe Studio to generate artwork for this project. NightCafe Studio played a key role in helping us create visual elements that enhance the overall experience. Those creations, were the further modified via Gimp.

The Game’s Code

Assets Used

  1. https://freesound.org/people/MATRIXXX_/sounds/365782/
  2. https://pixabay.com/sound-effects/search/bullet/
  3. https://freesound.org/people/StormBat/sounds/406371/
  4. https://freesound.org/people/maxmakessounds/sounds/353546/
WP doin dev & security
WP doin dev & security

Oh hi there šŸ‘‹
Itā€™s nice to meet you.

Sign up to receive WordPress tips in your inbox, every month.

I donā€™t spam! Read my privacy policy for more info.