Initial commit (1/2)

This commit is contained in:
Алкесей Мирнеков 2023-11-05 16:23:18 +03:00 committed by GitHub
commit 3411c5796d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 2261 additions and 0 deletions

View file

@ -0,0 +1,24 @@
[gd_scene load_steps=3 format=3 uid="uid://djmoij5kuou3j"]
[ext_resource type="Script" path="res://modules/projectile.gd" id="1_plpqo"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mo2if"]
size = Vector2(1, 8)
[node name="Laser" type="Node2D" node_paths=PackedStringArray("Collider")]
script = ExtResource("1_plpqo")
Speed = 600.0
Collider = NodePath("Collision")
[node name="LaserBody" type="Line2D" parent="."]
points = PackedVector2Array(0, 0, 8, 0)
width = 1.0
[node name="Collision" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
position = Vector2(4, 0)
rotation = -1.5708
shape = SubResource("RectangleShape2D_mo2if")

View file

@ -0,0 +1,52 @@
[gd_scene load_steps=8 format=3 uid="uid://qr1h87np4sn1"]
[ext_resource type="Script" path="res://scripts/projectiles/Rocket.gd" id="1_h8tie"]
[ext_resource type="Texture2D" uid="uid://dvnqx6habw8uc" path="res://sprites/rocket mk1 1.png" id="2_g3qcb"]
[ext_resource type="Texture2D" uid="uid://dgxlnp520q1tp" path="res://sprites/rocket mk1 2.png" id="3_q1u7q"]
[ext_resource type="Texture2D" uid="uid://fqcylid4oa6b" path="res://sprites/rocket mk1 3.png" id="4_f2hwy"]
[ext_resource type="Texture2D" uid="uid://3nxmmp826b1s" path="res://sprites/rocket mk1 4.png" id="5_xas58"]
[sub_resource type="SpriteFrames" id="SpriteFrames_pnkh5"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_g3qcb")
}, {
"duration": 1.0,
"texture": ExtResource("3_q1u7q")
}, {
"duration": 1.0,
"texture": ExtResource("4_f2hwy")
}, {
"duration": 1.0,
"texture": ExtResource("5_xas58")
}],
"loop": true,
"name": &"default",
"speed": 16.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_65eo7"]
radius = 2.0
height = 12.0
[node name="Rocket" type="Node2D" node_paths=PackedStringArray("Collider")]
script = ExtResource("1_h8tie")
Speed = 400.0
RotationSpeed = 180.0
Damage = 10.0
Collider = NodePath("Collision")
[node name="RocketSprite" type="AnimatedSprite2D" parent="."]
position = Vector2(8, 0)
sprite_frames = SubResource("SpriteFrames_pnkh5")
frame_progress = 0.740876
[node name="Collision" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
position = Vector2(10, 0)
rotation = -1.5708
shape = SubResource("CapsuleShape2D_65eo7")