Constructor
new BigMath_Star()
Properties:
| Name | Type | Description |
|---|---|---|
topicNumber |
Number | 游戏题目总数 - 默认值:3 |
marginDistance |
Number | 星星间隔值 - 默认值:80 |
starBgLocation |
Object | 背景位置 - 默认值:{x:34,y:36} |
StarScoreBoard |
String | 计分板 - 默认值:"image_StarScoreBoard" |
starLocation |
Object | 第一颗星星位置 - 默认值:{x:65,y:55} |
bgIcon |
String | 默认状态的星星 - 默认值:"image_starIdle" |
loseIcon |
String | 失败状态的星星 - 默认值:"image_starLose" |
lightSpineName |
String | 成功状态的星星动效名称 - 默认值:"animation_star" |
lightAniName |
String | 成功状态的星星播放的动画名称 - 默认值:"star_in" |
starPathSpineName |
String | 星星飞的路径动效名称 - 默认值:"animation_starflash" |
starPathAniName |
String | 星星飞的路径播放的动画名称 - 默认值:"starflash_in" |
Example
import {Easy} from "pubtool4pixi"
Easy.create("BigMath_Star",{
topicNumber : 3,
marginDistance:80,
starBgLocation:{
x:34,y:36
},
}).show();
Extends
Methods
(static) dark() → {Promise}
关卡失败添加失败星星切图
Returns:
添加完成
- Type
- Promise
(static) light() → {Promise}
关卡成功播放收集星星
Returns:
收集星星动效播放完
- Type
- Promise
(static) reset()
关卡星星重置