Share your repls and programming experiences

← Back to all posts
Canvas Basketball
mwilki7 (865)

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

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

@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 (865)

@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 (78)

Fast Shooty is Fast

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

katyadee (1171)

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

mwilki7 (865)

@katyadee probably but my contest submission will be something different

EthanJustice (63)

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

mwilki7 (865)