Updates
This commit is contained in:
parent
ffba3fce8c
commit
7093b218fa
16 changed files with 215 additions and 69 deletions
41
player.tscn
41
player.tscn
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://b6olswaoek0bw"]
|
||||
[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"
|
||||
|
@ -12,7 +13,13 @@ load_path = "res://.godot/imported/white.png-d8533361663a5f8fe5200e5b5262a62d.ct
|
|||
size = Vector2(32, 48)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2cyhj"]
|
||||
size = Vector2(38, 48)
|
||||
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")
|
||||
|
@ -24,13 +31,16 @@ properties/1/spawn = true
|
|||
properties/1/sync = true
|
||||
properties/1/watch = false
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
[node name="Player" type="RigidBody2D"]
|
||||
collision_layer = 2
|
||||
lock_rotation = true
|
||||
script = ExtResource("1_0p8o6")
|
||||
jump_velocity = -700.0
|
||||
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
|
||||
|
@ -41,6 +51,8 @@ texture = SubResource("CompressedTexture2D_2xv6m")
|
|||
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)
|
||||
|
@ -53,11 +65,24 @@ position = Vector2(31, 0)
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_8wbiu")
|
||||
|
||||
[node name="WallDetect" type="Area2D" parent="."]
|
||||
[node name="WallDetectLeft" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="WallDetect"]
|
||||
[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")
|
||||
|
||||
|
@ -78,5 +103,9 @@ 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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue