UNPKG

pubtool4pixi

Version:

Usefultool for PIXI xes project

780 lines (196 loc) 10.6 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: BigMath_Star</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: BigMath_Star</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>BigMath_Star<span class="signature">()</span><span class="type-signature"></span></h2> <div class="class-description">大数学通用过关结算星星动效</div> </header> <article> <div class="container-overview"> <h2>Constructor</h2> <h4 class="name" id="BigMath_Star"><span class="type-signature"></span>new BigMath_Star<span class="signature">()</span><span class="type-signature"></span></h4> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>topicNumber</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">游戏题目总数 - 默认值:3</td> </tr> <tr> <td class="name"><code>marginDistance</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">星星间隔值 - 默认值:80</td> </tr> <tr> <td class="name"><code>starBgLocation</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">背景位置 - 默认值:{x:34,y:36}</td> </tr> <tr> <td class="name"><code>StarScoreBoard</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">计分板 - 默认值:"image_StarScoreBoard"</td> </tr> <tr> <td class="name"><code>starLocation</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">第一颗星星位置 - 默认值:{x:65,y:55}</td> </tr> <tr> <td class="name"><code>bgIcon</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">默认状态的星星 - 默认值:"image_starIdle"</td> </tr> <tr> <td class="name"><code>loseIcon</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">失败状态的星星 - 默认值:"image_starLose"</td> </tr> <tr> <td class="name"><code>lightSpineName</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">成功状态的星星动效名称 - 默认值:"animation_star"</td> </tr> <tr> <td class="name"><code>lightAniName</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">成功状态的星星播放的动画名称 - 默认值:"star_in"</td> </tr> <tr> <td class="name"><code>starPathSpineName</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">星星飞的路径动效名称 - 默认值:"animation_starflash"</td> </tr> <tr> <td class="name"><code>starPathAniName</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">星星飞的路径播放的动画名称 - 默认值:"starflash_in"</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line1190">line 1190</a> </li></ul></dd> </dl> <h5>Example</h5> <pre class="prettyprint"><code>import {Easy} from "pubtool4pixi" Easy.create("BigMath_Star",{ topicNumber : 3, marginDistance:80, starBgLocation:{ x:34,y:36 }, }).show();</code></pre> </div> <h3 class="subsection-title">Extends</h3> <ul> <li><a href="BaseContainer.html">BaseContainer</a></li> </ul> <h3 class="subsection-title">Methods</h3> <h4 class="name" id=".dark"><span class="type-signature">(static) </span>dark<span class="signature">()</span><span class="type-signature"> &rarr; {Promise}</span></h4> <div class="description"> 关卡失败添加失败星星切图 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line1340">line 1340</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> 添加完成 </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise</span> </dd> </dl> <h4 class="name" id=".light"><span class="type-signature">(static) </span>light<span class="signature">()</span><span class="type-signature"> &rarr; {Promise}</span></h4> <div class="description"> 关卡成功播放收集星星 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line1323">line 1323</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> 收集星星动效播放完 </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise</span> </dd> </dl> <h4 class="name" id=".reset"><span class="type-signature">(static) </span>reset<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> 关卡星星重置 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line1353">line 1353</a> </li></ul></dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Base.html">Base</a></li><li><a href="BaseContainer.html">BaseContainer</a></li><li><a href="BigMath_AniBtn.html">BigMath_AniBtn</a></li><li><a href="BigMath_Star.html">BigMath_Star</a></li><li><a href="BigMath_Timer.html">BigMath_Timer</a></li><li><a href="Preschool_aqiu.html">Preschool_aqiu</a></li><li><a href="Preschool_End.html">Preschool_End</a></li><li><a href="Preschool_HintBtn.html">Preschool_HintBtn</a></li><li><a href="Preschool_Start.html">Preschool_Start</a></li><li><a href="PUB_Mask.html">PUB_Mask</a></li></ul><h3>Events</h3><ul><li><a href="BaseContainer.html#.event:beforeHide">beforeHide</a></li><li><a href="BaseContainer.html#.event:beforeShow">beforeShow</a></li><li><a href="BaseContainer.html#.event:Destroyed">Destroyed</a></li><li><a href="BaseContainer.html#.event:onHide">onHide</a></li><li><a href="BaseContainer.html#.event:onShow">onShow</a></li><li><a href="BaseContainer.html#.event:ParentChange">ParentChange</a></li><li><a href="BigMath_AniBtn.html#.event:onClick">onClick</a></li><li><a href="BigMath_Timer.html#.event:onTimeRun">onTimeRun</a></li><li><a href="BigMath_Timer.html#.event:timeup">timeup</a></li><li><a href="Preschool_End.html#.event:gameOver">gameOver</a></li><li><a href="Preschool_Start.html#.event:startGame">startGame</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Tue Jul 23 2019 18:44:25 GMT+0800 (中国标准时间) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>