Commit a7b8c4c0 authored by 汪欢's avatar 汪欢

aaa

parent ede8aa48
...@@ -35,8 +35,10 @@ ...@@ -35,8 +35,10 @@
<body> <body>
<div id="game-container" class="game-container"></div> <div id="game-container" class="game-container"></div>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/engine.1de84ff79dba19e949088de63aa75af51a515e5c.js"></script> <!-- <script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/engine.1de84ff79dba19e949088de63aa75af51a515e5c.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/svga.fd3923ae6e664251ca7981801a65809cc5f36bc3.js"></script> <script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/svga.fd3923ae6e664251ca7981801a65809cc5f36bc3.js"></script> -->
<script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/engine.cba09e24bd26909e1a67685a889d4799f4c2597a.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/svga.bbb584f45f3ee647d0611653cb854c5d5bb8fb47.js"></script>
<!-- <script src="//yun.duiba.com.cn/editor/zeroing/libs/engine.ebc906f6b50b8da0a669f77027981d5f3cb560ce.js"></script> --> <!-- <script src="//yun.duiba.com.cn/editor/zeroing/libs/engine.ebc906f6b50b8da0a669f77027981d5f3cb560ce.js"></script> -->
<!-- <script src="http://localhost:4002/debug/engine.js"></script> <!-- <script src="http://localhost:4002/debug/engine.js"></script>
<script src="http://localhost:4003/debug/engine-svga.js"></script> --> <script src="http://localhost:4003/debug/engine-svga.js"></script> -->
......
This diff is collapsed.
...@@ -49,6 +49,12 @@ ...@@ -49,6 +49,12 @@
"uuid":"7f1ef018-79ab-42bf-ac85-0208e36e2928", "uuid":"7f1ef018-79ab-42bf-ac85-0208e36e2928",
"ext":".svga" "ext":".svga"
}, },
{
"name":"雨滴动效",
"url":"//yun.duiba.com.cn/aurora/assets/85feef80df5c2c7728da817e488987d09ba0aab3.svga",
"uuid":"973ed8a7-bfeb-42dd-84fb-e062d150073e",
"ext":".svga"
},
{ {
"name":"背景", "name":"背景",
"url":"//yun.duiba.com.cn/aurora/assets/d0e22ae58b6e8519b969ed207197a31820790349.png", "url":"//yun.duiba.com.cn/aurora/assets/d0e22ae58b6e8519b969ed207197a31820790349.png",
......
...@@ -34,7 +34,7 @@ export default class Human extends engine.Container{ ...@@ -34,7 +34,7 @@ export default class Human extends engine.Container{
this.addEventListener(engine.Event.ENTER_FRAME,()=>{ this.addEventListener(engine.Event.ENTER_FRAME,()=>{
let dt = Date.now() -pt; let dt = Date.now() -pt;
aaa += dt; aaa += dt;
this.anchorX = this.width this.anchorX = this.width + this.width / 2
this.anchorY = this.height; this.anchorY = this.height;
if(aaa > 90 && aaa<=100 ){ if(aaa > 90 && aaa<=100 ){
this.scaleY = 0.99; this.scaleY = 0.99;
......
...@@ -8,6 +8,8 @@ export default class Moist extends engine.Container{ ...@@ -8,6 +8,8 @@ export default class Moist extends engine.Container{
moistCover:any = new engine.Sprite(getTexture('024d67e9-ed7f-4481-94ca-a15bd5226cad')) moistCover:any = new engine.Sprite(getTexture('024d67e9-ed7f-4481-94ca-a15bd5226cad'))
txt = new engine.TextInput(); txt = new engine.TextInput();
hintpic:engine.Sprite = new engine.Sprite(getTexture('ed0e8931-2557-4527-bcfc-9071f90d5737')) hintpic:engine.Sprite = new engine.Sprite(getTexture('ed0e8931-2557-4527-bcfc-9071f90d5737'))
addPercent:number
constructor(){ constructor(){
super(); super();
this.percent = 0; this.percent = 0;
...@@ -32,6 +34,23 @@ export default class Moist extends engine.Container{ ...@@ -32,6 +34,23 @@ export default class Moist extends engine.Container{
this.moistCover.anchorY = 416; this.moistCover.anchorY = 416;
this.moistBg.addChild(this.moistCover) this.moistBg.addChild(this.moistCover)
this.moistCover.scaleY = percent; this.moistCover.scaleY = percent;
let ld = Date.now();
// let time
// this.addEventListener(engine.Event.ENTER_FRAME,()=>{
// let dt = Date.now() - ld;
// time += dt;
// if(time >= 100){
// // this.moistCover.scaleY =
// }
// })
let t = engine.Tween.get(this.moistCover);
// t.set({alpha:1,scaleY:this.percent})
// .to({alpha:1,scaleY:percent - 0.08},100)
// .to({alpha:1,scaleY:percent - 0.06},100)
// .to({alpha:1,scaleY:percent - 0.04},100)
// .to({alpha:1,scaleY:percent - 0.02},100)
// .to({alpha:1,scaleY:percent},100)
} }
stopScale(){ stopScale(){
...@@ -48,4 +67,7 @@ export default class Moist extends engine.Container{ ...@@ -48,4 +67,7 @@ export default class Moist extends engine.Container{
} }
} }
updatePercent(percent){
this.percent = percent;
}
} }
\ No newline at end of file
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