easeljs+图片实现骏马奔驰动画效果代码
代码语言:html
所属分类:动画
代码描述:easeljs+图片实现骏马奔驰动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <canvas id="mycanvas" width="612" height="280"></canvas> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/easeljs.js"></script> <script type="text/javascript"> var stage = new createjs.Stage("mycanvas") createjs.Ticker.addEventListener("tick", stageBreakHandler); var img = new Image() img.src = "//repo.bfw.wiki/bfwrepo/images/horse.png" img.onload = function(){ var ss = new createjs.SpriteSheet({ "images": ["//repo.bfw.wiki/bfwrepo/images/horse.png"].........完整代码请登录后点击上方下载按钮下载查看
网友评论0