Compare commits

..

5 Commits

Author SHA1 Message Date
vengefulcartographer a268ff25e6 Revert "push"
This reverts commit ec8e1d33c0.
2023-08-19 16:02:07 -06:00
vengefulcartographer ec8e1d33c0 push 2023-08-19 15:50:24 -06:00
Spencer Killen 4b21259716
Merge branch 'master' of https://git.sjkillen.ca/sjkillen/ABGJ-23 2023-08-19 15:48:53 -06:00
vengefulcartographer 55ae507421 Merge branch 'master' of https://git.sjkillen.ca/sjkillen/ABGJ-23 2023-08-19 15:42:39 -06:00
vengefulcartographer 4d5f69398e grape guy souns 2023-08-19 15:41:47 -06:00
10 changed files with 95 additions and 12 deletions

View File

@ -1,6 +1,8 @@
extends Node3D
@onready var animation: AnimationNodeStateMachinePlayback = $AnimationTree.get("parameters/playback")
@onready var player_sounds = $PlayerSounds
signal anim_check_grab(position: Vector3)
@ -33,3 +35,8 @@ func animation_key_grab():
func animation_key_pickup_completed():
pickup_animation_in_progress = false
emit_signal("pickup_animation_finished")
func _on_animation_tree_animation_finished(anim_name):
if anim_name == "WalkHold":
player_sounds.set_stream(preload("res://sfx/dropgrunt.ogg"))
player_sounds.play()

View File

@ -1,7 +1,8 @@
[gd_scene load_steps=37 format=3 uid="uid://bgoo1lbt28na"]
[gd_scene load_steps=39 format=3 uid="uid://bgoo1lbt28na"]
[ext_resource type="PackedScene" uid="uid://bhanbx2dyhv2d" path="res://Models/grape_man.glb" id="1_fh5yr"]
[ext_resource type="Script" path="res://Models/grape_man.gd" id="2_ksje8"]
[ext_resource type="AudioStream" uid="uid://bj1mb2km8fm8a" path="res://sfx/dropgrunt.ogg" id="3_nivx1"]
[sub_resource type="AnimationNodeAdd2" id="AnimationNodeAdd2_a0vxm"]
filter_enabled = true
@ -146,25 +147,29 @@ states/WalkEmpty/node = SubResource("AnimationNodeBlendTree_6rmmo")
states/WalkEmpty/position = Vector2(548, 208)
states/WalkHold/node = SubResource("AnimationNodeBlendTree_kalnq")
states/WalkHold/position = Vector2(351, 323)
transitions = ["Start", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_8sw6d"), "IdleEmpty", "WalkHold", SubResource("AnimationNodeStateMachineTransition_71rn8"), "WalkHold", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_cp7lp"), "WalkEmpty", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_27n2r"), "IdleEmpty", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_v26jl"), "IdleHold", "WalkHold", SubResource("AnimationNodeStateMachineTransition_u0rau"), "IdleHold", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_1hqga"), "WalkEmpty", "IdleHold", SubResource("AnimationNodeStateMachineTransition_uekhs"), "WalkHold", "IdleHold", SubResource("AnimationNodeStateMachineTransition_652wi"), "IdleEmpty", "Pickup", SubResource("AnimationNodeStateMachineTransition_sdgve"), "Pickup", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_otprv"), "IdleEmpty", "IdleHold", SubResource("AnimationNodeStateMachineTransition_fbwhh"), "IdleHold", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_4rq7a"), "WalkHold", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_oange"), "WalkEmpty", "WalkHold", SubResource("AnimationNodeStateMachineTransition_et4tx"), "Pickup", "IdleHold", SubResource("AnimationNodeStateMachineTransition_y2dr5")]
graph_offset = Vector2(26, 89)
transitions = ["Start", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_8sw6d"), "IdleEmpty", "WalkHold", SubResource("AnimationNodeStateMachineTransition_71rn8"), "WalkHold", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_cp7lp"), "WalkEmpty", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_27n2r"), "IdleEmpty", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_v26jl"), "IdleHold", "WalkHold", SubResource("AnimationNodeStateMachineTransition_u0rau"), "IdleHold", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_1hqga"), "WalkEmpty", "IdleHold", SubResource("AnimationNodeStateMachineTransition_uekhs"), "WalkHold", "IdleHold", SubResource("AnimationNodeStateMachineTransition_652wi"), "IdleEmpty", "Pickup", SubResource("AnimationNodeStateMachineTransition_sdgve"), "Pickup", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_otprv"), "IdleEmpty", "IdleHold", SubResource("AnimationNodeStateMachineTransition_fbwhh"), "IdleHold", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_4rq7a"), "WalkHold", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_oange"), "WalkEmpty", "WalkHold", SubResource("AnimationNodeStateMachineTransition_et4tx"), "Pickup", "IdleHold", SubResource("AnimationNodeStateMachineTransition_y2dr5"), "IdleHold", "Pickup", SubResource("AnimationNodeStateMachineTransition_ubbuf")]
graph_offset = Vector2(-41, 73)
[node name="grape_man" instance=ExtResource("1_fh5yr")]
transform = Transform3D(0.065, 0, 0, 0, 0.065, 0, 0, 0, 0.065, 0, 0, 0)
script = ExtResource("2_ksje8")
[node name="Skeleton3D" parent="rig" index="0"]
bones/0/rotation = Quaternion(0.0861766, 0, 0, 0.99628)
bones/0/position = Vector3(0, 1.03829, -0.022716)
bones/0/rotation = Quaternion(0.0615938, 0, 0, 0.998101)
bones/1/rotation = Quaternion(-0.0891896, 1.18734e-07, -1.06322e-08, 0.996015)
bones/2/rotation = Quaternion(0.0133933, -1.19199e-07, 1.5966e-09, 0.99991)
bones/3/rotation = Quaternion(-0.00997737, 0.100365, -0.694951, 0.711948)
bones/4/rotation = Quaternion(0.0687327, -0.0343696, -0.655545, 0.751236)
bones/2/rotation = Quaternion(0.0133932, -1.19199e-07, 1.5966e-09, 0.99991)
bones/3/rotation = Quaternion(0.467612, 0.0653885, -0.582913, 0.661268)
bones/4/rotation = Quaternion(0.533287, -0.180573, 0.469101, 0.680399)
bones/4/scale = Vector3(1, 1, 1)
bones/5/rotation = Quaternion(-0.00997737, -0.100365, 0.694951, 0.711948)
bones/6/rotation = Quaternion(0.0687327, 0.0343696, 0.655545, 0.751236)
bones/5/rotation = Quaternion(0.467612, -0.0653884, 0.582913, 0.661268)
bones/6/rotation = Quaternion(0.533287, 0.180573, -0.469101, 0.680399)
bones/6/scale = Vector3(1, 1, 1)
bones/7/rotation = Quaternion(0.0142813, -6.34259e-18, -4.44044e-16, 0.999898)
bones/8/rotation = Quaternion(0.197065, 6.31981e-16, -1.33238e-15, 0.98039)
bones/9/position = Vector3(0.155448, 0.891297, -0.0224623)
bones/10/rotation = Quaternion(0.105246, 0.0039338, -0.0113526, 0.994374)
bones/14/position = Vector3(-0.155448, 0.891297, -0.0224622)
bones/15/rotation = Quaternion(0.105246, -0.0039338, 0.0113526, 0.994374)
[node name="GrabPointLocation" type="Node3D" parent="." index="2"]
@ -181,3 +186,8 @@ parameters/IdleEmpty/Add2/add_amount = 1.0
parameters/IdleHold/Add2/add_amount = 1.0
parameters/WalkEmpty/Add2/add_amount = 1.0
parameters/WalkHold/Add2/add_amount = 1.0
[node name="PlayerSounds" type="AudioStreamPlayer" parent="." index="5"]
stream = ExtResource("3_nivx1")
[connection signal="animation_finished" from="AnimationTree" to="." method="_on_animation_tree_animation_finished"]

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=6 format=3 uid="uid://difi2tur2j4dg"]
[ext_resource type="PackedScene" uid="uid://dfyt6kjw8yli" path="res://Models/island.glb" id="1_5vc8b"]
[ext_resource type="Material" uid="uid://yuhlhpwji3c4" path="res://Textures/sand.tres" id="2_bgydn"]
[ext_resource type="Material" uid="uid://yuhlhpwji3c4" path="res://Textures/dirt.tres" id="2_0hsca"]
[ext_resource type="Material" uid="uid://b88xmds4mx7rd" path="res://Textures/grass.tres" id="2_knbpa"]
[sub_resource type="BoxShape3D" id="BoxShape3D_1k3v7"]
@ -12,7 +12,7 @@ data = PackedVector3Array(-0.573, 1.014, 0.0277, -0.534, 1.041, 0.0706, -0.5395,
[node name="island" instance=ExtResource("1_5vc8b")]
[node name="Island" parent="." index="0"]
material_override = ExtResource("2_bgydn")
surface_material_override/0 = ExtResource("2_0hsca")
[node name="StaticBody3D" type="StaticBody3D" parent="Island" index="0"]

BIN
godot/sfx/dropgrunt.ogg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://bj1mb2km8fm8a"
path="res://.godot/imported/dropgrunt.ogg-52a4370eeeff0d05935e68ca8f761238.oggvorbisstr"
[deps]
source_file="res://sfx/dropgrunt.ogg"
dest_files=["res://.godot/imported/dropgrunt.ogg-52a4370eeeff0d05935e68ca8f761238.oggvorbisstr"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

BIN
godot/sfx/heartychuckle.ogg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://bpi7nhau66pmh"
path="res://.godot/imported/heartychuckle.ogg-2c15818a62bdef41bf1df2c79e7e24f2.oggvorbisstr"
[deps]
source_file="res://sfx/heartychuckle.ogg"
dest_files=["res://.godot/imported/heartychuckle.ogg-2c15818a62bdef41bf1df2c79e7e24f2.oggvorbisstr"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

BIN
godot/sfx/pickupgrunt.ogg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://dvy863exkepia"
path="res://.godot/imported/pickupgrunt.ogg-7b3d40c25d6a890b26b1bdae56312a3d.oggvorbisstr"
[deps]
source_file="res://sfx/pickupgrunt.ogg"
dest_files=["res://.godot/imported/pickupgrunt.ogg-7b3d40c25d6a890b26b1bdae56312a3d.oggvorbisstr"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -39,7 +39,7 @@ layout_mode = 2
text = "Walk"
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(0.999682, 0, -0.0251998, 0, 1, 0, 0.0251998, 0, 0.999682, 0, 0.138, 0.315)
transform = Transform3D(0.999682, 0, -0.0251998, 0, 1, 0, 0.0251998, 0, 0.999682, 0, 1.60084, 4.98142)
current = true
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/Idle" to="." method="_on_idle_pressed"]