mirror of
https://github.com/photonstorm/phaser
synced 2024-11-11 07:34:43 +00:00
4145 lines
54 KiB
HTML
4145 lines
54 KiB
HTML
|
<!DOCTYPE html>
|
||
|
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Phaser Class: Bullet</title>
|
||
|
|
||
|
<!--[if lt IE 9]>
|
||
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||
|
<![endif]-->
|
||
|
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
|
||
|
|
||
|
|
||
|
<link type="text/css" rel="stylesheet" href="styles/site.cerulean.css">
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div class="container-fluid">
|
||
|
<div class="navbar navbar-fixed-top navbar-inverse">
|
||
|
<div class="navbar-inner">
|
||
|
<a class="brand" href="index.html">Phaser</a>
|
||
|
<ul class="nav">
|
||
|
|
||
|
<li class="dropdown">
|
||
|
<a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b
|
||
|
class="caret"></b></a>
|
||
|
|
||
|
<ul class="dropdown-menu ">
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.html">Phaser</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</li>
|
||
|
|
||
|
<li class="dropdown">
|
||
|
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b
|
||
|
class="caret"></b></a>
|
||
|
|
||
|
<ul class="dropdown-menu ">
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Animation.html">Animation</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.AnimationManager.html">AnimationManager</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.AnimationParser.html">AnimationParser</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.BitmapText.html">BitmapText</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Bullet.html">Bullet</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Button.html">Button</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Cache.html">Cache</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Camera.html">Camera</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Canvas.html">Canvas</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Circle.html">Circle</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Color.html">Color</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Device.html">Device</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.html">Easing</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Back.html">Back</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Bounce.html">Bounce</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Circular.html">Circular</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Cubic.html">Cubic</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Elastic.html">Elastic</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Exponential.html">Exponential</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Linear.html">Linear</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Quadratic.html">Quadratic</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Quartic.html">Quartic</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Quintic.html">Quintic</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Easing.Sinusoidal.html">Sinusoidal</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Events.html">Events</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Frame.html">Frame</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.FrameData.html">FrameData</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Game.html">Game</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.GameObjectFactory.html">GameObjectFactory</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Graphics.html">Graphics</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Group.html">Group</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Input.html">Input</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.InputHandler.html">InputHandler</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Key.html">Key</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Keyboard.html">Keyboard</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.LinkedList.html">LinkedList</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Loader.html">Loader</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.LoaderParser.html">LoaderParser</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Math.html">Math</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Mouse.html">Mouse</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.MSPointer.html">MSPointer</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Net.html">Net</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Particles.html">Particles</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Particles.Arcade.Emitter.html">Emitter</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Physics.html">Physics</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Physics.Arcade.html">Arcade</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Plugin.html">Plugin</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.PluginManager.html">PluginManager</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Point.html">Point</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Pointer.html">Pointer</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.QuadTree.html">QuadTree</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.RandomDataGenerator.html">RandomDataGenerator</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Rectangle.html">Rectangle</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.RenderTexture.html">RenderTexture</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.RequestAnimationFrame.html">RequestAnimationFrame</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Signal.html">Signal</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Sound.html">Sound</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.SoundManager.html">SoundManager</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Sprite.html">Sprite</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Stage.html">Stage</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.StageScaleMode.html">StageScaleMode</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.State.html">State</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.StateManager.html">StateManager</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Text.html">Text</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.TileSprite.html">TileSprite</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Time.html">Time</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Touch.html">Touch</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Tween.html">Tween</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.TweenManager.html">TweenManager</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Utils.html">Utils</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.Utils.Debug.html">Debug</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="Phaser.World.html">World</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="SignalBinding.html">SignalBinding</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</li>
|
||
|
|
||
|
<li class="dropdown">
|
||
|
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b
|
||
|
class="caret"></b></a>
|
||
|
|
||
|
<ul class="dropdown-menu ">
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#audio">audio</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#bitmapText">bitmapText</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#bottom">bottom</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#button">button</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#child">child</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#emitter">emitter</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#existing.">existing.</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#graphics">graphics</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#group">group</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#HEXtoRGB">HEXtoRGB</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#renderTexture">renderTexture</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#right">right</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#sprite">sprite</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#text">text</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#tilemap">tilemap</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#tilemaplayer">tilemaplayer</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#tileset">tileset</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#tileSprite">tileSprite</a>
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="global.html#tween">tween</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row-fluid">
|
||
|
|
||
|
|
||
|
<div class="span8">
|
||
|
|
||
|
<div id="main">
|
||
|
|
||
|
|
||
|
|
||
|
<h1 class="page-title">Class: Bullet</h1>
|
||
|
<section>
|
||
|
|
||
|
<header>
|
||
|
<h2>
|
||
|
<span class="ancestors"><a href="Phaser.html">Phaser</a>.</span>
|
||
|
|
||
|
Bullet
|
||
|
</h2>
|
||
|
|
||
|
<div class="class-description"><p>Phaser.Bullet</p></div>
|
||
|
|
||
|
</header>
|
||
|
|
||
|
<article>
|
||
|
<div class="container-overview">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="Bullet"><span class="type-signature"></span>new Bullet<span class="signature">(game, x, y, key, frame)</span><span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Warning: Bullet is an experimental object that we don't advise using for now.</p>
|
||
|
<p>A Bullet is like a stripped-down Sprite, useful for when you just need to get something moving around the screen quickly with little of the extra
|
||
|
features that a Sprite supports.
|
||
|
Bullet is MISSING the following:</p>
|
||
|
<p>animation, all input events, crop support, health/damage, loadTexture</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<h5>Parameters:</h5>
|
||
|
|
||
|
|
||
|
<table class="params table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>game</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Game.html">Phaser.Game</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Current game instance.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>x</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>X position of the new bullet.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>y</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Y position of the new bullet.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>key</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">string</span>
|
||
|
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.RenderTexture.html">Phaser.RenderTexture</a></span>
|
||
|
|
|
||
|
|
||
|
<span class="param-type">PIXI.Texture</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture or PIXI.Texture.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>frame</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">string</span>
|
||
|
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>If this Sprite 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.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-24">line 24</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<h3 class="subsection-title">Members</h3>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="alive"><span class="type-signature"></span>alive<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>alive</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">boolean</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>This is a handy little var your game can use to determine if a sprite is alive or not, it doesn't effect rendering.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>true</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-46">line 46</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="anchor"><span class="type-signature"></span>anchor<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
<div class="description">
|
||
|
<p>The anchor sets the origin point of the texture.
|
||
|
The default is 0,0 this means the textures origin is the top left
|
||
|
Setting than anchor to 0.5,0.5 means the textures origin is centered
|
||
|
Setting the anchor to 1,1 would mean the textures origin points will be the bottom right</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>anchor</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-142">line 142</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="angle"><span class="type-signature"></span>angle<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Indicates the rotation of the Bullet, in degrees, from its original orientation. Values from 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation.
|
||
|
Values outside this range are added to or subtracted from 360 to obtain a value within the range. For example, the statement player.angle = 450 is the same as player.angle = 90.
|
||
|
If you wish to work in radians instead of degrees use the property Bullet.rotation instead.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>angle</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Gets or sets the Bullets angle of rotation in degrees.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-594">line 594</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="autoCull"><span class="type-signature"></span>autoCull<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Should this Sprite be automatically culled if out of range of the camera?
|
||
|
A culled sprite has its visible property set to 'false'.
|
||
|
Note that this check doesn't look at this Sprites children, which may still be in camera range.
|
||
|
So you should set autoCull to false if the Sprite will have children likely to still be in camera range.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>autoCull</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">boolean</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>false</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-169">line 169</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="body"><span class="type-signature"></span>body<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>body</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">Phaser.Physics.Arcade.Body</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Set-up the physics body.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-250">line 250</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="bottomLeft"><span class="type-signature"></span>bottomLeft<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>bottomLeft</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-240">line 240</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="bottomRight"><span class="type-signature"></span>bottomRight<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>bottomRight</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-235">line 235</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="bounds"><span class="type-signature"></span>bounds<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>bounds</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Rectangle.html">Phaser.Rectangle</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-245">line 245</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="center"><span class="type-signature"></span>center<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>center</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-220">line 220</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="events"><span class="type-signature"></span>events<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>events</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">Events</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>The Signals you can subscribe to that are dispatched when certain things happen on this Sprite or its components</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-82">line 82</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="exists"><span class="type-signature"></span>exists<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>exists</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">boolean</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>If exists = false then the Sprite isn't updated by the core game loop or physics subsystem at all.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>true</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-40">line 40</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="fixedToCamera"><span class="type-signature"></span>fixedToCamera<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
<div class="description">
|
||
|
<p>A Sprite that is fixed to the camera ignores the position of any ancestors in the display list and uses its x/y coordinates as offsets from the top left of the camera.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>fixedToCamera</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">boolean</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Fixes this Sprite to the Camera.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>false</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-281">line 281</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="game"><span class="type-signature"></span>game<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>game</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Game.html">Phaser.Game</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>A reference to the currently running Game.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-34">line 34</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="group"><span class="type-signature"></span>group<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>group</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">Description</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>null</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-52">line 52</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="inWorld"><span class="type-signature"></span>inWorld<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>inWorld</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">Description</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>World bounds check.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-255">line 255</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="inWorldThreshold"><span class="type-signature"></span>inWorldThreshold<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>inWorldThreshold</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>World bounds check.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>0</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-261">line 261</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="key"><span class="type-signature"></span>key<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>key</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">Description</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-87">line 87</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="lifespan"><span class="type-signature"></span>lifespan<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
<div class="description">
|
||
|
<p>If you would like the Sprite to have a lifespan once 'born' you can set this to a positive value. Handy for particles, bullets, etc.
|
||
|
The lifespan is decremented by game.time.elapsed each update, once it reaches zero the kill() function is called.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>lifespan</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>0</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-77">line 77</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="name"><span class="type-signature"></span>name<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>name</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">string</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>The user defined name given to this Sprite.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-58">line 58</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="offset"><span class="type-signature"></span>offset<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>offset</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Corner point defaults.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-215">line 215</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="outOfBoundsKill"><span class="type-signature"></span>outOfBoundsKill<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>outOfBoundsKill</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">boolean</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Kills this sprite as soon as it goes outside of the World bounds.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-default">Default Value:</dt>
|
||
|
<dd class="tag-default"><ul class="dummy"><li>false</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-267">line 267</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="renderOrderID"><span class="type-signature"></span>renderOrderID<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>renderOrderID</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-69">line 69</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="scale"><span class="type-signature"></span>scale<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>scale</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Replaces the PIXI.Point with a slightly more flexible one.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-174">line 174</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="topLeft"><span class="type-signature"></span>topLeft<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>topLeft</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-225">line 225</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="topRight"><span class="type-signature"></span>topRight<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>topRight</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-230">line 230</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="type"><span class="type-signature"></span>type<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>type</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">Description</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-63">line 63</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="x"><span class="type-signature"></span>x<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>x</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-147">line 147</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="y"><span class="type-signature"></span>y<span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
<h5 class="subsection-title">Properties:</h5>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<table class="props table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>y</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-152">line 152</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
<h3 class="subsection-title">Methods</h3>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="bringToTop"><span class="type-signature"></span>bringToTop<span class="signature">()</span><span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Description.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-576">line 576</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="destroy"><span class="type-signature"></span>destroy<span class="signature">()</span><span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Description.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-454">line 454</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="getLocalPosition"><span class="type-signature"></span>getLocalPosition<span class="signature">(p, x, y)</span><span class="type-signature"> → {Description}</span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Description.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<h5>Parameters:</h5>
|
||
|
|
||
|
|
||
|
<table class="params table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th>Name</th>
|
||
|
|
||
|
|
||
|
<th>Type</th>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<th class="last">Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>p</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">Description</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>x</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td class="name"><code>y</code></td>
|
||
|
|
||
|
|
||
|
<td class="type">
|
||
|
|
||
|
|
||
|
<span class="param-type">number</span>
|
||
|
|
||
|
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<td class="description last"><p>Description.</p></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-558">line 558</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<h5>Returns:</h5>
|
||
|
|
||
|
|
||
|
<div class="param-desc">
|
||
|
<p>Description.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<dl>
|
||
|
<dt>
|
||
|
Type
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
<span class="param-type">Description</span>
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="kill"><span class="type-signature"></span>kill<span class="signature">()</span><span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Description.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-440">line 440</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
|
||
|
|
||
|
<dt>
|
||
|
<h4 class="name" id="revive"><span class="type-signature"></span>revive<span class="signature">()</span><span class="type-signature"></span></h4>
|
||
|
|
||
|
|
||
|
</dt>
|
||
|
<dd>
|
||
|
|
||
|
|
||
|
<div class="description">
|
||
|
<p>Description.</p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dl class="details">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<dt class="tag-source">Source:</dt>
|
||
|
<dd class="tag-source"><ul class="dummy"><li>
|
||
|
<a href="Bullet.js.html">gameobjects/Bullet.js</a>, <a href="Bullet.js.html#sunlight-1-line-422">line 422</a>
|
||
|
</li></ul></dd>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</dd>
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</article>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="clearfix"></div>
|
||
|
<footer>
|
||
|
|
||
|
|
||
|
<span class="copyright">
|
||
|
Phaser Copyright © 2012-2013 Photon Storm Ltd.
|
||
|
</span>
|
||
|
<br />
|
||
|
|
||
|
<span class="jsdoc-message">
|
||
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
|
||
|
on Fri Oct 25 2013 16:16:44 GMT+0100 (BST) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||
|
</span>
|
||
|
</footer>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="span3">
|
||
|
<div id="toc"></div>
|
||
|
</div>
|
||
|
|
||
|
<br clear="both">
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<script src="scripts/sunlight.js"></script>
|
||
|
<script src="scripts/sunlight.javascript.js"></script>
|
||
|
<script src="scripts/sunlight-plugin.doclinks.js"></script>
|
||
|
<script src="scripts/sunlight-plugin.linenumbers.js"></script>
|
||
|
<script src="scripts/sunlight-plugin.menu.js"></script>
|
||
|
<script src="scripts/jquery.min.js"></script>
|
||
|
<script src="scripts/jquery.scrollTo.js"></script>
|
||
|
<script src="scripts/jquery.localScroll.js"></script>
|
||
|
<script src="scripts/bootstrap-dropdown.js"></script>
|
||
|
<script src="scripts/toc.js"></script>
|
||
|
|
||
|
|
||
|
<script> Sunlight.highlightAll({lineNumbers:true, showMenu: true, enableDoclinks :true}); </script>
|
||
|
|
||
|
<script>
|
||
|
$( function () {
|
||
|
$( "#toc" ).toc( {
|
||
|
selectors : "h1,h2,h3,h4",
|
||
|
showAndHide : false,
|
||
|
scrollTo : 60
|
||
|
} );
|
||
|
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||
|
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||
|
|
||
|
} );
|
||
|
</script>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|