Share your repls and programming experiences

← Back to all posts
Canvas Basketball
mwilki7 (1104)

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
Commentshotnewtop
aguy11 (119)

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

And it turned out completely fine...

VulcanWM (2175)

Can I add this to my website?

VulcanWM (2175)

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

ebest (635)

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 (1104)

@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.

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 (1104)

@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.

Edgod (80)


Fast Shooty is Fast

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

numcomx (108)

Very fun game :D

katyadee (1221)

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

mwilki7 (1104)

@katyadee probably but my contest submission will be something different

EthanJustice (29)

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

mwilki7 (1104)

@EthanJustice YOU DENY ME FAST SHOOTY??