summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/Obstacles
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2020-03-15 14:31:34 -0400
committerrealtradam <[email protected]>2020-03-15 14:31:34 -0400
commitc65f6805081e999fa231f71b231dba6dc05286ea (patch)
tree5365cc9bca9fc05b7c9bc26858335fdd3b5ede68 /Racing-Game/Obstacles
parent007e9dab410d825e92b0d391fd8356efcb4cb5db (diff)
downloadoptimal-direction-c65f6805081e999fa231f71b231dba6dc05286ea.tar.gz
optimal-direction-c65f6805081e999fa231f71b231dba6dc05286ea.zip
more organizing file structure, not done yet
Diffstat (limited to 'Racing-Game/Obstacles')
-rw-r--r--Racing-Game/Obstacles/ ObstacleBarrier.gd17
-rw-r--r--Racing-Game/Obstacles/ObstacleTires.gd17
2 files changed, 34 insertions, 0 deletions
diff --git a/Racing-Game/Obstacles/ ObstacleBarrier.gd b/Racing-Game/Obstacles/ ObstacleBarrier.gd
new file mode 100644
index 0000000..c899704
--- /dev/null
+++ b/Racing-Game/Obstacles/ ObstacleBarrier.gd
@@ -0,0 +1,17 @@
+extends RigidBody2D
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ bounce = 0
+ linear_damp = 5
+ angular_damp = 5
+ mass = 1000
+ pass # Replace with function body.
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+#func _process(delta):
+# pass
diff --git a/Racing-Game/Obstacles/ObstacleTires.gd b/Racing-Game/Obstacles/ObstacleTires.gd
new file mode 100644
index 0000000..c1ced85
--- /dev/null
+++ b/Racing-Game/Obstacles/ObstacleTires.gd
@@ -0,0 +1,17 @@
+extends RigidBody2D
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ bounce = 0
+ linear_damp = 5
+ angular_damp = 3
+ mass = 150
+ pass # Replace with function body.
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+#func _process(delta):
+# pass