Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.5 KiB

[gd_scene load_steps=12 format=3 uid="uid://b6olswaoek0bw"]
[ext_resource type="Script" path="res://player.gd" id="1_0p8o6"]
[ext_resource type="Script" path="res://gun.gd" id="2_847gu"]
[ext_resource type="PackedScene" uid="uid://bxyl3aa8j8qc5" path="res://bullet.tscn" id="3_ckwue"]
[ext_resource type="Texture2D" uid="uid://bda38sojncx5q" path="res://light.png" id="4_q0kom"]
[ext_resource type="AudioStream" uid="uid://c30svhturh63u" path="res://swoosh.mp3" id="5_dg8cc"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_2xv6m"]
load_path = "res://.godot/imported/white.png-d8533361663a5f8fe5200e5b5262a62d.ctex"
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8wbiu"]
size = Vector2(32, 48)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2cyhj"]
size = Vector2(3, 48)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_64slp"]
size = Vector2(3, 48)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_j3l6y"]
size = Vector2(12, 2)
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_38o4e"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/sync = true
properties/0/watch = false
properties/1/path = NodePath("Gun:rotation")
properties/1/spawn = true
properties/1/sync = true
properties/1/watch = false
[node name="Player" type="RigidBody2D"]
collision_layer = 2
lock_rotation = true
script = ExtResource("1_0p8o6")
speed = 400.0
jump_velocity = 700.0
wall_jump_velocity = 700.0
fox_time = 100
limp_gravity_modifier = 3.0
stop_force = 300.0
[node name="Sprite2D" type="Sprite2D" parent="."]
light_mask = 0
scale = Vector2(1, 1.5)
texture = SubResource("CompressedTexture2D_2xv6m")
[node name="Gun" type="Node2D" parent="."]
z_index = 1
script = ExtResource("2_847gu")
bullet = ExtResource("3_ckwue")
recoil = 125.0
fire_rate = 75
[node name="Sprite2D" type="Sprite2D" parent="Gun"]
position = Vector2(19, 0)
scale = Vector2(0.78125, 0.17375)
texture = SubResource("CompressedTexture2D_2xv6m")
[node name="BulletSpawn" type="Node2D" parent="Gun"]
position = Vector2(31, 0)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_8wbiu")
[node name="WallDetectLeft" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="WallDetectLeft"]
position = Vector2(-17.5, 0)
shape = SubResource("RectangleShape2D_2cyhj")
[node name="WallDetectRight" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="WallDetectRight"]
position = Vector2(17.5, 0)
shape = SubResource("RectangleShape2D_64slp")
[node name="FloorDetect" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="FloorDetect"]
position = Vector2(0, 26)
shape = SubResource("RectangleShape2D_j3l6y")
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_38o4e")
[node name="Label" type="Label" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -24.5
offset_top = -54.0
offset_right = 24.5
offset_bottom = -28.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
text = "Player"
horizontal_alignment = 1
[node name="PointLight2D" type="PointLight2D" parent="."]
position = Vector2(0, 6)
shadow_enabled = true
texture = ExtResource("4_q0kom")
[node name="JumpSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_dg8cc")