bullet hell, asteroid and reaction done,. i think ill drop space invaders , 40 minutes left

This commit is contained in:
Tabby 2025-05-17 17:20:23 +10:00
parent 82652730f2
commit c000461fd6
23 changed files with 377 additions and 23 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=3 uid="uid://bw1hhx7lyfonr"]
[gd_scene load_steps=9 format=3 uid="uid://bw1hhx7lyfonr"]
[ext_resource type="Script" uid="uid://brih2jftm2tsa" path="res://games/asteroids/ship_controller.gd" id="1_6dc0m"]
[ext_resource type="Script" uid="uid://carkc2diu0xwd" path="res://games/asteroids/asteroids.gd" id="1_j0tb1"]
@ -20,8 +20,14 @@ noise = SubResource("FastNoiseLite_j0tb1")
[sub_resource type="CircleShape2D" id="CircleShape2D_dtqgl"]
radius = 26.0192
[node name="Asteroids" type="Node"]
[sub_resource type="CircleShape2D" id="CircleShape2D_j0tb1"]
radius = 26.0192
[node name="Asteroids" type="Node" node_paths=PackedStringArray("asteroid_spawns", "win_progress", "player")]
script = ExtResource("1_j0tb1")
asteroid_spawns = [NodePath("Spawns/SpawnPoint"), NodePath("Spawns/SpawnPoint2"), NodePath("Spawns/SpawnPoint3"), NodePath("Spawns/SpawnPoint4")]
win_progress = NodePath("ProgressBar")
player = NodePath("Ship")
[node name="TextureRect" type="TextureRect" parent="."]
anchors_preset = 15
@ -52,3 +58,39 @@ position = Vector2(30, 0)
[node name="BulletGoal" type="Marker2D" parent="Ship"]
position = Vector2(459, 0)
[node name="Area2D" type="Area2D" parent="Ship"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ship/Area2D"]
shape = SubResource("CircleShape2D_j0tb1")
[node name="Spawns" type="Node2D" parent="."]
[node name="SpawnPoint" type="Marker2D" parent="Spawns"]
position = Vector2(-92, -85)
[node name="SpawnPoint2" type="Marker2D" parent="Spawns"]
position = Vector2(724, -92)
[node name="SpawnPoint3" type="Marker2D" parent="Spawns"]
position = Vector2(742, 445)
[node name="SpawnPoint4" type="Marker2D" parent="Spawns"]
position = Vector2(-108, 435)
[node name="ProgressBar" type="ProgressBar" parent="."]
modulate = Color(0, 1, 0, 1)
custom_minimum_size = Vector2(32, 0)
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -4.0
grow_horizontal = 0
grow_vertical = 2
max_value = 1.0
step = 0.0
fill_mode = 3
show_percentage = false
[connection signal="area_entered" from="Ship/Area2D" to="." method="_on_area_2d_area_entered"]