starfighter/MB_FYP/scenes/entities/player.tscn

36 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=7 format=3 uid="uid://ckh362yqjkpi0"]
[ext_resource type="Script" path="res://script/entities/player.cs" id="1_lhmq0"]
[ext_resource type="Texture2D" uid="uid://ofevjaw7ld0a" path="res://assets/Ships/Fighters/Player/Fighter/ShipBlue.png" id="2_guof5"]
[ext_resource type="Script" path="res://script/util/camera.cs" id="3_ui7sm"]
[ext_resource type="AudioStream" uid="uid://bkmou1np8dpi6" path="res://assets/sounds/laser_fire.ogg" id="4_sb852"]
[ext_resource type="AudioStream" uid="uid://7jden56war5n" path="res://assets/sounds/ship_dmg.ogg" id="5_ae0ke"]
[sub_resource type="CircleShape2D" id="CircleShape2D_btpq3"]
radius = 41.0488
2023-11-18 16:52:01 +00:00
[node name="Player" type="CharacterBody2D"]
collision_mask = 13
motion_mode = 1
script = ExtResource("1_lhmq0")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_btpq3")
[node name="ShipSprite" type="Sprite2D" parent="."]
texture = ExtResource("2_guof5")
[node name="LaserSpawn" type="Node2D" parent="."]
position = Vector2(0, -58)
[node name="Camera2D" type="Camera2D" parent="."]
script = ExtResource("3_ui7sm")
[node name="EffectSpawn" type="Node2D" parent="."]
[node name="LaserSFX" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_sb852")
[node name="DamageSFX" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_ae0ke")