python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
P5.JS - Action every few seconds
I am quite new to p5 and would need some advice.
Is it possible to trigger an action only every few seconds?
For example: After two seconds i++;
If I use draw() or an own loop function it just goes wa...
Skaend
Votes: 0
Answers: 1
GTK# using DrawingArea
I want to write a Snake game using GTK# but for several days I can't figure out the way dealing with DrawingArea. In all the examples that I've found, there's subscribtion to the drawingArea.ExposeEve...
Demyan
Votes: 0
Answers: 1
How to keep a sprite drawn even after the the condition that drew it is no longer valid?
The question I have has to do with a specific portion of my code in Pygame where I m trying to draw a new sprite onto the screen every couple of seconds.
def spawn(self):
self.count += 2
ali...
Ayoon Butt
Votes: 0
Answers: 1
How to set outline as per image shape?
I am stuck with this point. I want an outline as per image and I want output as per this video
I tried this code but it was not working smooth.
extension CGPoint {
/**
Rotates the poin...

Kamlesh Shingarakhiya
Votes: 0
Answers: 1