forked from team-sg/hero-mark-2
removed slopes from platform
This commit is contained in:
parent
49bef9ef17
commit
67e9a93b2b
1 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=10 format=2]
|
[gd_scene load_steps=11 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://graphics/enemy/turtle.png" type="Texture" id=1]
|
[ext_resource path="res://graphics/enemy/turtle.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://objects/enemy/turtle.gd" type="Script" id=2]
|
[ext_resource path="res://objects/enemy/turtle.gd" type="Script" id=2]
|
||||||
|
@ -48,6 +48,9 @@ extents = Vector2( 2.5, 2.5 )
|
||||||
[sub_resource type="RectangleShape2D" id=5]
|
[sub_resource type="RectangleShape2D" id=5]
|
||||||
extents = Vector2( 6, 1.5 )
|
extents = Vector2( 6, 1.5 )
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id=7]
|
||||||
|
extents = Vector2( 12, 3 )
|
||||||
|
|
||||||
[node name="Turtle" type="Node2D" groups=["enemy"]]
|
[node name="Turtle" type="Node2D" groups=["enemy"]]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
blood = false
|
blood = false
|
||||||
|
@ -92,7 +95,8 @@ shape = SubResource( 5 )
|
||||||
|
|
||||||
[node name="Platform" type="KinematicBody2D" parent="."]
|
[node name="Platform" type="KinematicBody2D" parent="."]
|
||||||
|
|
||||||
[node name="PlatformShape" type="CollisionPolygon2D" parent="Platform"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform"]
|
||||||
polygon = PoolVector2Array( 2, 0, 15, 0, 17, 4, 0, 4 )
|
position = Vector2( 11, 3 )
|
||||||
|
shape = SubResource( 7 )
|
||||||
|
|
||||||
[connection signal="area_entered" from="SpikeHitbox" to="." method="_on_Hitbox_area_entered"]
|
[connection signal="area_entered" from="SpikeHitbox" to="." method="_on_Hitbox_area_entered"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue