Skip to content

Commit 7603d9f

Browse files
committed
Add particles for bonus catching.
1 parent 6e642bb commit 7603d9f

File tree

1 file changed

+173
-3
lines changed

1 file changed

+173
-3
lines changed

examples/3d-bomberman/3d-bomberman.json

Lines changed: 173 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,7 +2364,7 @@
23642364
},
23652365
{
23662366
"assetStoreId": "",
2367-
"name": "ParticleEmitter",
2367+
"name": "ExplosionParticleEmitter",
23682368
"tags": "",
23692369
"type": "ParticleEmitter3D::ParticleEmitter3D",
23702370
"variables": [],
@@ -2444,6 +2444,97 @@
24442444
}
24452445
}
24462446
},
2447+
{
2448+
"assetStoreId": "",
2449+
"name": "UpgradeParticleEmitter",
2450+
"tags": "",
2451+
"type": "ParticleEmitter3D::ParticleEmitter3D",
2452+
"variables": [],
2453+
"effects": [],
2454+
"behaviors": [
2455+
{
2456+
"name": "Sticker",
2457+
"type": "Sticker::Sticker",
2458+
"OnlyFollowPosition": true,
2459+
"IsDestroyedWithParent": false
2460+
}
2461+
],
2462+
"content": {
2463+
"Z": 20,
2464+
"Duration": 0.125,
2465+
"GravityTop": "Z+",
2466+
"StartSpeedMax": 200,
2467+
"SpayConeAngle": 360,
2468+
"StartSizeMin": 125,
2469+
"StartSizeMax": 256,
2470+
"EndScale": 0.25,
2471+
"StartSpeedMin": 200,
2472+
"LifespanMax": 0.5,
2473+
"LifespanMin": 0.5,
2474+
"Flow": 120,
2475+
"EndColor": "255;255;255",
2476+
"EndOpacity": 0,
2477+
"StartColor": "255;255;255",
2478+
"AreParticlesRelative": true
2479+
},
2480+
"childrenContent": {
2481+
"Particle": {
2482+
"adaptCollisionMaskAutomatically": true,
2483+
"updateIfNotVisible": false,
2484+
"animations": [
2485+
{
2486+
"name": "Image",
2487+
"useMultipleDirections": false,
2488+
"directions": [
2489+
{
2490+
"looping": false,
2491+
"metadata": "{\"pskl\":{}}",
2492+
"timeBetweenFrames": 0.08,
2493+
"sprites": [
2494+
{
2495+
"hasCustomCollisionMask": true,
2496+
"image": "assets\\SmoothParticle.png",
2497+
"points": [],
2498+
"originPoint": {
2499+
"name": "origine",
2500+
"x": 0,
2501+
"y": 0
2502+
},
2503+
"centerPoint": {
2504+
"automatic": true,
2505+
"name": "centre",
2506+
"x": 0,
2507+
"y": 0
2508+
},
2509+
"customCollisionMask": [
2510+
[
2511+
{
2512+
"x": 20,
2513+
"y": 21
2514+
},
2515+
{
2516+
"x": 44,
2517+
"y": 21
2518+
},
2519+
{
2520+
"x": 44,
2521+
"y": 46
2522+
},
2523+
{
2524+
"x": 20,
2525+
"y": 46
2526+
}
2527+
]
2528+
]
2529+
}
2530+
]
2531+
}
2532+
]
2533+
}
2534+
]
2535+
}
2536+
}
2537+
},
24472538
{
24482539
"assetStoreId": "",
24492540
"name": "Soil",
@@ -2935,6 +3026,29 @@
29353026
"Bonus",
29363027
""
29373028
]
3029+
},
3030+
{
3031+
"type": {
3032+
"value": "Create"
3033+
},
3034+
"parameters": [
3035+
"",
3036+
"UpgradeParticleEmitter",
3037+
"Player.CenterX()",
3038+
"Player.CenterY() - 15",
3039+
""
3040+
]
3041+
},
3042+
{
3043+
"type": {
3044+
"value": "Sticker::Sticker::Stick"
3045+
},
3046+
"parameters": [
3047+
"UpgradeParticleEmitter",
3048+
"Sticker",
3049+
"Player",
3050+
""
3051+
]
29383052
}
29393053
]
29403054
}
@@ -3441,7 +3555,7 @@
34413555
"Bomb",
34423556
"Explosion",
34433557
"Obstacle",
3444-
"ParticleEmitter",
3558+
"ExplosionParticleEmitter",
34453559
""
34463560
]
34473561
}
@@ -3495,7 +3609,7 @@
34953609
"Bomb",
34963610
"Explosion",
34973611
"Obstacle",
3498-
"ParticleEmitter",
3612+
"ExplosionParticleEmitter",
34993613
""
35003614
]
35013615
}
@@ -3917,6 +4031,7 @@
39174031
"Player",
39184032
"Player",
39194033
"Bonus",
4034+
"BonusAnimator",
39204035
""
39214036
]
39224037
}
@@ -32498,6 +32613,16 @@
3249832613
"+",
3249932614
"1"
3250032615
]
32616+
},
32617+
{
32618+
"type": {
32619+
"value": "Bonus::BonusAnimator::PlaySpawnAnimation"
32620+
},
32621+
"parameters": [
32622+
"Bonus",
32623+
"BonusAnimator",
32624+
""
32625+
]
3250132626
}
3250232627
]
3250332628
},
@@ -32534,6 +32659,12 @@
3253432659
"name": "Bonus",
3253532660
"supplementaryInformation": "Scene3D::Cube3DObject",
3253632661
"type": "objectList"
32662+
},
32663+
{
32664+
"description": "Bonus animator",
32665+
"name": "BonusAnimator",
32666+
"supplementaryInformation": "Bonus::BonusAnimator",
32667+
"type": "behavior"
3253732668
}
3253832669
],
3253932670
"objectGroups": []
@@ -33683,6 +33814,45 @@
3368333814
"functionType": "Action",
3368433815
"name": "onCreated",
3368533816
"sentence": "",
33817+
"events": [
33818+
{
33819+
"type": "BuiltinCommonInstructions::Standard",
33820+
"conditions": [],
33821+
"actions": [
33822+
{
33823+
"type": {
33824+
"value": "Bonus::BonusAnimator::PlaySpawnAnimation"
33825+
},
33826+
"parameters": [
33827+
"Object",
33828+
"Behavior",
33829+
""
33830+
]
33831+
}
33832+
]
33833+
}
33834+
],
33835+
"parameters": [
33836+
{
33837+
"description": "Object",
33838+
"name": "Object",
33839+
"supplementaryInformation": "Scene3D::Cube3DObject",
33840+
"type": "object"
33841+
},
33842+
{
33843+
"description": "Behavior",
33844+
"name": "Behavior",
33845+
"supplementaryInformation": "Bonus::BonusAnimator",
33846+
"type": "behavior"
33847+
}
33848+
],
33849+
"objectGroups": []
33850+
},
33851+
{
33852+
"fullName": "Play spwan animation",
33853+
"functionType": "Action",
33854+
"name": "PlaySpawnAnimation",
33855+
"sentence": "Play spwan animation of _PARAM0_",
3368633856
"events": [
3368733857
{
3368833858
"type": "BuiltinCommonInstructions::Standard",

0 commit comments

Comments
 (0)