javascript - Using canvas to change pictures causes flickering problem.
阿神
阿神 2017-06-07 09:24:50
0
2
973

When I use canvas to make a small game, there are pictures that need to be switched, and flickering occurs, but it doesn’t always happen, sometimes and sometimes not. What’s going on?

阿神
阿神

闭关修行中......

reply all(2)
typecho

It should be a picture loading problem. Just make sure it is loaded before drawing. It can be solved by using sprite, but making sprite is too troublesome

迷茫

Solved: Make the picture into a sprite image. Just change the shearing coordinates when switching

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!