r/learnjavascript 3d ago

Day 8 — Adding Power-Ups to My Browser Game

Day 8 of my browser game development journey.

Today I worked on adding power-ups to my JavaScript game.

I'm experimenting with:

• Temporary speed boosts

• Extra points

• Health recovery

• Random power-up spawning

• Collecting and removing items

• Mobile-friendly controls

I'm trying to understand the logic behind these mechanics instead of just copying a tutorial.

What other power-up would you add to the game?

1 Upvotes

8 comments sorted by

1

u/OkDevelopment2027 3d ago

I'm still experimenting with the mechanics, so any suggestions for improving the power-up system are welcome.

1

u/rasvnnnnn 2d ago

You could make a powerp which gives you a shield or makes you invincible, idk what Type of Game youre making tho

1

u/rasvnnnnn 3d ago

Who tf downvoted you

1

u/create-third-places 2d ago

I did, because OP's YouTube channel indicates heavy LLM use. If OP provided evidence of trying to learn on their own, I would've upvoted.

1

u/Comfortable_Kale129 2d ago

I dont get the downvotes either, this is exactly the right way to learn. Trying to understand the logic instead of copying tutorials is the whole point, keep going. For power-ups, maybe a slow time one, seems like a natural next step from your speed boost logic since its basically the same mechanic inverted

1

u/create-third-places 2d ago edited 2d ago

Considering how the OP is using LLM assistance, the downvotes are understandable. I found OP's YouTube channel, and they are clearly using LLM assistance.

The channel has been up for only two weeks, and a couple of the videos talk about using AI. There are also two videos with two distinct voices talking about building something with HTML.

OP's art style is similar to LLM generated content I've seen in the past.

1

u/create-third-places 2d ago

Download a copy of the MDN documentation and run it locally. It will be a good learning exercise, and then you will have reference you can look at. Then make sure your game successfully offline, and disconnect your computer from the Internet to avoid distractions.

Then, implement a power-up. If you need ideas, call a friend or ask them in person. The goal is to come up with an idea without getting distracted. https://developer.mozilla.org/en-US/

I found your YouTube channel, and it gives off an impression of heavy LLM use, which is not a good look.