asteroids cooking

This commit is contained in:
Tabby 2025-05-11 20:11:41 +10:00
parent d5c27030c5
commit 51be54d905
8 changed files with 73 additions and 15 deletions

View file

@ -37,7 +37,11 @@ rotation_force = 10
drag = 10
[node name="Sprite2D" type="Sprite2D" parent="Ship"]
texture_filter = 1
texture = ExtResource("2_j0tb1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ship"]
shape = SubResource("CircleShape2D_dtqgl")
[node name="Shooter" type="Marker2D" parent="Ship"]
position = Vector2(30, 0)

View file

@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://i4us3nam2kn5"]
[ext_resource type="Texture2D" uid="uid://b775cji263ifl" path="res://sprites/asteroids_bullet.png" id="1_bvcl6"]
[sub_resource type="CircleShape2D" id="CircleShape2D_bvcl6"]
radius = 13.0
[node name="Bullet" type="Area2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_bvcl6")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
texture = ExtResource("1_bvcl6")