神经猫

围住神经猫游戏

浪子不回头ぞ 提交于 2020-04-06 06:55:56
运行结果: index.htm: <html lang="en"> <head> <meta charset="UTF-8"> <title>围住神经猫</title> <script src="easeljs.min.js"></script> <script src="Circle.js"></script> </head> <body> <canvas width="800px" height="800px" id="gameView"></canvas> <script src="app.js"></script> </body> </html>``` app.js: ```var stage = new createjs.Stage("gameView"); createjs.Ticker.setFPS(30); createjs.Ticker.addEventListener("tick",stage); var gameView = new createjs.Container(); gameView.x = 30; gameView.y = 30; stage.addChild(gameView); var circleArr = [[],[],[],[],[],[],[],[],[]]; var currentCat;//保存这只猫 var MOVE_NONE=

围住神经猫游戏

坚强是说给别人听的谎言 提交于 2020-03-25 20:48:20
3 月,跳不动了?>>> 开发工具:pycharm 游戏介绍:随机点击小球直至游戏结束。 index.html <!DOCTYPE html > <html> <head> <meta charset= "UTF-8" > <title></title> <script src= "js/easeljs.min.js" ></script> <script src= "js/Circle.js" ></script> </head> <body> <canvas id= "gameView" width= "800px" height= "800px" ></canvas> <script src= "js/app.js" type= "text/javascript" charset= "utf-8" ></script> </body> </html> app.js var stage = new createjs. Stage ( "gameView" ) ; createjs. Ticker . setFPS ( 30 ) ; createjs. Ticker . addEventListener ( "tick" , stage) ; var gameView = new createjs. Container () ; gameView. x = 30 ;