second
This commit is contained in:
parent
dc7e8771e6
commit
c211891ee2
@ -13,6 +13,7 @@ config_version=5
|
||||
config/name="first-person"
|
||||
run/main_scene="uid://dk7oodthk2rt2"
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
run/max_fps=144
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[autoload]
|
||||
@ -26,6 +27,7 @@ window/size/viewport_width=1280
|
||||
window/size/viewport_height=720
|
||||
window/stretch/mode="canvas_items"
|
||||
window/stretch/aspect="expand"
|
||||
window/vsync/vsync_mode=0
|
||||
|
||||
[global_group]
|
||||
|
||||
|
||||
@ -95,10 +95,6 @@ func _process(_delta):
|
||||
if states.visible and player:
|
||||
stats.text ="SPEDOMETER: "+str(snappedf(player.spedometer, 0.01))
|
||||
|
||||
func _ready() -> void:
|
||||
read_message("vs")
|
||||
read_message("max_fps 144")
|
||||
|
||||
func _on_edit_text_submitted(new_text):
|
||||
read_message(new_text)
|
||||
edit.clear()
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
extends CharacterBody3D
|
||||
|
||||
#region Variables
|
||||
@export var mult_speed:=3.5
|
||||
@export var desired_jump_height : float = 1.0
|
||||
@export var gravity_multiplier : float = 2.0
|
||||
@onready var collision: CollisionShape3D = $collision
|
||||
@ -11,7 +12,6 @@ var jump_vel: float
|
||||
var _gamepad_look_vector:Vector2
|
||||
var _collison_height_origin := 0.0
|
||||
var input_dir:Vector2
|
||||
var mult_speed:=3.75
|
||||
var friction = 8
|
||||
var spedometer:float
|
||||
#endregion
|
||||
|
||||
@ -3,10 +3,9 @@
|
||||
[ext_resource type="Script" uid="uid://dmu4p3ty3a1bk" path="res://scenes/player/player.gd" id="1_4flbx"]
|
||||
[ext_resource type="Script" uid="uid://da0nthck8novp" path="res://scenes/player/head.gd" id="2_dovo2"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_75vfm"]
|
||||
margin = 0.01
|
||||
height = 1.8
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dovo2"]
|
||||
radius = 0.3
|
||||
height = 1.8
|
||||
|
||||
[node name="player" type="CharacterBody3D" groups=["player"]]
|
||||
collision_layer = 32772
|
||||
@ -16,7 +15,7 @@ script = ExtResource("1_4flbx")
|
||||
|
||||
[node name="collision" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
|
||||
shape = SubResource("CylinderShape3D_75vfm")
|
||||
shape = SubResource("CapsuleShape3D_dovo2")
|
||||
|
||||
[node name="head" type="Node3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user