Skip to content

Commit dfc2ac0

Browse files
authored
[3D Lane runner] Use unified actions (#563)
1 parent ce278d1 commit dfc2ac0

File tree

1 file changed

+43
-9
lines changed

1 file changed

+43
-9
lines changed

examples/3d-lane-runner/3d-lane-runner.json

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
"gridColor": 10401023,
560560
"gridAlpha": 0.8,
561561
"snap": true,
562-
"zoomFactor": 0.36732575450588595,
562+
"zoomFactor": 0.3925161175488267,
563563
"windowMask": false
564564
},
565565
"objectsGroups": [
@@ -1494,7 +1494,7 @@
14941494
"rightFaceVisible": false,
14951495
"topFaceVisible": true,
14961496
"bottomFaceVisible": false,
1497-
"frontFaceResourceRepeat": true,
1497+
"frontFaceResourceRepeat": false,
14981498
"backFaceResourceRepeat": false,
14991499
"leftFaceResourceRepeat": false,
15001500
"rightFaceResourceRepeat": false,
@@ -1980,7 +1980,7 @@
19801980
"parameters": [
19811981
"",
19821982
"=",
1983-
"lerp(Scene3D::CameraZ(), Player.Z(), 0.05 * 60 * TimeDelta())",
1983+
"lerp(Scene3D::CameraZ(), Player.Object3D::Z(), 0.05 * 60 * TimeDelta())",
19841984
"",
19851985
""
19861986
]
@@ -2351,10 +2351,11 @@
23512351
},
23522352
{
23532353
"type": {
2354-
"value": "Scene3D::Model3DObject::SetAnimationName"
2354+
"value": "AnimatableCapability::AnimatableBehavior::SetName"
23552355
},
23562356
"parameters": [
23572357
"Player",
2358+
"Animation",
23582359
"=",
23592360
"\"RunRight\""
23602361
]
@@ -2460,10 +2461,11 @@
24602461
},
24612462
{
24622463
"type": {
2463-
"value": "Scene3D::Model3DObject::SetAnimationName"
2464+
"value": "AnimatableCapability::AnimatableBehavior::SetName"
24642465
},
24652466
"parameters": [
24662467
"Player",
2468+
"Animation",
24672469
"=",
24682470
"\"RunLeft\""
24692471
]
@@ -2500,10 +2502,11 @@
25002502
},
25012503
{
25022504
"type": {
2503-
"value": "Scene3D::Model3DObject::AnimationName"
2505+
"value": "AnimatableCapability::AnimatableBehavior::Name"
25042506
},
25052507
"parameters": [
25062508
"Player",
2509+
"Animation",
25072510
"!=",
25082511
"\"Run\""
25092512
]
@@ -2512,10 +2515,11 @@
25122515
"actions": [
25132516
{
25142517
"type": {
2515-
"value": "Scene3D::Model3DObject::SetAnimationName"
2518+
"value": "AnimatableCapability::AnimatableBehavior::SetName"
25162519
},
25172520
"parameters": [
25182521
"Player",
2522+
"Animation",
25192523
"=",
25202524
"\"Run\""
25212525
]
@@ -2861,10 +2865,11 @@
28612865
},
28622866
{
28632867
"type": {
2864-
"value": "Scene3D::Model3DObject::SetAnimationName"
2868+
"value": "AnimatableCapability::AnimatableBehavior::SetName"
28652869
},
28662870
"parameters": [
28672871
"Player",
2872+
"Animation",
28682873
"=",
28692874
"\"Death\""
28702875
]
@@ -3013,10 +3018,11 @@
30133018
"actions": [
30143019
{
30153020
"type": {
3016-
"value": "Scene3D::Model3DObject::SetRotationY"
3021+
"value": "Scene3D::Base3DBehavior::SetRotationY"
30173022
},
30183023
"parameters": [
30193024
"Coin",
3025+
"Object3D",
30203026
"+",
30213027
"60 * TimeDelta()"
30223028
]
@@ -3289,6 +3295,26 @@
32893295
}
32903296
],
32913297
"behaviorsSharedData": [
3298+
{
3299+
"name": "Animation",
3300+
"type": "AnimatableCapability::AnimatableBehavior"
3301+
},
3302+
{
3303+
"name": "Effect",
3304+
"type": "EffectCapability::EffectBehavior"
3305+
},
3306+
{
3307+
"name": "Flippable",
3308+
"type": "FlippableCapability::FlippableBehavior"
3309+
},
3310+
{
3311+
"name": "Object3D",
3312+
"type": "Scene3D::Base3DBehavior"
3313+
},
3314+
{
3315+
"name": "Opacity",
3316+
"type": "OpacityCapability::OpacityBehavior"
3317+
},
32923318
{
32933319
"name": "Platform",
32943320
"type": "PlatformBehavior::PlatformBehavior"
@@ -3297,6 +3323,14 @@
32973323
"name": "PlatformerObject",
32983324
"type": "PlatformBehavior::PlatformerObjectBehavior"
32993325
},
3326+
{
3327+
"name": "Resizable",
3328+
"type": "ResizableCapability::ResizableBehavior"
3329+
},
3330+
{
3331+
"name": "Scale",
3332+
"type": "ScalableCapability::ScalableBehavior"
3333+
},
33003334
{
33013335
"name": "Tween",
33023336
"type": "Tween::TweenBehavior"

0 commit comments

Comments
 (0)