sprite.js

来自「java 写的一个新闻发布系统」· JavaScript 代码 · 共 39 行

JS
39
字号
/*   DynAPI Distribution   Sprite Class   Modified: 2000.11.28   The DynAPI Distribution is distributed under the terms of the GNU LGPL license.*/// this is currently not really needed// what was initally going to be Sprite has become Thread, PathAnim, and DynImagefunction Sprite(img) {	this.DynImage = DynImage;	this.DynImage(img);	this.thread = new Thread(this);	this.thread._key = Thread.setUniqueKey(this);	this.thread.run = this.run;};Sprite.prototype = new DynImage;// Thread methodsSprite.prototype.sleep = function (ms) {	this.thread.sleep(ms);};Sprite.prototype.setFPS = function (fps) {	this.thread.setFPS(fps);};Sprite.prototype.cancel = function () {	this.thread.cancelThread();};Sprite.prototype.start = function () {	this.thread.start();};Sprite.prototype.stop = function () {	this.thread.stop();};Sprite.prototype.run = function () {};	// overwrite run

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?