Change Player Hitbox
parent
58291ead27
commit
3864513cf3
|
@ -1,9 +1,12 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://src/models/player/sprite.png" type="Texture" id=1]
|
||||
[ext_resource path="res://src/models/player/player.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 4, 5.5 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 7, 11 )
|
||||
|
||||
[node name="Player" type="KinematicBody2D"]
|
||||
|
@ -13,6 +16,12 @@ script = ExtResource( 2 )
|
|||
texture = ExtResource( 1 )
|
||||
centered = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 12, 12 )
|
||||
[node name="WallCollision" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 12, 17.5 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="EnemyCollision" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyCollision"]
|
||||
position = Vector2( 12, 12 )
|
||||
shape = SubResource( 2 )
|
||||
|
|
Loading…
Reference in New Issue