diff options
Diffstat (limited to 'Racing-Game/Obstacles')
| -rw-r--r-- | Racing-Game/Obstacles/ ObstacleBarrier.gd | 17 | ||||
| -rw-r--r-- | Racing-Game/Obstacles/ObstacleTires.gd | 17 |
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 |
