Commit d76f8c77 authored by 范雪寒's avatar 范雪寒

feat: 修改撒花色号

parent ee5d68a5
......@@ -186,7 +186,7 @@
"array": [
0,
0,
700.6145516616109,
695.4104794776155,
0,
0,
0,
......@@ -253,7 +253,7 @@
"__id__": 2
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 6
......@@ -1169,9 +1169,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 240,
"g": 99,
"b": 69,
"r": 255,
"g": 226,
"b": 0,
"a": 255
},
"_contentSize": {
......@@ -1413,9 +1413,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 239,
"g": 212,
"b": 17,
"r": 74,
"g": 205,
"b": 225,
"a": 255
},
"_contentSize": {
......@@ -1657,9 +1657,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 168,
"g": 25,
"b": 41,
"r": 233,
"g": 143,
"b": 253,
"a": 255
},
"_contentSize": {
......@@ -1901,9 +1901,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 26,
"g": 160,
"b": 209,
"r": 253,
"g": 182,
"b": 82,
"a": 255
},
"_contentSize": {
......@@ -2145,9 +2145,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 170,
"g": 94,
"b": 197,
"r": 254,
"g": 83,
"b": 108,
"a": 255
},
"_contentSize": {
......
......@@ -31,7 +31,7 @@ cc.Class({
async showOneFirework(pos, parentNode, nodeList) {
for (let i = 0; i < 3; i++) {
this.showFirework(pos, parentNode, nodeList);
this.showFirework(pos, parentNode, nodeList, 200, 200, 15);
await asyncDelay(0.1);
}
},
......@@ -43,8 +43,8 @@ cc.Class({
}
},
showFirework(pos, parentNode, nodeList, width = 200, height = 200) {
for (let i = 0; i < 30; i++) {
showFirework(pos, parentNode, nodeList, width = 200, height = 200, number = 30) {
for (let i = 0; i < number; i++) {
const quad = this.createQuads(pos, parentNode, nodeList);
const targetX = RandomInt(width / 2, -width / 2);
const targetY = RandomInt(height);
......
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