It's Some Bubbles!
A very nice screensaver... just click to add bubbles or (as @Bookie0 recommended ;D) click the
a key and it will automatically create bubbles like a screensaver :O!
I appreciate any suggestions :)
Go into fullscreen here:
Yeah this is very simple compared to other things I've made, but I had a challenge to make something in p5.js in less than 30mins so here we are :)
I'm working on two very big projects, so keep your eyes peeled!
Ah, I can't. Replit.com doesn't support from mouse import click. Anyways, it's not that fast anyways... only 100 cps.
here's the [email protected]
from keyboard import is_pressed
from mouse import click
from random import randint
yesnomeow = input("Do you want to seem like a bot, Yes or No.\n")
if yesnomeow.lower() == "no":
x = 1 / randint(500, 3000)
elif yesnomeow.lower() == "yes":
x = 0
cps = int(input("How many cps? 1-100?\n"))
from time import sleep
wait = (1 / (cps * 100)) - (1 / 10001)
on = False
on = False
on = True
on = ''
print("please press s to start or e to end")
if on == True:
sleep(wait + x)
elif on == '':
raise Exception("ok bye!")
pretty cool, how about making it automatic? since it's a screensaver, it should start the animation without us having to tap it! :D
This is very satisfying. If i had it my way, though, i'd make every bubble orange(because orange is the best)
Wow, this is amazing! I have a suggestion, instead of making the bubbles suddenly poof disappear, try making it slowly fade away instead, I think that'd be cool :D
@KobeFF lol they don't freeze that's intentional because of how math and stuff works
there's math calculating the direction the bubble travels and then how it rebounds, when you click into a corner the bubbles it will constantly rebound back and forth between the corner because it can't move elsewhere :P
This is pretty pog!
Also, why do you have a p5.js file with 80,000 lines of code? Won't using the following in html work?