Tut18 Complete; hearts, shadows, etc.

This commit is contained in:
Alan Youngblood
2024-11-26 09:23:20 -05:00
parent 7713127e27
commit 54f9772836
9 changed files with 80 additions and 16 deletions

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=4 format=2]
[ext_resource path="res://World/Bush.png" type="Texture" id=1]
[ext_resource path="res://Shadows/LargeShadow.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 7.99998
@ -8,6 +9,10 @@ height = 12.0
[node name="Bush" type="StaticBody2D"]
[node name="ShadowSprite" type="Sprite" parent="."]
position = Vector2( 0, 6 )
texture = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )

View File

@ -0,0 +1,22 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Shadows/LargeShadow.png" type="Texture" id=1]
[ext_resource path="res://World/Tree.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 9.0
height = 8.0
[node name="Tree" type="StaticBody2D"]
[node name="ShadowSprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, -16 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -1 )
rotation = 1.5708
shape = SubResource( 1 )