Skip to content

Commit ecc1d47

Browse files
committed
Update 2D Driving template
1 parent b8fa6b6 commit ecc1d47

File tree

2 files changed

+101
-41
lines changed

2 files changed

+101
-41
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 2D Driving
2-
3-
A 2D physics-based, top-down, game where the player is controlling a 2D car.
1+
# 2D Driving
2+
3+
A 2D physics-based, top-down, game where the player is controlling a 2D car.
44
It has some obstacles that can be pushed away. Support keyboard and mobile controls for the player car.

examples/starting-2d-driving/starting-2d-driving.json

Lines changed: 98 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"firstLayout": "",
33
"gdVersion": {
4-
"build": 239,
4+
"build": 242,
55
"major": 5,
66
"minor": 5,
77
"revision": 0
@@ -19,7 +19,7 @@
1919
"sizeOnStartupMode": "adaptWidth",
2020
"templateSlug": "",
2121
"version": "1.0.0",
22-
"name": "starting_2dcar",
22+
"name": "starting-2d-driving",
2323
"description": "",
2424
"author": "",
2525
"windowWidth": 1280,
@@ -419,14 +419,7 @@
419419
"name": "Player",
420420
"type": "Sprite",
421421
"updateIfNotVisible": false,
422-
"variables": [
423-
{
424-
"folded": true,
425-
"name": "CheckpointReached",
426-
"type": "number",
427-
"value": 0
428-
}
429-
],
422+
"variables": [],
430423
"effects": [],
431424
"behaviors": [
432425
{
@@ -5155,6 +5148,7 @@
51555148
"extraInformation": [
51565149
"PlatformBehavior::PlatformerObjectBehavior"
51575150
],
5151+
"choices": [],
51585152
"name": "Property"
51595153
},
51605154
{
@@ -5168,9 +5162,15 @@
51685162
"type": "Choice",
51695163
"label": "Joystick name",
51705164
"group": "Controls",
5171-
"extraInformation": [
5172-
"Primary",
5173-
"Secondary"
5165+
"choices": [
5166+
{
5167+
"label": "Primary",
5168+
"value": "Primary"
5169+
},
5170+
{
5171+
"label": "Secondary",
5172+
"value": "Secondary"
5173+
}
51745174
],
51755175
"name": "JoystickIdentifier"
51765176
},
@@ -5291,6 +5291,7 @@
52915291
"extraInformation": [
52925292
"Physics3D::PhysicsCharacter3D"
52935293
],
5294+
"choices": [],
52945295
"name": "PhysicsCharacter3D"
52955296
},
52965297
{
@@ -5304,9 +5305,15 @@
53045305
"type": "Choice",
53055306
"label": "Walk joystick",
53065307
"group": "Controls",
5307-
"extraInformation": [
5308-
"Primary",
5309-
"Secondary"
5308+
"choices": [
5309+
{
5310+
"label": "Primary",
5311+
"value": "Primary"
5312+
},
5313+
{
5314+
"label": "Secondary",
5315+
"value": "Secondary"
5316+
}
53105317
],
53115318
"name": "JoystickIdentifier"
53125319
},
@@ -5416,6 +5423,7 @@
54165423
"extraInformation": [
54175424
"Physics3D::PhysicsCharacter3D"
54185425
],
5426+
"choices": [],
54195427
"name": "PhysicsCharacter3D"
54205428
},
54215429
{
@@ -5429,9 +5437,15 @@
54295437
"type": "Choice",
54305438
"label": "Walk joystick",
54315439
"group": "Controls",
5432-
"extraInformation": [
5433-
"Primary",
5434-
"Secondary"
5440+
"choices": [
5441+
{
5442+
"label": "Primary",
5443+
"value": "Primary"
5444+
},
5445+
{
5446+
"label": "Secondary",
5447+
"value": "Secondary"
5448+
}
54355449
],
54365450
"name": "JoystickIdentifier"
54375451
},
@@ -6374,6 +6388,7 @@
63746388
"extraInformation": [
63756389
"Scene3D::Base3DBehavior"
63766390
],
6391+
"choices": [],
63776392
"name": "Object3D"
63786393
},
63796394
{
@@ -6387,9 +6402,15 @@
63876402
"type": "Choice",
63886403
"label": "Camera joystick",
63896404
"group": "Controls",
6390-
"extraInformation": [
6391-
"Primary",
6392-
"Secondary"
6405+
"choices": [
6406+
{
6407+
"label": "Primary",
6408+
"value": "Primary"
6409+
},
6410+
{
6411+
"label": "Secondary",
6412+
"value": "Secondary"
6413+
}
63936414
],
63946415
"name": "CameraStick"
63956416
},
@@ -6605,6 +6626,7 @@
66056626
"extraInformation": [
66066627
"Physics3D::PhysicsCar3D"
66076628
],
6629+
"choices": [],
66086630
"name": "PhysicsCar3D"
66096631
},
66106632
{
@@ -6618,9 +6640,15 @@
66186640
"type": "Choice",
66196641
"label": "Steer joystick",
66206642
"group": "Controls",
6621-
"extraInformation": [
6622-
"Primary",
6623-
"Secondary"
6643+
"choices": [
6644+
{
6645+
"label": "Primary",
6646+
"value": "Primary"
6647+
},
6648+
{
6649+
"label": "Secondary",
6650+
"value": "Secondary"
6651+
}
66246652
],
66256653
"name": "SteerJoystickIdentifier"
66266654
},
@@ -6629,9 +6657,15 @@
66296657
"type": "Choice",
66306658
"label": "Speed joystick",
66316659
"group": "Controls",
6632-
"extraInformation": [
6633-
"Primary",
6634-
"Secondary"
6660+
"choices": [
6661+
{
6662+
"label": "Primary",
6663+
"value": "Primary"
6664+
},
6665+
{
6666+
"label": "Secondary",
6667+
"value": "Secondary"
6668+
}
66356669
],
66366670
"name": "SpeedJoystickIdentifier"
66376671
},
@@ -7164,6 +7198,7 @@
71647198
"extraInformation": [
71657199
"TopDownMovementBehavior::TopDownMovementBehavior"
71667200
],
7201+
"choices": [],
71677202
"name": "TopDownMovement"
71687203
},
71697204
{
@@ -7176,9 +7211,15 @@
71767211
"value": "Primary",
71777212
"type": "Choice",
71787213
"label": "Joystick name",
7179-
"extraInformation": [
7180-
"Primary",
7181-
"Secondary"
7214+
"choices": [
7215+
{
7216+
"label": "Primary",
7217+
"value": "Primary"
7218+
},
7219+
{
7220+
"label": "Secondary",
7221+
"value": "Secondary"
7222+
}
71827223
],
71837224
"name": "JoystickIdentifier"
71847225
},
@@ -7187,10 +7228,19 @@
71877228
"type": "Choice",
71887229
"label": "Stick mode",
71897230
"group": "Controls",
7190-
"extraInformation": [
7191-
"Analog",
7192-
"360°",
7193-
"8 Directions"
7231+
"choices": [
7232+
{
7233+
"label": "Analog",
7234+
"value": "Analog"
7235+
},
7236+
{
7237+
"label": "360°",
7238+
"value": "360°"
7239+
},
7240+
{
7241+
"label": "8 Directions",
7242+
"value": "8 Directions"
7243+
}
71947244
],
71957245
"name": "StickMode"
71967246
}
@@ -8457,9 +8507,15 @@
84578507
"value": "Primary",
84588508
"type": "Choice",
84598509
"label": "Joystick name",
8460-
"extraInformation": [
8461-
"Primary",
8462-
"Secondary"
8510+
"choices": [
8511+
{
8512+
"label": "Primary",
8513+
"value": "Primary"
8514+
},
8515+
{
8516+
"label": "Secondary",
8517+
"value": "Secondary"
8518+
}
84638519
],
84648520
"name": "JoystickIdentifier"
84658521
},
@@ -8478,6 +8534,7 @@
84788534
"extraInformation": [
84798535
"Thumb"
84808536
],
8537+
"choices": [],
84818538
"hidden": true,
84828539
"name": "ThumbAnchorOrigin"
84838540
},
@@ -8497,6 +8554,7 @@
84978554
"extraInformation": [
84988555
"Thumb"
84998556
],
8557+
"choices": [],
85008558
"hidden": true,
85018559
"name": "ThumbIsScaledProportionally"
85028560
},
@@ -13558,6 +13616,7 @@
1355813616
"extraInformation": [
1355913617
"PlatformBehavior::PlatformerObjectBehavior"
1356013618
],
13619+
"choices": [],
1356113620
"name": "PlatformerCharacter"
1356213621
},
1356313622
{
@@ -13567,6 +13626,7 @@
1356713626
"extraInformation": [
1356813627
"SmoothCamera::SmoothCamera"
1356913628
],
13629+
"choices": [],
1357013630
"name": "SmoothCamera"
1357113631
},
1357213632
{

0 commit comments

Comments
 (0)