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

feat: 修改撒花色号

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