Dodge and Shoot: A Simple JavaScript Game with Enemies, Score, and Health
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.
- Dodge and Shoot 1
- Dodge and Shoot 2
- Dodge and Shoot 3
- Dodge and Shoot 4
- Dodge and Shoot 5
- Dodge and Shoot 6
- Dodge and Shoot 7
- Dodge and Shoot 8
- Dodge and Shoot 9
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.
- Night Cafe Studio BG Concept
- Night Cafe Studio Spaceship Model
- Night Cafe Studio Spaceship2
- Night Cafe Studio Alien Ship
- Night Cafe Studio Power Up
- Dodge and Shoot V1
- Dodge and Shoot V2
- Dodge and Shoot V3
- Boss Concept
- Game Boss Final Design
The Game’s Code
Assets Used
- https://freesound.org/people/MATRIXXX_/sounds/365782/
- https://pixabay.com/sound-effects/search/bullet/
- https://freesound.org/people/StormBat/sounds/406371/
- https://freesound.org/people/maxmakessounds/sounds/353546/