renamed test.tscn to car.tscn

added collision layer names
tweaked positions of wipers
added staticbodies to wipers
master
Zac 4 years ago
parent 572dad5e95
commit 5fd417db17

@ -0,0 +1,115 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scripts/wiper.gd" type="Script" id=1]
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 7.99985, 137.265 )
[node name="car" type="Node2D" index="0"]
[node name="wipers" type="Node2D" parent="." index="0"]
editor/display_folded = true
[node name="wiper" type="Node2D" parent="wipers" index="0"]
position = Vector2( 567.907, 432 )
rotation = 1.5708
scale = Vector2( 1, 1 )
script = ExtResource( 1 )
_sections_unfolded = [ "Transform" ]
__meta__ = {
"_edit_group_": true
}
dead_zones = 200
[node name="StaticBody2D" type="StaticBody2D" parent="wipers/wiper" index="0"]
position = Vector2( 0, -134.828 )
scale = Vector2( 1, 1 )
input_pickable = false
collision_layer = 1
collision_mask = 2
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
_sections_unfolded = [ "Collision", "Transform" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="wipers/wiper/StaticBody2D" index="0"]
scale = Vector2( 1, 1 )
shape = SubResource( 1 )
[node name="ColorRect" type="ColorRect" parent="wipers/wiper/StaticBody2D" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -9.00003
margin_top = -138.172
margin_right = 8.99997
margin_bottom = 134.828
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
color = Color( 0, 0, 0, 1 )
_sections_unfolded = [ "Rect" ]
[node name="wiper2" type="Node2D" parent="wipers" index="1"]
position = Vector2( 292, 432 )
rotation = 1.5708
scale = Vector2( 1, 1 )
script = ExtResource( 1 )
_sections_unfolded = [ "Transform" ]
__meta__ = {
"_edit_group_": true
}
dead_zones = 200
[node name="StaticBody2D2" type="StaticBody2D" parent="wipers/wiper2" index="0"]
editor/display_folded = true
position = Vector2( -0.00115967, -134.828 )
scale = Vector2( 1, 1 )
input_pickable = false
collision_layer = 1
collision_mask = 2
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
_sections_unfolded = [ "Collision" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="wipers/wiper2/StaticBody2D2" index="0"]
scale = Vector2( 1, 1 )
shape = SubResource( 1 )
[node name="ColorRect" type="ColorRect" parent="wipers/wiper2/StaticBody2D2" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -8.99997
margin_top = -139.0
margin_right = 9.00003
margin_bottom = 134.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
color = Color( 0, 0, 0, 1 )
_sections_unfolded = [ "Rect" ]

@ -1,67 +0,0 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://scripts/wiper.gd" type="Script" id=1]
[node name="test" type="Node2D" index="0"]
[node name="wiper" type="Node2D" parent="." index="0"]
editor/display_folded = true
position = Vector2( 626.352, 462 )
rotation = 1.5708
script = ExtResource( 1 )
_sections_unfolded = [ "Transform" ]
__meta__ = {
"_edit_group_": true
}
dead_zones = 200
[node name="ColorRect" type="ColorRect" parent="wiper" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -9.0
margin_top = -273.0
margin_right = 9.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
color = Color( 0, 0, 0, 1 )
_sections_unfolded = [ "Rect" ]
[node name="wiper2" type="Node2D" parent="." index="1"]
editor/display_folded = true
position = Vector2( 302.966, 462 )
rotation = 1.5708
script = ExtResource( 1 )
_sections_unfolded = [ "Transform" ]
__meta__ = {
"_edit_group_": true
}
dead_zones = 200
[node name="ColorRect" type="ColorRect" parent="wiper2" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -9.0
margin_top = -273.0
margin_right = 9.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
color = Color( 0, 0, 0, 1 )
_sections_unfolded = [ "Rect" ]

@ -18,6 +18,11 @@ config/icon="res://icon.png"
wipe=[ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
]
[layer_names]
2d_physics/layer_1="wipers"
2d_physics/layer_2="rain"
[rendering]
environment/default_environment="res://default_env.tres"

Loading…
Cancel
Save