Basic launch
This commit is contained in:
24
Player.tscn
24
Player.tscn
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=12 format=2]
|
||||
[gd_scene load_steps=14 format=2]
|
||||
|
||||
[ext_resource path="res://Player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://BlenderStuff/Hand/protohand.obj" type="ArrayMesh" id=2]
|
||||
@@ -6,12 +6,16 @@
|
||||
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Audio/80-s-clap.wav" type="AudioStream" id=5]
|
||||
[ext_resource path="res://Audio/MegaSlap.wav" type="AudioStream" id=6]
|
||||
[ext_resource path="res://Scripts/HitBox.gd" type="Script" id=7]
|
||||
|
||||
[sub_resource type="CapsuleShape" id=2]
|
||||
height = 3.0
|
||||
|
||||
[sub_resource type="CylinderShape" id=3]
|
||||
|
||||
[sub_resource type="BoxShape" id=7]
|
||||
extents = Vector3( 0.797679, 1, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=4]
|
||||
flags_no_depth_test = true
|
||||
albedo_texture = ExtResource( 3 )
|
||||
@@ -101,6 +105,19 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.84218, 0 )
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0154071, 0.355, -0.246618 )
|
||||
fov = 80.0
|
||||
|
||||
[node name="HitBox" type="Area" parent="Head/Camera"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0154071, -0.355, 0.246618 )
|
||||
monitorable = false
|
||||
script = ExtResource( 7 )
|
||||
hitbox_type = 1
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Head/Camera/HitBox"]
|
||||
transform = Transform( 1, 0, 0, 0, 0.3, 0, 0, 0, 0.8, 0, 0.414722, -1.5988 )
|
||||
shape = SubResource( 7 )
|
||||
|
||||
[node name="PointTo" type="Spatial" parent="Head/Camera"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
|
||||
|
||||
[node name="HandParent" type="Spatial" parent="Head"]
|
||||
transform = Transform( 0.0807126, 0.49343, -0.00351894, 0.445393, -0.0713166, 0.215728, 0.212391, -0.0379586, -0.451053, 0.736, -0.075, -1.998 )
|
||||
|
||||
@@ -133,3 +150,8 @@ doppler_tracking = 2
|
||||
[node name="Music" type="AudioStreamPlayer" parent="."]
|
||||
volume_db = 13.983
|
||||
autoplay = true
|
||||
|
||||
[node name="SlapCooldown" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
|
||||
[connection signal="timeout" from="SlapCooldown" to="." method="_on_SlapCooldown_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user