add particle

This commit is contained in:
Vick Scarlet
2021-12-02 21:28:10 +08:00
parent f17003925e
commit 0567e40ddc
17 changed files with 80 additions and 24 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1 @@
{"textureName":"images/texture/texture_1.png","positionVariance":{"0":0,"1":0,"2":0},"minVerticalVelocity":-100,"minVerticalEndRadian":0,"minStartSize":0,"minStartRadius":0,"minRotateSpeed":0,"minHorizontalVelocity":100,"minHorizontalEndRadian":0,"minEndSize":18.55,"minEndRadius":218.75,"minColor":{"0":0.15,"1":0.92,"2":0.91,"3":0.6000000238418579},"maxVerticalVelocity":100,"maxVerticalEndRadian":0,"maxStartSize":2.04,"maxStartRadius":0,"maxRotateSpeed":0,"maxPartices":400,"maxHorizontalVelocity":100,"maxHorizontalEndRadian":0,"maxEndSize":24.35,"maxEndRadius":84.82,"maxColor":{"0":0.57,"1":1,"2":0,"3":1},"gravity":{"0":0,"1":0,"2":0},"endVelocity":2,"emitterVelocitySensitivity":56.89,"duration":9.52,"colorComponentInter":true,"blendState":0,"ageAddScale":10,"backColor":"#ffffff","textureFileName":"comp\\clip_num.png","textureCount":1,"minHorizontalStartRadian":0,"maxHorizontalStartRadian":0,"minVerticalStartRadian":0,"maxVerticalStartRadian":0,"emitterType":"null","emissionRate":0,"sphereEmitterRadius":1,"sphereEmitterVelocity":0,"sphereEmitterVelocityAddVariance":0,"ringEmitterRadius":30,"ringEmitterVelocity":0,"ringEmitterVelocityAddVariance":0,"ringEmitterUp":2,"minStartColor":{"0":0.5,"1":0.5,"2":0.5,"3":0.2},"maxStartColor":{"0":1,"1":1,"2":1,"3":1},"minEndColor":{"0":0,"1":0,"2":0,"3":0.08},"maxEndColor":{"0":1,"1":1,"2":1,"3":1},"pointEmitterPosition":{"0":0,"1":0,"2":0},"pointEmitterPositionVariance":{"0":0,"1":0,"2":0},"pointEmitterVelocity":{"0":0,"1":0,"2":0},"pointEmitterVelocityAddVariance":{"0":0,"1":0,"2":0},"boxEmitterCenterPosition":{"0":0,"1":0,"2":0},"boxEmitterSize":{"0":0,"1":0,"2":0},"boxEmitterVelocity":{"0":0,"1":0,"2":0},"boxEmitterVelocityAddVariance":{"0":0,"1":0,"2":0},"sphereEmitterCenterPosition":{"0":0,"1":0,"2":0},"ringEmitterCenterPosition":{"0":0,"1":0,"2":0},"useEndRadian":true,"disableColor":false}

View File

@@ -1,8 +1,8 @@
{
"x":0,
"type":"View",
"selectedBox":14,
"selecteID":13,
"selectedBox":1,
"selecteID":152,
"props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberTrajectory.png","runtime":"Laya.runtime.ViewBase","height":2436},
"nodeParent":-1,
"label":"View",
@@ -550,14 +550,13 @@
"props":{"right":0,"left":0,"height":1,"bottom":-1},
"nodeParent":1,
"label":"Box",
"isOpen":true,
"isOpen":false,
"isDirectory":true,
"isAniNode":true,
"hasChild":true,
"compId":14,
"child":[
{
"x":30,
"type":"Button",
"props":{"y":-155,"width":500,"var":"btnSummary","skin":"images/button/button_main@3x.png","name":"btnSummary","label":"UI_Goto_Summary","centerX":0},
"nodeParent":14,
@@ -569,7 +568,6 @@
"compId":13,
"child":[
{
"x":45,
"type":"Box",
"props":{},
"nodeParent":13,
@@ -750,7 +748,6 @@
}]
},
{
"x":45,
"type":"Box",
"props":{},
"nodeParent":13,
@@ -824,7 +821,6 @@
"$HIDDEN":false
},
{
"x":30,
"type":"Box",
"props":{"y":-155,"var":"boxSpeed","right":100,"name":"boxSpeed","left":100,"height":150,"anchorY":0.5,"anchorX":0.5},
"nodeParent":14,
@@ -836,7 +832,6 @@
"compId":104,
"child":[
{
"x":45,
"type":"ProgressBar",
"props":{"var":"prgSpeed","skin":"images/progress/progress_s.png","right":0,"name":"prgSpeed","left":0,"bottom":0},
"nodeParent":104,
@@ -849,7 +844,6 @@
]
},
{
"x":45,
"type":"HScrollBar",
"props":{"var":"scbSpeed","skin":"images/slider/hslider_s.png","right":0,"name":"scbSpeed","min":0,"max":1000,"left":0,"height":60,"bottom":0},
"nodeParent":104,
@@ -862,7 +856,6 @@
]
},
{
"x":45,
"type":"Label",
"props":{"text":"UI_Manual","fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70},
"nodeParent":104,
@@ -875,7 +868,6 @@
]
},
{
"x":45,
"type":"Label",
"props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70},
"nodeParent":104,
@@ -897,14 +889,13 @@
"props":{"top":440,"right":20,"left":20,"bottom":250},
"nodeParent":1,
"label":"Box",
"isOpen":true,
"isOpen":false,
"isDirectory":true,
"isAniNode":true,
"hasChild":true,
"compId":102,
"child":[
{
"x":30,
"type":"Image",
"props":{"top":0,"skin":"images/border/border_1@3x.png","right":0,"left":0,"bottom":0},
"nodeParent":102,
@@ -917,7 +908,6 @@
]
},
{
"x":30,
"type":"Panel",
"props":{"var":"panelTrajectory","vScrollBarSkin":"images/slider/vslider_1@3x.png","top":80,"right":20,"name":"panelTrajectory","left":0,"bottom":80},
"nodeParent":102,
@@ -929,7 +919,6 @@
"compId":18,
"child":[
{
"x":45,
"type":"VBox",
"props":{"var":"vboxTrajectory","top":0,"right":40,"name":"vboxTrajectory","left":20},
"nodeParent":18,
@@ -1016,7 +1005,6 @@
"$HIDDEN":false
},
{
"x":30,
"type":"Box",
"props":{"y":20,"x":20,"var":"btnUp","top":20,"right":20,"name":"btnUp","left":20,"height":50},
"nodeParent":102,
@@ -1065,7 +1053,6 @@
}]
},
{
"x":30,
"type":"Box",
"props":{"y":1676,"x":20,"var":"btnDown","right":20,"name":"btnDown","left":20,"height":50,"bottom":20},
"nodeParent":102,
@@ -1113,6 +1100,32 @@
}]
}]
}]
},
{
"x":15,
"type":"Box",
"props":{"width":10,"var":"boxParticle","name":"boxParticle","height":10,"centerY":0,"centerX":0},
"nodeParent":1,
"label":"Box(boxParticle)",
"isOpen":false,
"isDirectory":true,
"isAniNode":true,
"hasChild":true,
"compId":152,
"child":[
{
"type":"Particle2D",
"source":"particle/fly.part",
"props":{"y":5,"x":5,"url":"particle/fly.part","autoPlay":true},
"nodeParent":152,
"label":"Particle2D",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":151,
"child":[
]
}]
}],
"animations":[
{

View File

@@ -2,7 +2,7 @@
"x":0,
"type":"View",
"selectedBox":1,
"selecteID":102,
"selecteID":153,
"props":{"width":1125,"sceneColor":"#000000","runtime":"Laya.runtime.ViewBase","height":2436},
"nodeParent":-1,
"label":"View",
@@ -501,6 +501,32 @@
}],
"$LOCKED":true,
"$HIDDEN":false
},
{
"x":15,
"type":"Box",
"props":{"width":10,"var":"boxParticle","name":"boxParticle","height":10,"centerY":0,"centerX":0},
"nodeParent":1,
"label":"Box(boxParticle)",
"isOpen":false,
"isDirectory":true,
"isAniNode":true,
"hasChild":true,
"compId":153,
"child":[
{
"type":"Particle2D",
"source":"particle/fly.part",
"props":{"y":5,"x":5,"url":"particle/fly.part","autoPlay":true},
"nodeParent":153,
"label":"Particle2D",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":154,
"child":[
]
}]
}],
"animations":[
{