+ 1

Why can't I redraw on my canvas after clearing it in JavaScript?

I loaded sprites into my canvas to make it look better. I've searched up online how to properly load images on canvases and learnt that I must use the .onload method. Are there any other ways I can load images more conveniently? https://code.sololearn.com/WYy1C393QY62/?ref=app

18th Jun 2021, 3:41 PM
Purple Requiem
Purple Requiem - avatar
2 Answers
+ 1
Runtime Terror I did try a game loop but the same problem occured
19th Jun 2021, 2:36 AM
Purple Requiem
Purple Requiem - avatar
Hot today
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes