Initial commit.

This commit is contained in:
Henry 2026-03-21 17:22:41 +00:00
commit 142bf87eca
24 changed files with 356 additions and 0 deletions

7
scenes/game.tscn Normal file
View file

@ -0,0 +1,7 @@
[gd_scene format=3 uid="uid://dqd8cxe7aj3b4"]
[ext_resource type="PackedScene" uid="uid://bj4fytc3sy482" path="res://scenes/world.tscn" id="1_uwrxv"]
[node name="Game" type="Node2D" unique_id=1673976895]
[node name="World" parent="." unique_id=1317852169 instance=ExtResource("1_uwrxv")]

20
scenes/player.tscn Normal file
View file

@ -0,0 +1,20 @@
[gd_scene format=3 uid="uid://coix5dqblmu7r"]
[ext_resource type="Script" uid="uid://otm88638j7f8" path="res://scripts/player.gd" id="1_g2els"]
[ext_resource type="Texture2D" uid="uid://cq4we1m1yv22s" path="res://graphics/ship.png" id="2_qhqgy"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dqkch"]
[node name="Player" type="Area2D" unique_id=652131079]
script = ExtResource("1_g2els")
[node name="Ship" type="Sprite2D" parent="." unique_id=1155866924]
unique_name_in_owner = true
texture = ExtResource("2_qhqgy")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=485826453]
shape = SubResource("RectangleShape2D_dqkch")
[node name="WeaponCooldown" type="Timer" parent="." unique_id=269678170]
[connection signal="timeout" from="WeaponCooldown" to="." method="_on_weapon_cooldown_timeout"]

12
scenes/stock_weapon.tscn Normal file
View file

@ -0,0 +1,12 @@
[gd_scene format=3 uid="uid://ddpclu2vdy2ve"]
[ext_resource type="Script" uid="uid://d1rwqotmrag1r" path="res://scripts/stock_weapon.gd" id="1_hsma2"]
[ext_resource type="Resource" uid="uid://cels8t3hqjtsu" path="res://resources/shot_stock.tres" id="2_ckjv1"]
[ext_resource type="Texture2D" uid="uid://ti1uy42vnnhw" path="res://graphics/shot.png" id="3_mvdrj"]
[node name="StockWeapon" type="Area2D" unique_id=1832200900]
script = ExtResource("1_hsma2")
shot_data = ExtResource("2_ckjv1")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=2134507225]
texture = ExtResource("3_mvdrj")

9
scenes/ui.tscn Normal file
View file

@ -0,0 +1,9 @@
[gd_scene format=3 uid="uid://14fhj8834pkq"]
[node name="UI" type="Control" unique_id=480295610]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

3
scenes/world.tscn Normal file
View file

@ -0,0 +1,3 @@
[gd_scene format=3 uid="uid://bj4fytc3sy482"]
[node name="World" type="Node2D" unique_id=1317852169]