fix water not killing player

This commit is contained in:
Haze Weathers 2023-02-22 16:05:11 -05:00
parent b31344a718
commit b76ce99b73

View file

@ -1,4 +1,4 @@
[gd_resource type="TileSet" load_steps=5 format=2] [gd_resource type="TileSet" load_steps=6 format=2]
[ext_resource path="res://graphics/tiles/water.tres" type="Texture" id=1] [ext_resource path="res://graphics/tiles/water.tres" type="Texture" id=1]
[ext_resource path="res://graphics/tiles/spike.png" type="Texture" id=2] [ext_resource path="res://graphics/tiles/spike.png" type="Texture" id=2]
@ -7,6 +7,9 @@
[sub_resource type="ConvexPolygonShape2D" id=1] [sub_resource type="ConvexPolygonShape2D" id=1]
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
[sub_resource type="ConvexPolygonShape2D" id=2]
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
[resource] [resource]
0/name = "water.tres 0" 0/name = "water.tres 0"
0/texture = ExtResource( 1 ) 0/texture = ExtResource( 1 )
@ -74,7 +77,14 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
3/navigation_offset = Vector2( 0, 0 ) 3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 0, 0 ) 3/shape_offset = Vector2( 0, 0 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) 3/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
3/shape = SubResource( 2 )
3/shape_one_way = false 3/shape_one_way = false
3/shape_one_way_margin = 0.0 3/shape_one_way_margin = 1.0
3/shapes = [ ] 3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 2 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
3/z_index = 10 3/z_index = 10