summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/4WheelCar/4WheelCar.tscn
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2020-03-19 03:28:23 -0400
committerrealtradam <[email protected]>2020-03-19 03:28:23 -0400
commit57c5f73d0d957dc426d922d591fa5a0dd1452892 (patch)
tree490e1eaf130d7c3eab82c34505e1153d4837d002 /Racing-Game/4WheelCar/4WheelCar.tscn
parent2e7c27e3934fd9c73f7e6cd414a50a9a17e1669c (diff)
downloadoptimal-direction-57c5f73d0d957dc426d922d591fa5a0dd1452892.tar.gz
optimal-direction-57c5f73d0d957dc426d922d591fa5a0dd1452892.zip
made weight distribution also more modular
Diffstat (limited to 'Racing-Game/4WheelCar/4WheelCar.tscn')
-rw-r--r--Racing-Game/4WheelCar/4WheelCar.tscn28
1 files changed, 4 insertions, 24 deletions
diff --git a/Racing-Game/4WheelCar/4WheelCar.tscn b/Racing-Game/4WheelCar/4WheelCar.tscn
index de13e82..ff5d89f 100644
--- a/Racing-Game/4WheelCar/4WheelCar.tscn
+++ b/Racing-Game/4WheelCar/4WheelCar.tscn
@@ -1,16 +1,14 @@
-[gd_scene load_steps=8 format=2]
+[gd_scene load_steps=7 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/WeightCreation.gd" type="Script" id=4]
[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 )
@@ -28,26 +26,8 @@ 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("..")
+[node name="Weight" type="Node" parent="CarBody"]
+script = ExtResource( 4 )