Share your repls and programming experiences

← Back to all posts
Canvas Basketball
mwilki7 (1129)

Time your jump and shot to make it into the hoop.
Press Space to jump, S to shoot
F for solitaire mode
W for walls
C to clear screen of all balls
D for debug info

Smartphone controls:
Touch down to jump
release touch to shoot

New "Clear balls" button added (I should have added this long ago)

  • Thanks democat for the feedback

Also added hotkey for it, along with a scoreboard

  • Thanks ebest for the feedback
ebest (665)

Can you add a score thing to count the score?

And can you add a hotkey to clear the balls (like press c to clear balls)?

mwilki7 (1129)

@ebest It just so happens that I did have a score system in place. I don't remember why I disabled it. A score is added, more debug info can be displayed by pressing D.

aguy11 (126)

My friend: Hey man, you wanna shoot some hoops tonight?
Me: Yeah sure!

And it turned out completely fine...

democat (1)

Can you add a "Clear Balls" function that clears all the balls? The area tends to get cluttered with lots of them.

mwilki7 (1129)

@democat That's actually a pretty good idea. Usually I just respawn the walls to make the balls disappear by themselves but that would be much more satisfying.

VulcanWM (2284)

Can I add this to my website?

VulcanWM (2284)

I put it on. Here it is If you want 10 circuits on my website, get a VWM profile and tell me your username @mwilki7

BotsBoots (67)

Fast Shooty is Fast

Edit: Pretty impressive, I hope I get to see more projects from you

numcomx (110)

Very fun game :D

katyadee (1259)

Neat idea! Do you think there's a way to add music to it? 🤔

mwilki7 (1129)

@katyadee probably but my contest submission will be something different

EthanJustice (31)

You might want to add a shooting cooldown. It's very easy to spam basketballs.

mwilki7 (1129)