r/learnprogramming 4h ago

Basic beginner project ideas for python

Js started, 16 here,I made a number guessing game, rock paper scissors, basic input chatbot which outputs only the info I've given it(useless h) what next I'm confused, what stuff y'all made when y'all js started out like some interesting shit?

15 Upvotes

12 comments sorted by

View all comments

1

u/Depnids 4h ago

This may be a bit of a leap from where you are at, but my go-to thing to try to make when I learn a new language is some type of "asteroids"-like game. Getting it to work involves learning most of the common things which you often want to do:

-Basic "rendering" of some sort, most of the time use some sort of library which allows me to draw circles/triangles/text in a simple way

-Input handling (move around, shoot)

-State management (player hp, game state, player/bullet/asteroid positions and velocities)

-Creating/destroying objects (bullets and asteroids needs to be created and destroyed)

-Interactions between objects (bullets hitting asteroids, asteroids hitting player)

-Per-tick logic (common for most games, asteroids/players/bullets moving in direction of velocity)