summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/4WheelCar/4WheelCar.tscn
blob: de13e823aa3bc638381a8f9a4b1c82a1d870497b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[gd_scene load_steps=8 format=2]

[ext_resource path="res://4WheelCar/CarBody.gd" type="Script" id=1]
[ext_resource path="res://Art(non-orig)/PNG/Cars/big/blue/car_blue_2.png" type="Texture" id=2]
[ext_resource path="res://Art(non-orig)/crosshair(isorig).png" type="Texture" id=3]
[ext_resource path="res://4WheelCar/CarProperties.gd" type="Script" id=6]
[ext_resource path="res://4WheelCar/WheelCreation.gd" type="Script" id=9]

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 35.7301, 58.1399 )

[sub_resource type="RectangleShape2D" id=1]

[node name="4WheelCar" type="Node"]
script = ExtResource( 6 )

[node name="CarBody" type="RigidBody2D" parent="."]
position = Vector2( -0.446396, -0.582428 )
z_index = 1
mass = 30.0
script = ExtResource( 1 )

[node name="Sprite" type="Sprite" parent="CarBody"]
texture = ExtResource( 2 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="CarBody"]
visible = false
modulate = Color( 0, 0, 0, 1 )
shape = SubResource( 2 )

[node name="Engine" type="RigidBody2D" parent="CarBody"]
position = Vector2( 0, 26 )
z_index = 2
mass = 10.0

[node name="CollisionShape2D" type="CollisionShape2D" parent="CarBody/Engine"]
z_index = 2
shape = SubResource( 1 )
disabled = true
__meta__ = {
"_edit_group_": true
}

[node name="Sprite" type="Sprite" parent="CarBody/Engine"]
texture = ExtResource( 3 )

[node name="Wheels" type="Node" parent="CarBody"]
script = ExtResource( 9 )

[node name="PinjointEngine" type="PinJoint2D" parent="CarBody"]
position = Vector2( 0, 26 )
node_a = NodePath("../Engine")
node_b = NodePath("..")