mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2025-07-06 22:54:36 -04:00
Initial Commit
This commit is contained in:
25
scenes/bullet.tscn
Normal file
25
scenes/bullet.tscn
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://btqqwoybwtc0a"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dkig6mppjmlx0" path="res://assets/img/bullet.png" id="1_6rsjj"]
|
||||
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_jyq7a"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5nukh"]
|
||||
size = Vector2(4, 16)
|
||||
|
||||
[node name="Bullet" type="Area2D"]
|
||||
script = ExtResource("1_jyq7a")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(1, 0)
|
||||
texture = ExtResource("1_6rsjj")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_5nukh")
|
||||
|
||||
[node name="LifeTimer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[connection signal="timeout" from="LifeTimer" to="." method="_on_life_timer_timeout"]
|
7
scenes/game.tscn
Normal file
7
scenes/game.tscn
Normal file
@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bdarunpk3c2eh"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cbo47ftx0vcro" path="res://scenes/ship.tscn" id="1_esyqo"]
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="Ship" parent="." instance=ExtResource("1_esyqo")]
|
29
scenes/ship.tscn
Normal file
29
scenes/ship.tscn
Normal file
@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cbo47ftx0vcro"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ship.gd" id="1_japvq"]
|
||||
[ext_resource type="Texture2D" uid="uid://qcnuvee2jcp0" path="res://assets/img/ship.png" id="1_ymcdl"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_hwy8o"]
|
||||
|
||||
[node name="Ship" type="Area2D"]
|
||||
script = ExtResource("1_japvq")
|
||||
max_speed = null
|
||||
steering_factor = null
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_ymcdl")
|
||||
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="Sprite2D"]
|
||||
position = Vector2(-16, 0)
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 3.0
|
||||
spread = 105.9
|
||||
gravity = Vector2(0, 0)
|
||||
|
||||
[node name="Gun" type="Marker2D" parent="Sprite2D"]
|
||||
position = Vector2(32, 0)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
rotation = 1.54049
|
||||
scale = Vector2(1.36118, -2.39866)
|
||||
shape = SubResource("CapsuleShape2D_hwy8o")
|
Reference in New Issue
Block a user