diff options
author | cflip <cflip@cflip.net> | 2022-09-23 20:15:51 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-09-23 20:15:51 -0600 |
commit | 93a99218ae4d5c4c26fe3a5a7433c39a2df6e149 (patch) | |
tree | 95e02a1609544fb4b8d7a50245aecfd6b0580a18 | |
parent | 24943e267a28548b577ee4eb7b27aa94eb45ffbe (diff) |
Add a simple basketball hoop
-rw-r--r-- | Hoop.tscn | 33 | ||||
-rw-r--r-- | level.tscn | 6 |
2 files changed, 38 insertions, 1 deletions
diff --git a/Hoop.tscn b/Hoop.tscn new file mode 100644 index 0000000..0bb357f --- /dev/null +++ b/Hoop.tscn @@ -0,0 +1,33 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://hoop_fore.png" type="Texture" id=1] +[ext_resource path="res://hoop_back.png" type="Texture" id=2] + +[sub_resource type="SegmentShape2D" id=1] +a = Vector2( 0, -23 ) +b = Vector2( 0, 13 ) + +[sub_resource type="SegmentShape2D" id=2] +b = Vector2( 0, 13 ) + +[node name="Hoop" type="StaticBody2D"] +scale = Vector2( 5, 5 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Background Sprite" type="Sprite" parent="."] +light_mask = 4 +texture = ExtResource( 2 ) + +[node name="Foreground Sprite" type="Sprite" parent="."] +position = Vector2( -12, 16 ) +texture = ExtResource( 1 ) + +[node name="Right Collider" type="CollisionShape2D" parent="."] +position = Vector2( -4, 1 ) +shape = SubResource( 1 ) + +[node name="Left Collider" type="CollisionShape2D" parent="."] +position = Vector2( -22, 1 ) +shape = SubResource( 2 ) @@ -1,13 +1,17 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://icon.png" type="Texture" id=1] [ext_resource path="res://basketball.tscn" type="PackedScene" id=2] +[ext_resource path="res://Hoop.tscn" type="PackedScene" id=3] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 512, 10 ) [node name="Node2D" type="Node2D"] +[node name="Hoop" parent="." instance=ExtResource( 3 )] +position = Vector2( 721, 409 ) + [node name="Basketball" parent="." instance=ExtResource( 2 )] position = Vector2( 71, 536 ) |