Commit 530f42a8 authored by 范雪寒's avatar 范雪寒

feat:

parent b08f4b52
......@@ -13,8 +13,8 @@ export default class PS_001_handManager {
{ time: 13, id: 21217,pos:[459.961,80.577],scene:3},
{ time: 18, id: 21224,pos:[1411.885,-571.467],scene:4},
{ time: 18, id: 21222,pos:[522.703,-42.144],scene:5},
{ time: 10, id: 21218,pos:[-378.158,-195.452],scene:6},
{ time: 16, id: 21225,pos:[199.701,-186.954],scene:6},
{ time: 10, id: 21218,pos:[-308.158,-245.452],scene:6},
{ time: 16, id: 21225,pos:[249.701,-256.954],scene:6},
{ time: 18, id: 21220,pos:[548.116,-118.971],scene:7},
{ time: 24, id: 21219,pos:[-150,-150],scene:8},
{ time: 33, id: 21226,pos:[-150,-150],scene:8},
......
......@@ -76,7 +76,7 @@ export default class PS_001_scene2 extends cc.Component {
this.camera.setPosition(0, 0)
PS_001_dialogueManager.getIns().start(2, 9)
PS_001_handManager.getIns().start(2, this, 9)
this.camera.getComponent(cc.Camera).zoomRatio = 1
this.camera.getComponent(cc.Camera).zoomRatio = 1.25
this.leftrabbit.getComponent(dragonBones.ArmatureDisplay).playAnimation('laugh', 0)
this.rightrabbit.getComponent(dragonBones.ArmatureDisplay).playAnimation('laugh', 0)
cc.tween({}).delay(3).call(() => {
......
......@@ -73,18 +73,20 @@ export default class PS_001_scene3 extends cc.Component {
go13(cameraNode:cc.Node,parent:PS_001_Ctrl) {//4
cc.audioEngine.playMusic(this.sound[0],false)
this.camera=cameraNode
this.parent=parent
PS_001_dialogueManager.getIns().start(3,13)
PS_001_handManager.getIns().start(3, this,13)
this.bird.getComponent(dragonBones.ArmatureDisplay).playAnimation('born', 1)
this.bird.getComponent(dragonBones.ArmatureDisplay).timeScale=1
this.camera.setPosition(284.3151076269148,50.129144912959916)
this.camera.getComponent(cc.Camera).zoomRatio=1.4156944166666654
cc.tween(this.camera.getComponent(cc.Camera)).to(1, { zoomRatio: 1.5 }).start()
cc.tween(this.camera).to(1, { x:342.301, y: 60.432 }).start()
cc.tween({}).delay(3).call(()=>{
this.parent = parent
this.parent.toNext(3)
this.node.destroy()
}).start()
// PS_001_dialogueManager.getIns().start(3,13)
// PS_001_handManager.getIns().start(3, this,13)
// this.bird.getComponent(dragonBones.ArmatureDisplay).playAnimation('born', 1)
// this.bird.getComponent(dragonBones.ArmatureDisplay).timeScale=1
// this.camera.setPosition(284.3151076269148,50.129144912959916)
// // this.camera.getComponent(cc.Camera).zoomRatio = 1.4156944166666654
// this.camera.getComponent(cc.Camera).zoomRatio = 1.25
// cc.tween(this.camera.getComponent(cc.Camera)).to(1, { zoomRatio: 1.65 }).start()
// cc.tween(this.camera).to(1, { x:342.301, y: 60.432 }).start()
// cc.tween({}).delay(3).call(()=>{
// this.parent.toNext(3)
// this.node.destroy()
// }).start()
}
}
......@@ -70,17 +70,18 @@ export default class PS_001_scene4 extends cc.Component {
sound: cc.AudioClip[]= []
go18(cameraNode:cc.Node,parent:PS_001_Ctrl){
// cc.audioEngine.playMusic(this.sound[0],false)
PS_001_dialogueManager.getIns().start(4,18)
PS_001_handManager.getIns().start(4, this,18)
this.camera=cameraNode
this.parent=parent
this.chicken.playAnimation('born', 1)
this.camera.setPosition(1376.016,-596.526)
this.camera.getComponent(cc.Camera).zoomRatio=2
cc.tween({}).delay(3).call(()=>{
this.parent.toNext(4)
this.node.destroy()
}).start()
// // cc.audioEngine.playMusic(this.sound[0],false)
// PS_001_dialogueManager.getIns().start(4,18)
// PS_001_handManager.getIns().start(4, this,18)
// this.camera=cameraNode
// this.parent=parent
// this.chicken.playAnimation('born', 1)
// this.camera.setPosition(1376.016,-596.526)
// this.camera.getComponent(cc.Camera).zoomRatio=2
// cc.tween({}).delay(3).call(()=>{
// this.parent.toNext(4)
// this.node.destroy()
// }).start()
}
}
......@@ -81,15 +81,16 @@ export default class PS_001_scene5 extends cc.Component {
}
@property([cc.AudioClip])
sound: cc.AudioClip[]= []
go18(cameraNode:cc.Node,parent:PS_001_Ctrl){
cc.audioEngine.playMusic(this.sound[0],false)
PS_001_dialogueManager.getIns().start(5,18)
PS_001_handManager.getIns().start(5, this,18)
this.camera=cameraNode
this.parent=parent
this.camera.setPosition(506.817, -173.767)
this.camera.getComponent(cc.Camera).zoomRatio=2
go18(cameraNode: cc.Node, parent: PS_001_Ctrl) {
this.func4()
// cc.audioEngine.playMusic(this.sound[0],false)
// PS_001_dialogueManager.getIns().start(5,18)
// PS_001_handManager.getIns().start(5, this,18)
// this.camera=cameraNode
// this.parent=parent
// this.camera.setPosition(506.817, -173.767)
// this.camera.getComponent(cc.Camera).zoomRatio=2
// this.func4()
}
}
......@@ -56,7 +56,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
PS_001_Ctrl.getIns().time = 1;
PS_001_Ctrl.getIns().goscene(conf[step].id);
} else {
PS_001_Ctrl.getIns().time = 1;
PS_001_Ctrl.getIns().toNext(0);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment