Initial reorganization of shmup prroject; temp player sprites added.
This commit is contained in:
parent
02d14e913c
commit
accc463791
116 changed files with 298 additions and 177 deletions
131
player.tscn
131
player.tscn
|
|
@ -1,131 +0,0 @@
|
|||
[gd_scene load_steps=20 format=3 uid="uid://pyuorpwb7lpe"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dcrnf4r6c5qaw" path="res://player.gd" id="1_sweqy"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwxxdrdvo3le0" path="res://bullet.tscn" id="2_1jxqw"]
|
||||
[ext_resource type="Texture2D" uid="uid://di2xhcwcdbhxg" path="res://Mini Pixel Pack 3/Player ship/Player_ship (16 x 16).png" id="2_2hs0m"]
|
||||
[ext_resource type="Texture2D" uid="uid://ces8fm7lxh574" path="res://Mini Pixel Pack 3/Player ship/Boosters (16 x 16).png" id="3_1jxqw"]
|
||||
[ext_resource type="Shader" uid="uid://dfywtah53il1m" path="res://player_hit.gdshader" id="3_dw050"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjdhq42ummgky" path="res://Mini Pixel Pack 3/Player ship/Boosters_left (16 x 16).png" id="4_dw050"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjv3xbuj65pav" path="res://Mini Pixel Pack 3/Player ship/Boosters_right (16 x 16).png" id="5_b26j0"]
|
||||
[ext_resource type="PackedScene" uid="uid://4jvu41vu2557" path="res://explosion.tscn" id="8_dw050"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b26j0"]
|
||||
shader = ExtResource("3_dw050")
|
||||
shader_parameter/toggle = 0.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n7ghd"]
|
||||
atlas = ExtResource("3_1jxqw")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nvl01"]
|
||||
atlas = ExtResource("3_1jxqw")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ivps1"]
|
||||
atlas = ExtResource("4_dw050")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_urp6f"]
|
||||
atlas = ExtResource("4_dw050")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bwjto"]
|
||||
atlas = ExtResource("5_b26j0")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_606se"]
|
||||
atlas = ExtResource("5_b26j0")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_u1c27"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n7ghd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nvl01")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"forward",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ivps1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_urp6f")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"left",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bwjto")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_606se")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"right",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_dw050"]
|
||||
particles_animation = true
|
||||
particles_anim_h_frames = 2
|
||||
particles_anim_v_frames = 1
|
||||
particles_anim_loop = false
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_b26j0"]
|
||||
particle_flag_disable_z = true
|
||||
gravity = Vector3(0, 98, 0)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_op7ga"]
|
||||
size = Vector2(14, 14)
|
||||
|
||||
[node name="Player" type="Area2D"]
|
||||
script = ExtResource("1_sweqy")
|
||||
bullet_scene = ExtResource("2_1jxqw")
|
||||
|
||||
[node name="Ship" type="Sprite2D" parent="." groups=["ship"]]
|
||||
unique_name_in_owner = true
|
||||
material = SubResource("ShaderMaterial_b26j0")
|
||||
texture = ExtResource("2_2hs0m")
|
||||
hframes = 3
|
||||
frame = 1
|
||||
|
||||
[node name="Boosters" type="AnimatedSprite2D" parent="Ship"]
|
||||
position = Vector2(0, 15)
|
||||
sprite_frames = SubResource("SpriteFrames_u1c27")
|
||||
animation = &"forward"
|
||||
autoplay = "forward"
|
||||
|
||||
[node name="BoosterBurst" type="GPUParticles2D" parent="Ship/Boosters"]
|
||||
texture_repeat = 2
|
||||
material = SubResource("CanvasItemMaterial_dw050")
|
||||
amount = 10
|
||||
texture = ExtResource("3_1jxqw")
|
||||
lifetime = 0.75
|
||||
interp_to_end = 1.0
|
||||
preprocess = 1.83
|
||||
speed_scale = 15.69
|
||||
draw_order = 2
|
||||
trail_lifetime = 1.8499999999999999
|
||||
trail_sections = 2
|
||||
process_material = SubResource("ParticleProcessMaterial_b26j0")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_op7ga")
|
||||
|
||||
[node name="GunCooldown" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[node name="Explosion" parent="." instance=ExtResource("8_dw050")]
|
||||
visible = false
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="damage_taken" from="." to="." method="_on_damage_taken"]
|
||||
[connection signal="timeout" from="GunCooldown" to="." method="_on_gun_cooldown_timeout"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue