You are browsing as a guest. Sign up (or log in) to start making projects!

priyanshuranjan7004

@priyanshuranjan7004

Joined July 19th, 2026

  • 2Devlogs
  • 3Projects
  • 1Ships
  • 19Votes
Heyh, I am a student and I love coding and solving physics.
Ship Pending review

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
Try project → See source code →
Open comments for this post

22m 32s logged

I first tried to built this game locally using Python and Pygame, but it completely crashed when I tried hosting it on PythonAnywhere. I learned cloud servers don’t have screens to display Pygame windows. So, I switched the graphics to HTML5 Canvas and JavaScript while using Flask to host it online. I tried something new and learnt it as this was my first time to host my file using flask on PythonAnywhere. I am happy to complete my project.

0
0
76
Open comments for this post

21m 52s logged

#1 Devlog ––Just started my project using pygame instead of turtle module is a bit new to me but I love trying something new. I just started but bugs started coming before even it could work a little some how fixed the bugs. Picking the best geometry even takes time hope to get it done somehow managed to make the blueprint first it helped a lot.

0
0
15

Followers

Loading…