@priyanshuranjan7004 on AIRCRAFT LASER STRIKE 2D
I made a 2D top-down arcade game called “Aircraft Laser Strike 2D” where you control an aircraft, shoot lasers, destroy falling targets, and try to survive as long as possible.Let’s go save the world 😁 You have only 3 Lives remember.
I first wanted to use the Turtle module, but since I’ve used it a lot before, I tried Pygame instead. It worked locally, but when I tried deploying it on PythonAnywhere, it kept crashing because servers can’t open desktop windows. I had to completely switch gears and rewrite the game using HTML5 Canvas and JavaScript inside a Flask backend. It was also really tricky to balance the speeds of the player, lasers, and falling blocks so the game loops didn’t spawn enemies too fast. Choosing good colors was confusing too!
I’m really proud that I didn’t give up when Pygame crashed on the server. I managed to convert it to a web game that anyone can open in their browser and play instantly with smooth movement and laser shooting.
Use Arrow keys or W, A, S, D to move your aircraft.
Press the Spacebar to shoot lasers (there is a small cooldown so you can’t just spam it).
Press R to restart whenever you get a Game Over!
- 2 devlogs
- 1h