Class: Preschool_End

Preschool_End()

幼教项目结束页组件.

Constructor

new Preschool_End()

Properties:
Name Type Description
bgConfig object 背景动效的配置
Properties
Name Type Description
name string 动画Json名称 默认:animation_starscreen
AniName string 默认状态动画名称 默认:idle
AniName2 string 切换状态动画名称 默认:touch
x number 动画x轴所在位置 默认:961
y number 动画y轴所在位置 默认:860
soundConfig object 播放音乐的配置
Properties
Name Type Description
name1 string 开始播放的音效 默认:come_high_five
name2 string 击掌播放的音效 默认:high_five
Source:
Example
import {Easy} from "pubtool4pixi"
Easy.create("Preschool_End",{
     parentContainer:Game,
        bgConfig:{
            name:"animation_give_me_five",
            AniName:"talk",
            AniName2:"idle",
            AniName3:"touch",
            x:960,
            y:540
        },
    soundConfig:{
        name1  : "come_high_five",
        name2:"high_five",
    },
}).show();


 Easy.getCmp("Preschool_End").addEventOnce("gameOver,()=>{
     //提交数据
 }")

Extends

Events

gameOver

Fire when gameOver.
Source: