Space Invaders banner

Space Invaders

24 devlogs
16h 10m 9s

Space invaders is a simple game inspired by the classic retro game.the player controls the space ship and must defend against waves of incoming enemies by shoooting them before they reach bottom.the game includes basic movement controls ,shooting …

Space invaders is a simple game inspired by the classic retro game.the player controls the space ship and must defend against waves of incoming enemies by shoooting them before they reach bottom.the game includes basic movement controls ,shooting mechanics,cllision detection ,and a scoring system that increase as enemies are destroyed

This project uses AI

use Ai for debugging , ideas , some ui,readme

Demo Repository

Loading README...

prakashpvp2007

I have added a README file for this game that includes sections such as features, core gameplay, core game elements, controls, settings, technologies used, how to play, and game mechanics.

Attachment
0
prakashpvp2007

I have removed unnecessary code to make the project cleaner and more maintainable. i also optimized the CSS and added some responsive improvements

Attachment
0
prakashpvp2007

I have reorganized the image folder.previouly all images were stored in a single folder,which was not well organized .Now i have grouped them into seperate folders such as invaders,spaceships and components.i also added some new invader images which are not currently in use but will be integrated into game in future updates

Attachment
Attachment
0
prakashpvp2007

I have added a sound on/off option in the settings menu . this allows the player to enable or disable all game audio based on their preference . the selected sound setting is saved in localStorage , so it is remembered and automatically applied the next time the game starts

Attachment
0
prakashpvp2007

I have added a spaceship selection option in the settings popup. there are four spaceship choices available to select. The selected spaceship is saved in localStorage and retrieved when the game starts

Attachment
Attachment
0
prakashpvp2007

I have updated the speed of normal and powerup bullet previoulsy both speed and spawn are same that makes no sense so that i decrease speed and spawn for normal bullet and also add the setting button and setting popup, now the popup is empty but in future i add some features

Attachment
Attachment
Attachment
Attachment
0
prakashpvp2007

I have updated the maximum and minimum values for invader spawning. in the previous version, the range was too large and inconsistent, so sometimes invaders spawned in very large or very small numbers. now I have reduced the range to a smaller difference and also adjusted the initial spawn size in space

Attachment
0
prakashpvp2007

i have added up and down animation images for the invader ,which makes their movement look more dynamic and visually appealing .the invaders now switch position every second to create an animation effect.additionally ,the between invaders has been increased compare to the previous version and also added the icon for this game

Attachment
Attachment
0
prakashpvp2007

I have updated the game,s start popup Ui to include control instruction (how to play) Players can now see the controls directly ,press β€˜A’ or the left arrow to move left , β€˜D’ or the right arrow key to move right and the space bar to fire. initially i created two seperated popups one for starting the game and another for controls but this required users to click multiple buttons each time ,which was not user friendly,so i combined both into single popup for a smoother and good experience

Attachment
0
prakashpvp2007

I have centered the canvas board and increased its size to provide a larger view for a better gaming experience ,i also performed some testing to ensure everything works smoothly

Attachment
Attachment
Attachment
Attachment
0
prakashpvp2007

I have performed debugging and resolved several issues in the game. i also removed unnecessary setTimeout and interval calls to improve performance and ensure smoother execution.

Attachment
0
prakashpvp2007

i just check the velocity of the space ship ,invader,particle behind the space ship and bullet and also add images for invaders now they are not in use but in future i wiil add in game

Attachment
Attachment
0
prakashpvp2007

I have added an endgame gaurd to prevent the game-over event from being triggered multiple times . i also implemented collision detection between invaders and the player ,restoring the original behaviour where the game ends if they come into contact. Additionally i aligned the collision handling with original approch by using settimeout(0) to safely elements without causing conflicts dutring iteration

Attachment
0
prakashpvp2007

i have added the sound efferct various game events,including background music bomb explosions ,bounses,enemy shooting , explosions , game over , selection , shooting , and game start . I have also implemented a player death animation and fixed a bug related to the game over popup

Attachment
0
prakashpvp2007

I have implemented a power-up feature for the spaceship.power-ups spawn at regular intervals on the right side of the screen and move towards left if the spaceship acctack the power up it activates a machine gun firing mode,allowing the player to shoot continously without repeatedly pressing the spacebar ,even while moving

Attachment
Attachment
0
prakashpvp2007

i have implemented the scoring system ,when spaceship attack the bomb gives 50 points, when the bomb explodes it radius and destroy all the invaders within the the blast area.

Attachment
0
prakashpvp2007

I have implemented a bomb feature that spawns randomly in space .when the players spaceship bullet hit the bomb it explodes this feature is designed to support future updates such as changing the bullet color. i also plan to introduce different types of bombs like a yellow color

Attachment
Attachment
0
prakashpvp2007

i have implemented collision detection between the player’s bullets and the invaders when the bullet fired by the spaceship hits an invader,the invader is destroyed ,i have also adde a score system each destroyed invader increases the score by 100 points

Attachment
Attachment
Attachment
1

Comments

stacktrace
stacktrace 2 days ago

πŸ”₯πŸ”₯πŸ‘Œ

prakashpvp2007

i have updated the enemy to include firing,invaders now shot at random intervals from differnt positions ,adding unpredictability to the gameplay .if an enemy projectile hits the players space ship the space ship is destroyed and the game ends currently the game ends immediately on a hit ,but in future updates ,i plan to add a life system

Attachment
Attachment
0
prakashpvp2007

I have implemented enemy (invader) spawning every 60 frames (1 second). The invaders move left and right, and when they touch a side corner, they move down one step. Additionally, the speed of the invaders increases as they get closer to the player.

Attachment
Attachment
0
prakashpvp2007

I have completed the firing mechanism for the player. the player can now shoot by pressing the spacebar. I have also added some spaceship images to images folder ,although they are not currentlu in use ,I plan to integrate them in a future update.

Attachment
Attachment
0
prakashpvp2007

i have completed the player spaceship and implemented its movement controls.the player can now move the spaceship left using A key or Left arrow key ,and right using the D key ot right arrow key,this makes the conrtrols more flexible and user -friendly

Attachment
Attachment
0
prakashpvp2007

i have completed the game background with moving starfied effect the stars animate
smoothly across the screen ,creating a dynamic space-like environment like traditional game

Attachment
Attachment
0
prakashpvp2007

This is a space invaders game.I have completed the start popup and setart popup ,organized the folder structure and written the initial javascript code for the game

Attachment
Attachment
0