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
+53-27Lines changed: 53 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,19 @@
5
5
*/
6
6
7
7
varCONST=require('../../const');
8
+
varBob=require('./Bob');
8
9
varGameObject=require('../GameObject');
10
+
varChildren=require('../../components/Children');
9
11
10
12
/**
11
-
* An Image is a light-weight object you can use to display anything that doesn't need physics or animation.
12
-
* It can still rotate, scale, crop and receive input events. This makes it perfect for logos, backgrounds, simple buttons and other non-Sprite graphics.
13
+
* A Blitter Game Object.
13
14
*
14
-
* @class Phaser.GameObject.Blitter
15
+
* The Blitter Game Object is a special type of Container, that contains Blitter.Bob objects.
16
+
* These objects can be thought of as just texture frames with a transform, and nothing more.
17
+
* Bobs don't have any update methods, or the ability to have children, or any kind of special effects.
18
+
* They are essentially just texture renderers, and the Blitter object creates and manages them.
19
+
*
20
+
* @class Blitter
15
21
* @extends Phaser.GameObject
16
22
* @constructor
17
23
* @param {Phaser.Game} game - A reference to the currently running game.
@@ -28,48 +34,68 @@ var Blitter = function (state, x, y, key, frame)
0 commit comments