You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v3/src/gameobjects/blitter/Blitter.js
-51Lines changed: 0 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -138,54 +138,3 @@ var Blitter = new Class({
138
138
});
139
139
140
140
module.exports=Blitter;
141
-
142
-
143
-
144
-
145
-
146
-
147
-
// var CONST = require('../../const');
148
-
// var GameObject = require('../GameObject');
149
-
// var Children = require('../../components/Children');
150
-
151
-
/**
152
-
* A Blitter Game Object.
153
-
*
154
-
* The Blitter Game Object is a special type of Container, that contains Blitter.Bob objects.
155
-
* These objects can be thought of as just texture frames with a position and nothing more.
156
-
* Bobs don't have any update methods, or the ability to have children, or any kind of special effects.
157
-
* They are essentially just super-fast texture frame renderers, and the Blitter object creates and manages them.
158
-
*
159
-
* @class Blitter
160
-
* @extends Phaser.GameObject
161
-
* @constructor
162
-
* @param {Phaser.Game} game - A reference to the currently running game.
163
-
* @param {number} [x=0] - The x coordinate of the Image. The coordinate is relative to any parent container this Image may be in.
164
-
* @param {number} [y=0] - The y coordinate of the Image. The coordinate is relative to any parent container this Image may be in.
165
-
* @param {string} [key] - The texture used by the Image during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture, BitmapData or PIXI.Texture.
166
-
* @param {string|number} [frame] - If this Image is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.
167
-
var Blitter = function (state, x, y, key, frame)
168
-
{
169
-
var _texture = state.sys.textures.get(key);
170
-
var _frame = _texture.get(frame);
171
-
172
-
GameObject.call(this, state, x, y, _texture, _frame);
0 commit comments