diff --git a/Eat Da Rich/Bullet/Albedo.png b/Eat Da Rich/Bullet/Albedo.png new file mode 100644 index 0000000..e591f99 Binary files /dev/null and b/Eat Da Rich/Bullet/Albedo.png differ diff --git a/Eat Da Rich/Bullet/Albedo.png.import b/Eat Da Rich/Bullet/Albedo.png.import new file mode 100644 index 0000000..48d6279 --- /dev/null +++ b/Eat Da Rich/Bullet/Albedo.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://t51xojdouxij" +path.s3tc="res://.godot/imported/Albedo.png-2bc6d81e0b813ea5767500ff46db2591.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://Eat Da Rich/Bullet/Albedo.png" +dest_files=["res://.godot/imported/Albedo.png-2bc6d81e0b813ea5767500ff46db2591.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=0 diff --git a/Eat Da Rich/Bullet/Bullet-Fire.gdshader b/Eat Da Rich/Bullet/Bullet-Fire.gdshader new file mode 100644 index 0000000..abf0247 --- /dev/null +++ b/Eat Da Rich/Bullet/Bullet-Fire.gdshader @@ -0,0 +1,54 @@ +// NOTE: Shader automatically converted from Godot Engine 4.4.stable.mono's StandardMaterial3D. + +shader_type spatial; +render_mode blend_add, depth_draw_opaque, cull_disabled, diffuse_burley, specular_schlick_ggx, unshaded; + +#include "res://addons/rokojori_action_library/Runtime/Shading/Library/Math.gdshaderinc" +#include "res://addons/rokojori_action_library/Runtime/Shading/Library/Light.gdshaderinc" + +uniform vec4 albedo : source_color; +uniform vec4 albedo2 : source_color; +uniform sampler2D texture_albedo : source_color, filter_linear_mipmap, repeat_enable; +uniform float grow : hint_range(0, 0.2); +uniform sampler2D texture_grow : repeat_enable; +uniform float fresnelFade : hint_range(0,100) = 0.1; +uniform float fadeStart : hint_range(0,1) = 0.1; +uniform float fadeEnd : hint_range(0,1) = 0.3; +uniform float fadeOffset : hint_range(-1, 1); +uniform float fadePower : hint_range(0, 20); +uniform float fadeScale : hint_range(-10, 10); + +uniform vec3 uv1_scale; +uniform vec2 uv1_speed; + +uniform vec3 uv2_scale; +uniform vec2 uv2_speed; + +varying vec2 originalUV; + +void vertex() +{ + originalUV = UV; + UV = UV * uv1_scale.xy + uv1_speed * TIME; + + vec2 uv2 = UV * uv2_scale.xy + uv2_speed * TIME; + + float growSampled = texture(texture_grow, uv2).r * 2.0 - 1.0; + VERTEX += NORMAL * grow * growSampled; +} + +void fragment() +{ + vec2 base_uv = UV; + + vec4 albedo_tex = texture(texture_albedo, base_uv); + vec4 mixedAlbedo = mix( albedo, albedo2, originalUV.y ); + ALBEDO = mixedAlbedo.rgb * albedo_tex.rgb; + + float f = 1.0 - fresnel( NORMAL, vec3(0,0,1), fresnelFade ); + float fade = 1.0 - originalUV.y; + fade = pow( fade + fadeOffset, fadePower ); + fade = clamp( fade * fadeScale, 0, 1 ); + fade = fade * mapClamped( originalUV.y, fadeStart, fadeEnd, 0, 1 ); + ALPHA *= albedo.a * albedo_tex.a * fade * f; +} diff --git a/Eat Da Rich/Bullet/Bullet-Fire.gdshader.uid b/Eat Da Rich/Bullet/Bullet-Fire.gdshader.uid new file mode 100644 index 0000000..46544b2 --- /dev/null +++ b/Eat Da Rich/Bullet/Bullet-Fire.gdshader.uid @@ -0,0 +1 @@ +uid://drt3gv8ea8py diff --git a/Eat Da Rich/Bullet/Bullet.cs b/Eat Da Rich/Bullet/Bullet.cs new file mode 100644 index 0000000..c03b88b --- /dev/null +++ b/Eat Da Rich/Bullet/Bullet.cs @@ -0,0 +1,14 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class Bullet:Node + { + [Export] + public Action onActivate; + } +} \ No newline at end of file diff --git a/Eat Da Rich/Bullet/Bullet.cs.uid b/Eat Da Rich/Bullet/Bullet.cs.uid new file mode 100644 index 0000000..6b90149 --- /dev/null +++ b/Eat Da Rich/Bullet/Bullet.cs.uid @@ -0,0 +1 @@ +uid://c8reno48vdlsq diff --git a/Eat Da Rich/Bullet/Bullet.tscn b/Eat Da Rich/Bullet/Bullet.tscn new file mode 100644 index 0000000..087c328 --- /dev/null +++ b/Eat Da Rich/Bullet/Bullet.tscn @@ -0,0 +1,634 @@ +[gd_scene load_steps=93 format=3 uid="uid://cto0ydopnlcgs"] + +[ext_resource type="PackedScene" uid="uid://b8k2oy5fvldw3" path="res://Eat Da Rich/Bullet/bullet.gltf" id="1_hqaxj"] +[ext_resource type="AudioStream" uid="uid://bvu2trlkk51ec" path="res://Eat Da Rich/Music/eat-da-rich-explosion.ogg" id="1_n40yf"] +[ext_resource type="Script" uid="uid://c8reno48vdlsq" path="res://Eat Da Rich/Bullet/Bullet.cs" id="2_pwf0e"] +[ext_resource type="Texture2D" uid="uid://t51xojdouxij" path="res://Eat Da Rich/Bullet/Albedo.png" id="2_pwhao"] +[ext_resource type="Script" uid="uid://de6odd0f8x7ie" path="res://addons/rokojori_action_library/Runtime/Actions/Node3D/MoveTowards.cs" id="3_gvcmq"] +[ext_resource type="Script" uid="uid://lhuuedx87rem" path="res://addons/rokojori_action_library/Runtime/Animation/Smoothing/FrameSmoothing.cs" id="4_o82ql"] +[ext_resource type="Script" uid="uid://h8la67dl42y4" path="res://Eat Da Rich/Eat/Eatable.cs" id="5_qhpu2"] +[ext_resource type="Script" uid="uid://b4yjsis2fh64c" path="res://addons/rokojori_action_library/Runtime/Actions/ActionList.cs" id="6_xtohf"] +[ext_resource type="Script" uid="uid://ceaglilesxsi4" path="res://addons/rokojori_action_library/Runtime/Actions/ActionSequence.cs" id="7_pwhao"] +[ext_resource type="Script" uid="uid://dq5kae8x62gre" path="res://addons/rokojori_action_library/Runtime/Actions/RemoveNode.cs" id="8_nn7o5"] +[ext_resource type="Shader" uid="uid://drt3gv8ea8py" path="res://Eat Da Rich/Bullet/Bullet-Fire.gdshader" id="10_nn7o5"] +[ext_resource type="Resource" uid="uid://ch5nsa6yafs5l" path="res://addons/rokojori_action_library/Runtime/Time/TimeLines/GameTime.tres" id="10_pwhao"] +[ext_resource type="Script" uid="uid://cbtqgliarexam" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/AnimateTransform.cs" id="11_nn7o5"] +[ext_resource type="Script" uid="uid://be4oc7tgr55vu" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/TransformCurve.cs" id="12_fcth1"] +[ext_resource type="Resource" uid="uid://dwewmi0dp6ey8" path="res://Eat Da Rich/Camera/Bullet.tres" id="13_7k5l4"] +[ext_resource type="Script" uid="uid://bqpiwp16h7614" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/TransformAnimations.cs" id="13_sfeof"] +[ext_resource type="Script" uid="uid://c5vxa38rgr24k" path="res://addons/rokojori_action_library/Runtime/Selectors/Selectable.cs" id="16_sfeof"] +[ext_resource type="Resource" uid="uid://lhpe751yjb87" path="res://Eat Da Rich/Hitter/Hitter.tres" id="17_v1jac"] +[ext_resource type="Script" uid="uid://bhn2p16isptba" path="res://addons/rokojori_action_library/Runtime/Actions/Visual/TweenLight.cs" id="18_7k5l4"] +[ext_resource type="Script" uid="uid://crm7o7w0gumhn" path="res://addons/rokojori_action_library/Runtime/Actions/Conditional/Once.cs" id="18_jvw7b"] +[ext_resource type="Script" uid="uid://b2g7rycr0ouu4" path="res://addons/rokojori_action_library/Runtime/Actions/Time/Delay.cs" id="18_v1jac"] +[ext_resource type="Script" uid="uid://cko3krhs7jgc4" path="res://addons/rokojori_action_library/Runtime/Actions/Node/SetNodeStateSpecific.cs" id="18_y5oe0"] +[ext_resource type="Script" uid="uid://cfvigaosponfn" path="res://addons/rokojori_action_library/Runtime/Tools/Boxed/FloatValue.cs" id="19_aw5bm"] +[ext_resource type="Script" uid="uid://dcerk2bxdjmxr" path="res://addons/rokojori_action_library/Runtime/Godot/NodeStateConfiguration.cs" id="19_rmwtw"] +[ext_resource type="Script" uid="uid://dnstanbmrqthf" path="res://addons/rokojori_action_library/Runtime/Actions/Node3D/PlayParticles.cs" id="20_jvw7b"] +[ext_resource type="Script" uid="uid://b6bnmseo2eq0q" path="res://addons/rokojori_action_library/Runtime/Actions/Visual/TweenLightData.cs" id="20_uk424"] +[ext_resource type="Script" uid="uid://lm37r3ycp1ls" path="res://addons/rokojori_action_library/Runtime/Animation/Tweens/TweenTimeCurve.cs" id="21_xfqip"] +[ext_resource type="Script" uid="uid://bdqwss3wvwfvn" path="res://Eat Da Rich/Hitter/Hitter.cs" id="22_rmwtw"] +[ext_resource type="Script" uid="uid://ddgf2mfdmqywc" path="res://addons/rokojori_action_library/Runtime/Actions/Node3D/PlaySound.cs" id="25_4v6ww"] +[ext_resource type="Script" uid="uid://dy65lu5p2yf3j" path="res://addons/rokojori_action_library/Runtime/Actions/Sequence/Parallel.cs" id="25_oenjg"] +[ext_resource type="Script" uid="uid://cdspv8f8l6dgd" path="res://addons/rokojori_action_library/Runtime/Actions/Physics/SetCollisionShape.cs" id="29_tog56"] + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_nn7o5"] +frequency = 0.0346 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_fcth1"] +seamless = true +noise = SubResource("FastNoiseLite_nn7o5") + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_sfeof"] +resource_name = "Gold" +cull_mode = 2 +albedo_texture = ExtResource("2_pwhao") +metallic = 1.0 +roughness_texture = SubResource("NoiseTexture2D_fcth1") + +[sub_resource type="Gradient" id="Gradient_fcth1"] +offsets = PackedFloat32Array(0.340967, 0.53944) +colors = PackedColorArray(1, 1, 1, 1, 0.835402, 0.952241, 1, 0) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_sfeof"] +noise_type = 2 +frequency = 0.0272 +fractal_lacunarity = 1.916 +fractal_gain = 0.315 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_v1jac"] +height = 128 +seamless = true +color_ramp = SubResource("Gradient_fcth1") +noise = SubResource("FastNoiseLite_sfeof") + +[sub_resource type="Gradient" id="Gradient_nn7o5"] + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_fcth1"] +frequency = 0.0062 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_sfeof"] +width = 521 +seamless = true +color_ramp = SubResource("Gradient_nn7o5") +noise = SubResource("FastNoiseLite_fcth1") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_00p2g"] +render_priority = -2 +shader = ExtResource("10_nn7o5") +shader_parameter/albedo = Color(1, 0, 0.184, 0.687) +shader_parameter/albedo2 = Color(0.486, 0, 0.28, 0.532) +shader_parameter/texture_albedo = SubResource("NoiseTexture2D_v1jac") +shader_parameter/grow = 0.059 +shader_parameter/texture_grow = SubResource("NoiseTexture2D_sfeof") +shader_parameter/fresnelFade = 4.125 +shader_parameter/fadeStart = 0.082 +shader_parameter/fadeEnd = 0.393 +shader_parameter/fadeOffset = -0.232 +shader_parameter/fadePower = 3.091 +shader_parameter/fadeScale = 10.0 +shader_parameter/uv1_scale = Vector3(1, 1, 1) +shader_parameter/uv1_speed = Vector2(0.01, -0.9005) +shader_parameter/uv2_scale = Vector3(1, 1, 1) +shader_parameter/uv2_speed = Vector2(0.0145, -0.1) + +[sub_resource type="Gradient" id="Gradient_sfeof"] +offsets = PackedFloat32Array(0.109415, 0.717557) +colors = PackedColorArray(1, 1, 1, 1, 0.835402, 0.952241, 1, 0) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_v1jac"] +noise_type = 2 +frequency = 0.0171 +fractal_lacunarity = 1.916 +fractal_gain = 0.315 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_00p2g"] +height = 256 +seamless = true +color_ramp = SubResource("Gradient_sfeof") +noise = SubResource("FastNoiseLite_v1jac") + +[sub_resource type="Gradient" id="Gradient_2edn5"] + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_y5oe0"] +frequency = 0.0048 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_rmwtw"] +seamless = true +color_ramp = SubResource("Gradient_2edn5") +noise = SubResource("FastNoiseLite_y5oe0") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_jvw7b"] +render_priority = -1 +shader = ExtResource("10_nn7o5") +shader_parameter/albedo = Color(1, 0.284, 0, 0.606) +shader_parameter/albedo2 = Color(0.69, 0.289, 0, 0.512) +shader_parameter/texture_albedo = SubResource("NoiseTexture2D_00p2g") +shader_parameter/grow = 0.064 +shader_parameter/texture_grow = SubResource("NoiseTexture2D_rmwtw") +shader_parameter/fresnelFade = 11.268 +shader_parameter/fadeStart = 0.055 +shader_parameter/fadeEnd = 0.393 +shader_parameter/fadeOffset = -0.33 +shader_parameter/fadePower = 1.574 +shader_parameter/fadeScale = 10.0 +shader_parameter/uv1_scale = Vector3(1, 1, 1) +shader_parameter/uv1_speed = Vector2(0.01, -0.954) +shader_parameter/uv2_scale = Vector3(1, 1, 1) +shader_parameter/uv2_speed = Vector2(0.2, -0.2) + +[sub_resource type="Gradient" id="Gradient_7k5l4"] +offsets = PackedFloat32Array(0.277354, 0.569975) +colors = PackedColorArray(1, 1, 1, 1, 0.835402, 0.952241, 1, 0) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_aw5bm"] +noise_type = 2 +frequency = 0.0352 +fractal_lacunarity = 1.916 +fractal_gain = 0.315 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_uk424"] +height = 128 +seamless = true +color_ramp = SubResource("Gradient_7k5l4") +noise = SubResource("FastNoiseLite_aw5bm") + +[sub_resource type="Gradient" id="Gradient_xfqip"] +offsets = PackedFloat32Array(0.381679, 0.704835) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_mhrcr"] +frequency = 0.0091 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_oenjg"] +seamless = true +color_ramp = SubResource("Gradient_xfqip") +noise = SubResource("FastNoiseLite_mhrcr") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_tog56"] +render_priority = 0 +shader = ExtResource("10_nn7o5") +shader_parameter/albedo = Color(2, 1.524, 0.776, 0.131) +shader_parameter/albedo2 = Color(2, 0.696, 0.51, 0.331) +shader_parameter/texture_albedo = SubResource("NoiseTexture2D_uk424") +shader_parameter/grow = 0.025 +shader_parameter/texture_grow = SubResource("NoiseTexture2D_oenjg") +shader_parameter/fresnelFade = 1.205 +shader_parameter/fadeStart = 0.027 +shader_parameter/fadeEnd = 0.227 +shader_parameter/fadeOffset = -0.33 +shader_parameter/fadePower = 1.574 +shader_parameter/fadeScale = 10.0 +shader_parameter/uv1_scale = Vector3(1, 1, 1) +shader_parameter/uv1_speed = Vector2(0.01, -2) +shader_parameter/uv2_scale = Vector3(1, 1, 1) +shader_parameter/uv2_speed = Vector2(0.037, -0.088) + +[sub_resource type="QuadMesh" id="QuadMesh_n40yf"] + +[sub_resource type="Gradient" id="Gradient_4v6ww"] +offsets = PackedFloat32Array(0, 0.110236, 0.448819, 0.997375) +colors = PackedColorArray(1, 1, 1, 1, 0.97, 0.85942, 0.6014, 1, 1, 0.4375, 0.25, 1, 1, 0, 0.352237, 0) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_w4fbs"] +gradient = SubResource("Gradient_4v6ww") +fill = 1 +fill_from = Vector2(0.5, 0.5) +fill_to = Vector2(0.5, 0) + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rk7y6"] +transparency = 1 +blend_mode = 1 +depth_draw_mode = 2 +shading_mode = 0 +albedo_color = Color(1, 1, 1, 0.162) +albedo_texture = SubResource("GradientTexture2D_w4fbs") +disable_receive_shadows = true +billboard_mode = 1 +billboard_keep_scale = true + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2suod"] +radius = 0.092 +height = 0.399 + +[sub_resource type="Resource" id="Resource_icnot"] +resource_local_to_scene = true +script = ExtResource("4_o82ql") +frames = 20.0 +metadata/_custom_type_script = "uid://lhuuedx87rem" + +[sub_resource type="Resource" id="Resource_jvw7b"] +script = ExtResource("19_rmwtw") +processEnabled = 0 +inputEnabled = 0 +physicsEnabled = 0 +signalsEnabled = 0 +visible = 2 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Resource" id="Resource_7k5l4"] +script = ExtResource("19_rmwtw") +processEnabled = 2 +inputEnabled = 2 +physicsEnabled = 2 +signalsEnabled = 2 +visible = 0 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Resource" id="Resource_tog56"] +script = ExtResource("19_aw5bm") +value = 0.0 +metadata/_custom_type_script = "uid://cfvigaosponfn" + +[sub_resource type="Resource" id="Resource_4v6ww"] +resource_local_to_scene = true +script = ExtResource("20_uk424") +lightEnergy = SubResource("Resource_tog56") +metadata/_custom_type_script = "uid://b6bnmseo2eq0q" + +[sub_resource type="Curve" id="Curve_tog56"] +_data = [Vector2(0, 0), 0.0, 1.0, 0, 1, Vector2(1, 1), 1.0, 0.0, 1, 0] +point_count = 2 + +[sub_resource type="Resource" id="Resource_n40yf"] +script = ExtResource("21_xfqip") +duration = 0.5 +curve = SubResource("Curve_tog56") + +[sub_resource type="Gradient" id="Gradient_v1jac"] +offsets = PackedFloat32Array(0.0603675, 0.55643) +colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_00p2g"] +gradient = SubResource("Gradient_v1jac") +fill = 1 +fill_from = Vector2(0.5, 0.5) +fill_to = Vector2(0.5, 0) + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2edn5"] +transparency = 1 +blend_mode = 1 +cull_mode = 2 +shading_mode = 0 +vertex_color_use_as_albedo = true +albedo_texture = SubResource("GradientTexture2D_00p2g") +billboard_mode = 1 +billboard_keep_scale = true + +[sub_resource type="Gradient" id="Gradient_y5oe0"] +offsets = PackedFloat32Array(0, 0.189702, 0.523035, 0.94851, 1) +colors = PackedColorArray(1, 1, 1, 1, 1, 0.29725, 0, 1, 1, 0, 0, 1, 0.201299, 0, 0.112112, 1, 0, 0, 0, 1) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_rmwtw"] +gradient = SubResource("Gradient_y5oe0") + +[sub_resource type="Curve" id="Curve_jvw7b"] +_limits = [0.0, 3.0, 0.0, 1.0] +_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -4.48093, 0.0, 0, 0] +point_count = 2 + +[sub_resource type="CurveTexture" id="CurveTexture_7k5l4"] +curve = SubResource("Curve_jvw7b") + +[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_aw5bm"] +spread = 180.0 +initial_velocity_min = -5.0 +initial_velocity_max = 11.0 +gravity = Vector3(0, -10, 0) +damping_min = 3.927 +damping_max = 6.236 +scale_min = 0.3 +scale_max = 0.6 +scale_curve = SubResource("CurveTexture_7k5l4") +color_ramp = SubResource("GradientTexture1D_rmwtw") + +[sub_resource type="QuadMesh" id="QuadMesh_uk424"] +size = Vector2(0.4, 0.4) + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tog56"] +render_priority = -1 +transparency = 1 +cull_mode = 2 +shading_mode = 0 +diffuse_mode = 3 +disable_ambient_light = true +vertex_color_use_as_albedo = true + +[sub_resource type="Gradient" id="Gradient_aw5bm"] +colors = PackedColorArray(0.70366, 0.70366, 0.70366, 1, 1, 1, 1, 1) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_uk424"] +gradient = SubResource("Gradient_aw5bm") + +[sub_resource type="Gradient" id="Gradient_n40yf"] +offsets = PackedFloat32Array(0, 0.98917) +colors = PackedColorArray(0.377804, 0.377804, 0.377804, 1, 0.0791031, 0.0791031, 0.0791031, 1) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_4v6ww"] +gradient = SubResource("Gradient_n40yf") + +[sub_resource type="Curve" id="Curve_xfqip"] +_data = [Vector2(0, 0.141042), 0.0, 18.2293, 0, 0, Vector2(0.0776699, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] +point_count = 3 + +[sub_resource type="CurveTexture" id="CurveTexture_mhrcr"] +curve = SubResource("Curve_xfqip") + +[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_qlssa"] +spread = 180.0 +initial_velocity_min = -1.12 +initial_velocity_max = 2.14 +gravity = Vector3(0, 1, 0) +damping_min = 1.655 +damping_max = 1.655 +scale_min = 0.85 +scale_max = 1.45 +scale_curve = SubResource("CurveTexture_mhrcr") +scale_over_velocity_min = 1.9 +scale_over_velocity_max = 5.05 +color_ramp = SubResource("GradientTexture1D_4v6ww") +color_initial_ramp = SubResource("GradientTexture1D_uk424") + +[sub_resource type="SphereMesh" id="SphereMesh_oenjg"] + +[sub_resource type="Curve" id="Curve_n40yf"] +_data = [Vector2(0, 0), 0.0, 1.0, 0, 1, Vector2(1, 1), 1.0, 0.0, 1, 0] +point_count = 2 + +[sub_resource type="Curve" id="Curve_4v6ww"] +_data = [Vector2(0, 0), 0.0, 1.0, 0, 1, Vector2(1, 1), 1.0, 0.0, 1, 0] +point_count = 2 + +[sub_resource type="Curve" id="Curve_w4fbs"] +_data = [Vector2(0, 0), 0.0, 1.0, 0, 1, Vector2(1, 1), 1.0, 0.0, 1, 0] +point_count = 2 + +[sub_resource type="Resource" id="Resource_rk7y6"] +script = ExtResource("12_fcth1") +transformTarget = 4 +operatorMode = 0 +duration = 1.0 +durationRandomRange = 0.0 +delay = 0.0 +delayRandomRange = 0.0 +xCurve = SubResource("Curve_n40yf") +yCurve = SubResource("Curve_4v6ww") +zCurve = SubResource("Curve_w4fbs") +scaleAll = 1.0 +scaleAllRandomRange = 0.0 +metadata/_custom_type_script = "uid://be4oc7tgr55vu" + +[sub_resource type="Resource" id="Resource_qlssa"] +resource_local_to_scene = true +script = ExtResource("13_sfeof") +curves = [SubResource("Resource_rk7y6")] +timeline = ExtResource("10_pwhao") +metadata/_custom_type_script = "uid://bqpiwp16h7614" + +[sub_resource type="Resource" id="Resource_mhrcr"] +script = ExtResource("19_aw5bm") +value = 5.0 +metadata/_custom_type_script = "uid://cfvigaosponfn" + +[sub_resource type="Resource" id="Resource_oenjg"] +resource_local_to_scene = true +script = ExtResource("20_uk424") +lightEnergy = SubResource("Resource_mhrcr") +metadata/_custom_type_script = "uid://b6bnmseo2eq0q" + +[node name="Bullet" type="AnimatableBody3D"] +sync_to_physics = false + +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."] +stream = ExtResource("1_n40yf") +attenuation_filter_cutoff_hz = 20500.0 +attenuation_filter_db = 0.0 + +[node name="Graphics" parent="." instance=ExtResource("1_hqaxj")] +transform = Transform3D(-1, 0, -1.50996e-07, 0, 1, 0, 1.50996e-07, 0, -1, 0, 0, -0.0792169) + +[node name="Cylinder_008" parent="Graphics" index="0"] +surface_material_override/0 = SubResource("StandardMaterial3D_sfeof") + +[node name="CSGSphere3D" type="CSGSphere3D" parent="Graphics"] +transform = Transform3D(1.13012, 3.69482e-13, 1.69407e-21, 0, -6.45572e-08, -1.16042, -1.49214e-13, 1.4769, -5.07234e-08, 8.48153e-08, 0, -0.970174) +radial_segments = 36 +rings = 24 +material = SubResource("ShaderMaterial_00p2g") + +[node name="CSGSphere3D2" type="CSGSphere3D" parent="Graphics"] +transform = Transform3D(0.766089, -7.81597e-13, -5.71747e-21, 0, -5.48327e-08, -0.823688, 4.9738e-14, 1.25443, -3.60045e-08, 7.81637e-08, 0, -0.894089) +radial_segments = 36 +rings = 18 +material = SubResource("ShaderMaterial_jvw7b") + +[node name="CSGSphere3D3" type="CSGSphere3D" parent="Graphics"] +transform = Transform3D(0.490246, -5.68434e-14, -8.47033e-22, 0, -4.03442e-08, -0.490246, 7.81597e-14, 0.922967, -2.14293e-08, 6.17584e-08, 0, -0.706434) +radial_segments = 24 +rings = 12 +material = SubResource("ShaderMaterial_tog56") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Graphics"] +transform = Transform3D(-0.636305, 0, 5.56276e-08, 0, 0.636305, 0, -5.56276e-08, 0, -0.636305, 6.59042e-09, 0, -0.0753856) +mesh = SubResource("QuadMesh_n40yf") +skeleton = NodePath("../..") +surface_material_override/0 = SubResource("StandardMaterial3D_rk7y6") + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="Graphics"] +transform = Transform3D(-1.7999, 0, 1.57353e-07, 0, 1.7999, 0, -1.57353e-07, 0, -1.7999, 6.50621e-08, 0, -0.744224) +mesh = SubResource("QuadMesh_n40yf") +skeleton = NodePath("../..") +surface_material_override/0 = SubResource("StandardMaterial3D_rk7y6") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] +transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0) +shape = SubResource("CapsuleShape3D_2suod") + +[node name="Bullet" type="Node" parent="." node_paths=PackedStringArray("onActivate")] +script = ExtResource("2_pwf0e") +onActivate = NodePath("../Activate") +metadata/_custom_type_script = "uid://c8reno48vdlsq" + +[node name="MoveTowards" type="Node" parent="." node_paths=PackedStringArray("target")] +script = ExtResource("3_gvcmq") +target = NodePath("..") +rotationSmoothing = SubResource("Resource_icnot") +yDirectionMultiply = 0.0 +metadata/_custom_type_script = "uid://de6odd0f8x7ie" + +[node name="Eatable" type="Node" parent="."] +script = ExtResource("5_qhpu2") +metadata/_custom_type_script = "uid://h8la67dl42y4" + +[node name="On Got Eaten" type="Node" parent="."] +script = ExtResource("6_xtohf") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="ActionSequence" type="Node" parent="On Got Eaten"] +script = ExtResource("7_pwhao") +metadata/_custom_type_script = "uid://ceaglilesxsi4" + +[node name="RemoveNode" type="Node" parent="On Got Eaten/ActionSequence" node_paths=PackedStringArray("target")] +script = ExtResource("8_nn7o5") +target = NodePath("../../..") +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="OmniLight3D" type="OmniLight3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00959221, 0.469005) +light_color = Color(1, 0.557193, 0.210633, 1) +light_energy = 0.0 + +[node name="Selectable" type="Node" parent="."] +script = ExtResource("16_sfeof") +flags = [ExtResource("17_v1jac"), ExtResource("13_7k5l4")] +metadata/_custom_type_script = "uid://c5vxa38rgr24k" + +[node name="Once" type="Node" parent="." node_paths=PackedStringArray("action")] +script = ExtResource("18_jvw7b") +action = NodePath("Explode") +metadata/_custom_type_script = "uid://crm7o7w0gumhn" + +[node name="Explode" type="Node" parent="Once"] +script = ExtResource("7_pwhao") +metadata/_custom_type_script = "uid://ceaglilesxsi4" + +[node name="PlaySound" type="Node" parent="Once/Explode" node_paths=PackedStringArray("player")] +script = ExtResource("25_4v6ww") +player = NodePath("../../../AudioStreamPlayer3D") +metadata/_custom_type_script = "uid://ddgf2mfdmqywc" + +[node name="Disable Physics" type="Node" parent="Once/Explode" node_paths=PackedStringArray("target")] +script = ExtResource("18_y5oe0") +target = NodePath("../../..") +configuration = SubResource("Resource_jvw7b") +metadata/_custom_type_script = "uid://cko3krhs7jgc4" + +[node name="Make Invisible" type="Node" parent="Once/Explode" node_paths=PackedStringArray("target")] +script = ExtResource("18_y5oe0") +target = NodePath("../../../Graphics") +configuration = SubResource("Resource_7k5l4") +metadata/_custom_type_script = "uid://cko3krhs7jgc4" + +[node name="RemoveNode2" type="Node" parent="Once/Explode" node_paths=PackedStringArray("target")] +script = ExtResource("8_nn7o5") +target = NodePath("../../../MoveTowards") +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="RemoveNode3" type="Node" parent="Once/Explode" node_paths=PackedStringArray("target")] +script = ExtResource("8_nn7o5") +target = NodePath("../../../Eatable") +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="RemoveNode4" type="Node" parent="Once/Explode" node_paths=PackedStringArray("target")] +script = ExtResource("8_nn7o5") +target = NodePath("../../../Bullet") +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="RemoveNode5" type="Node" parent="Once/Explode" node_paths=PackedStringArray("target")] +script = ExtResource("8_nn7o5") +target = NodePath("../../../Hitter") +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="PlayParticles" type="Node" parent="Once/Explode" node_paths=PackedStringArray("particles3D")] +script = ExtResource("20_jvw7b") +particles3D = NodePath("../../../Embers") +timeLine = ExtResource("10_pwhao") +metadata/_custom_type_script = "uid://dnstanbmrqthf" + +[node name="PlayParticles2" type="Node" parent="Once/Explode" node_paths=PackedStringArray("particles3D")] +script = ExtResource("20_jvw7b") +particles3D = NodePath("../../../Smoke") +timeLine = ExtResource("10_pwhao") +metadata/_custom_type_script = "uid://dnstanbmrqthf" + +[node name="TweenLight" type="Node" parent="Once/Explode" node_paths=PackedStringArray("light3D")] +script = ExtResource("18_7k5l4") +light3D = NodePath("../../../OmniLight3D") +tweenLightData = SubResource("Resource_4v6ww") +tweenType = SubResource("Resource_n40yf") +timeLine = ExtResource("10_pwhao") +metadata/_custom_type_script = "uid://bhn2p16isptba" + +[node name="Delay" type="Node" parent="Once/Explode"] +script = ExtResource("18_v1jac") +duration = 2.5 +timeLine = ExtResource("10_pwhao") +metadata/_custom_type_script = "uid://b2g7rycr0ouu4" + +[node name="RemoveNode" type="Node" parent="Once/Explode" node_paths=PackedStringArray("target")] +script = ExtResource("8_nn7o5") +target = NodePath("../../..") +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="Embers" type="GPUParticles3D" parent="."] +material_override = SubResource("StandardMaterial3D_2edn5") +emitting = false +amount = 400 +one_shot = true +explosiveness = 1.0 +process_material = SubResource("ParticleProcessMaterial_aw5bm") +draw_pass_1 = SubResource("QuadMesh_uk424") + +[node name="Smoke" type="GPUParticles3D" parent="."] +material_override = SubResource("StandardMaterial3D_tog56") +emitting = false +amount = 50 +lifetime = 2.0 +one_shot = true +explosiveness = 1.0 +draw_order = 3 +process_material = SubResource("ParticleProcessMaterial_qlssa") +draw_pass_1 = SubResource("SphereMesh_oenjg") + +[node name="Hitter" type="Node3D" parent="." node_paths=PackedStringArray("onHit")] +script = ExtResource("22_rmwtw") +onHit = NodePath("../Once") +metadata/_custom_type_script = "uid://bdqwss3wvwfvn" + +[node name="Activate" type="Node" parent="."] +script = ExtResource("6_xtohf") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="SetCollisionShape2" type="Node" parent="Activate" node_paths=PackedStringArray("shape3D")] +script = ExtResource("29_tog56") +shape3D = NodePath("../../CollisionShape3D") +disabled = true +metadata/_custom_type_script = "uid://cdspv8f8l6dgd" + +[node name="ActionSequence" type="Node" parent="Activate"] +script = ExtResource("7_pwhao") +metadata/_custom_type_script = "uid://ceaglilesxsi4" + +[node name="Parallel" type="Node" parent="Activate/ActionSequence"] +script = ExtResource("25_oenjg") +metadata/_custom_type_script = "uid://dy65lu5p2yf3j" + +[node name="AnimateTransform" type="Node" parent="Activate/ActionSequence/Parallel" node_paths=PackedStringArray("target")] +script = ExtResource("11_nn7o5") +animations = SubResource("Resource_qlssa") +target = NodePath("../../../../Graphics") +metadata/_custom_type_script = "uid://cbtqgliarexam" + +[node name="TweenLight2" type="Node" parent="Activate/ActionSequence/Parallel" node_paths=PackedStringArray("light3D")] +script = ExtResource("18_7k5l4") +light3D = NodePath("../../../../OmniLight3D") +tweenLightData = SubResource("Resource_oenjg") +tweenType = SubResource("Resource_n40yf") +timeLine = ExtResource("10_pwhao") +metadata/_custom_type_script = "uid://bhn2p16isptba" + +[node name="Delay" type="Node" parent="Activate/ActionSequence/Parallel"] +script = ExtResource("18_v1jac") +duration = 2.0 +timeLine = ExtResource("10_pwhao") +metadata/_custom_type_script = "uid://b2g7rycr0ouu4" + +[node name="SetCollisionShape" type="Node" parent="Activate/ActionSequence" node_paths=PackedStringArray("shape3D")] +script = ExtResource("29_tog56") +shape3D = NodePath("../../../CollisionShape3D") +metadata/_custom_type_script = "uid://cdspv8f8l6dgd" + +[editable path="Graphics"] diff --git a/Eat Da Rich/Bullet/bullet.bin b/Eat Da Rich/Bullet/bullet.bin new file mode 100644 index 0000000..64d2a8e Binary files /dev/null and b/Eat Da Rich/Bullet/bullet.bin differ diff --git a/Eat Da Rich/Bullet/bullet.gltf b/Eat Da Rich/Bullet/bullet.gltf new file mode 100644 index 0000000..c211974 --- /dev/null +++ b/Eat Da Rich/Bullet/bullet.gltf @@ -0,0 +1,142 @@ +{ + "asset":{ + "generator":"Khronos glTF Blender I/O v4.0.44", + "version":"2.0" + }, + "scene":0, + "scenes":[ + { + "name":"Scene", + "nodes":[ + 0 + ] + } + ], + "nodes":[ + { + "mesh":0, + "name":"Cylinder.008", + "rotation":[ + 0.5, + 0.4999999403953552, + 0.5, + 0.5000000596046448 + ] + } + ], + "materials":[ + { + "doubleSided":true, + "name":"Gold", + "pbrMetallicRoughness":{ + "baseColorTexture":{ + "index":0 + }, + "roughnessFactor":0.17659270763397217 + } + } + ], + "meshes":[ + { + "name":"Cylinder.010", + "primitives":[ + { + "attributes":{ + "POSITION":0, + "NORMAL":1, + "TEXCOORD_0":2 + }, + "indices":3, + "material":0 + } + ] + } + ], + "textures":[ + { + "sampler":0, + "source":0 + } + ], + "images":[ + { + "mimeType":"image/png", + "name":"Albedo", + "uri":"Albedo.png" + } + ], + "accessors":[ + { + "bufferView":0, + "componentType":5126, + "count":1176, + "max":[ + 0.10414507985115051, + 0.12950901687145233, + 0.10414507985115051 + ], + "min":[ + -0.10414507985115051, + -0.3038520812988281, + -0.10414507985115051 + ], + "type":"VEC3" + }, + { + "bufferView":1, + "componentType":5126, + "count":1176, + "type":"VEC3" + }, + { + "bufferView":2, + "componentType":5126, + "count":1176, + "type":"VEC2" + }, + { + "bufferView":3, + "componentType":5123, + "count":6600, + "type":"SCALAR" + } + ], + "bufferViews":[ + { + "buffer":0, + "byteLength":14112, + "byteOffset":0, + "target":34962 + }, + { + "buffer":0, + "byteLength":14112, + "byteOffset":14112, + "target":34962 + }, + { + "buffer":0, + "byteLength":9408, + "byteOffset":28224, + "target":34962 + }, + { + "buffer":0, + "byteLength":13200, + "byteOffset":37632, + "target":34963 + } + ], + "samplers":[ + { + "magFilter":9729, + "minFilter":9987 + } + ], + "buffers":[ + { + "byteLength":50832, + "uri":"bullet.bin" + } + ] +} diff --git a/Eat Da Rich/Bullet/bullet.gltf.import b/Eat Da Rich/Bullet/bullet.gltf.import new file mode 100644 index 0000000..ae33016 --- /dev/null +++ b/Eat Da Rich/Bullet/bullet.gltf.import @@ -0,0 +1,37 @@ +[remap] + +importer="scene" +importer_version=1 +type="PackedScene" +uid="uid://b8k2oy5fvldw3" +path="res://.godot/imported/bullet.gltf-c6b85274f2758078b7cc43728f5664a5.scn" + +[deps] + +source_file="res://Eat Da Rich/Bullet/bullet.gltf" +dest_files=["res://.godot/imported/bullet.gltf-c6b85274f2758078b7cc43728f5664a5.scn"] + +[params] + +nodes/root_type="" +nodes/root_name="" +nodes/apply_root_scale=true +nodes/root_scale=1.0 +nodes/import_as_skeleton_bones=false +nodes/use_node_type_suffixes=true +meshes/ensure_tangents=true +meshes/generate_lods=true +meshes/create_shadow_meshes=true +meshes/light_baking=1 +meshes/lightmap_texel_size=0.2 +meshes/force_disable_compression=false +skins/use_named_skins=true +animation/import=true +animation/fps=30 +animation/trimming=false +animation/remove_immutable_tracks=true +animation/import_rest_as_RESET=false +import_script/path="" +_subresources={} +gltf/naming_version=1 +gltf/embedded_image_handling=1 diff --git a/Eat Da Rich/Camera/Bullet.tres b/Eat Da Rich/Camera/Bullet.tres new file mode 100644 index 0000000..b39a3cc --- /dev/null +++ b/Eat Da Rich/Camera/Bullet.tres @@ -0,0 +1,7 @@ +[gd_resource type="Resource" script_class="SelectorFlag" load_steps=2 format=3 uid="uid://dwewmi0dp6ey8"] + +[ext_resource type="Script" uid="uid://dqb1n0314wgdn" path="res://addons/rokojori_action_library/Runtime/Selectors/SelectorFlag.cs" id="1_fnm63"] + +[resource] +script = ExtResource("1_fnm63") +metadata/_custom_type_script = "uid://dqb1n0314wgdn" diff --git a/Eat Da Rich/Camera/Player-Camera.tres b/Eat Da Rich/Camera/Player-Camera.tres new file mode 100644 index 0000000..b6f6926 --- /dev/null +++ b/Eat Da Rich/Camera/Player-Camera.tres @@ -0,0 +1,7 @@ +[gd_resource type="Resource" script_class="SelectorFlag" load_steps=2 format=3 uid="uid://4s3a8pd4h32k"] + +[ext_resource type="Script" uid="uid://dqb1n0314wgdn" path="res://addons/rokojori_action_library/Runtime/Selectors/SelectorFlag.cs" id="1_87leu"] + +[resource] +script = ExtResource("1_87leu") +metadata/_custom_type_script = "uid://dqb1n0314wgdn" diff --git a/Eat Da Rich/Camera/rainbow-quad.tscn b/Eat Da Rich/Camera/rainbow-quad.tscn new file mode 100644 index 0000000..f0bffc7 --- /dev/null +++ b/Eat Da Rich/Camera/rainbow-quad.tscn @@ -0,0 +1,32 @@ +[gd_scene load_steps=4 format=3 uid="uid://mqsbpvmytw5d"] + +[sub_resource type="QuadMesh" id="QuadMesh_pajta"] + +[sub_resource type="Shader" id="Shader_rxp6g"] +code = "// NOTE: Shader automatically converted from Godot Engine 4.4.stable.mono's StandardMaterial3D. + +shader_type spatial; +render_mode blend_mix, depth_draw_opaque, cull_back, unshaded; +#include \"res://addons/rokojori_action_library/Runtime/Shading/Library/Colors.gdshaderinc\" + +uniform float raw_VS_linear:hint_range(0,1) = 0.0; + +void fragment() +{ + vec3 hsl = vec3( UV.x, 1, 0.5 ); + vec3 rgb = HSLtoRGB( hsl ); + rgb = UV.y > 0.5 ? vec3( UV.x ) : rgb; + ALBEDO = mix( rgb, toLinear( rgb ), raw_VS_linear ); +} +" + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_okmvv"] +render_priority = 0 +shader = SubResource("Shader_rxp6g") +shader_parameter/raw_VS_linear = 1.0 + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("QuadMesh_pajta") +surface_material_override/0 = SubResource("ShaderMaterial_okmvv") diff --git a/Eat Da Rich/ChangeTime.cs b/Eat Da Rich/ChangeTime.cs new file mode 100644 index 0000000..215db5f --- /dev/null +++ b/Eat Da Rich/ChangeTime.cs @@ -0,0 +1,31 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class ChangeTime:Action + { + [Export] + public float duration; + + [Export] + public bool showInfo; + + protected override void _OnTrigger() + { + var edr = Unique.Get(); + + edr.ChangeTime( duration ); + + var timeInfo = Unique.Get(); + + var symbol = duration > 0 ? "+" : "-"; + var value = Mathf.Abs( duration )._F(); + timeInfo.Show( symbol + value, 2 ); + + } + } +} \ No newline at end of file diff --git a/Eat Da Rich/ChangeTime.cs.uid b/Eat Da Rich/ChangeTime.cs.uid new file mode 100644 index 0000000..6272acc --- /dev/null +++ b/Eat Da Rich/ChangeTime.cs.uid @@ -0,0 +1 @@ +uid://bbxlk0waamc63 diff --git a/Eat Da Rich/Eat-Da-Rich.tscn b/Eat Da Rich/Eat-Da-Rich.tscn index fe6af29..516d952 100644 --- a/Eat Da Rich/Eat-Da-Rich.tscn +++ b/Eat Da Rich/Eat-Da-Rich.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=265 format=4 uid="uid://diih6vhtswin0"] +[gd_scene load_steps=354 format=4 uid="uid://diih6vhtswin0"] [ext_resource type="Script" uid="uid://edtvlsps4bnc" path="res://addons/rokojori_action_library/Runtime/App/App.cs" id="1_6nyu1"] [ext_resource type="Script" uid="uid://cdweilvlwjucr" path="res://addons/rokojori_action_library/Runtime/Time/TimeLineManager.cs" id="2_4qvua"] @@ -12,6 +12,7 @@ [ext_resource type="Script" uid="uid://bbrqjqs6dc1hy" path="res://addons/rokojori_action_library/Runtime/VirtualCameras/MouseEditorCamera/MouseEditorCamera.cs" id="8_pfqfe"] [ext_resource type="Script" uid="uid://bu6np1t32bddg" path="res://addons/rokojori_action_library/Runtime/UI/UI.cs" id="9_kphl6"] [ext_resource type="Texture2D" uid="uid://bs16srd4audv6" path="res://Example Grass/Sky.jpg" id="10_4qvua"] +[ext_resource type="Resource" uid="uid://4s3a8pd4h32k" path="res://Eat Da Rich/Camera/Player-Camera.tres" id="10_x4tj2"] [ext_resource type="Script" uid="uid://crygvwrg2uvvk" path="res://addons/rokojori_action_library/Runtime/VirtualCameras/ThirdPersonCamera.cs" id="11_qgdfb"] [ext_resource type="Script" uid="uid://cqpri6uy5n2bg" path="res://addons/rokojori_action_library/Runtime/Procedural/Parametric/Plane/Plane.cs" id="11_x6j5d"] [ext_resource type="Resource" uid="uid://cb1ex73dycv6g" path="res://Eat Da Rich/UI/ui-settings-eat-da-rich.tres" id="12_fceet"] @@ -30,14 +31,19 @@ [ext_resource type="Script" uid="uid://drqb0pm5ub64g" path="res://addons/rokojori_action_library/Runtime/UI/Styling/UIColor.cs" id="18_5mg1i"] [ext_resource type="Script" uid="uid://deb6l5y6anje2" path="res://Eat Da Rich/UI/RichCounter.cs" id="18_poct0"] [ext_resource type="Script" uid="uid://b1sjdhnriaeg6" path="res://addons/rokojori_action_library/Runtime/Rendering/Assets/Foliage/FoliageRenderer.cs" id="19_etffn"] +[ext_resource type="Script" uid="uid://d3cmf8aos027i" path="res://Eat Da Rich/UI/GameTimer.cs" id="20_3py0x"] [ext_resource type="Script" uid="uid://c5ia5ogtg1725" path="res://addons/rokojori_action_library/Runtime/Rendering/Assets/Foliage/MeshInstanceFoliageData.cs" id="20_4yhx4"] [ext_resource type="Texture2D" uid="uid://c30nul6romace" path="res://addons/rokojori_action_library/Runtime/Procedural/Noise/RGB 3D Noise.png" id="20_f3dme"] +[ext_resource type="Script" uid="uid://dowx1alvptsrf" path="res://addons/rokojori_action_library/Runtime/Actions/UI/CountNumber.cs" id="21_5agaj"] +[ext_resource type="Script" uid="uid://ueakmd145ef5" path="res://Eat Da Rich/TimeInfo/TimeInfo.cs" id="21_mqc5t"] +[ext_resource type="FontFile" uid="uid://c4ynwh47dh5kh" path="res://Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf" id="21_qwpoi"] [ext_resource type="Script" uid="uid://c4hg6rvrmjm6j" path="res://addons/rokojori_action_library/Runtime/Rendering/Assets/Foliage/GPUFoliageShaderMaterial.cs" id="22_iycug"] [ext_resource type="Shader" uid="uid://c5kcgjfq2328r" path="res://addons/rokojori_action_library/Runtime/Procedural/Assets/Grass/Windy Grass Shader.gdshader" id="22_o1jte"] [ext_resource type="Shader" uid="uid://brk5g221ccd2x" path="res://addons/rokojori_action_library/Runtime/Rendering/Assets/Foliage/GPUFoliageShader.gdshader" id="23_etffn"] [ext_resource type="Texture2D" uid="uid://b6jgjwc6err4m" path="res://Eat Da Rich/Flower/textures/Untitled.png" id="23_lggnp"] [ext_resource type="PackedScene" uid="uid://dlci17rbcwpem" path="res://Eat Da Rich/Flower/flower2.gltf" id="24_e3ggm"] [ext_resource type="Resource" uid="uid://d05w143o644d3" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Axis/Right-Joystick Right +X.tres" id="26_7yqqi"] +[ext_resource type="CompositorEffect" uid="uid://dn6su87gys0st" path="res://Eat Da Rich/Post/GreyScale-Effect.tres" id="26_av8d2"] [ext_resource type="Resource" uid="uid://b16mtcrpm1f6i" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Axis/Right-Joystick Left -X.tres" id="27_bsxqg"] [ext_resource type="Script" uid="uid://bk5eoi53m08jh" path="res://addons/rokojori_action_library/Runtime/VirtualCameras/CameraTargetOffset.cs" id="27_etffn"] [ext_resource type="Resource" uid="uid://ck7woerh7mhp" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Axis/Right-Joystick Up -Y.tres" id="28_cnln1"] @@ -53,19 +59,34 @@ [ext_resource type="Script" uid="uid://doo8jwdet1hyi" path="res://addons/rokojori_action_library/Runtime/Selectors/FlagSelector.cs" id="33_pyf6b"] [ext_resource type="Resource" uid="uid://dbha8dmhxgm05" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Axis/Left-Joystick Up -Y.tres" id="33_u71my"] [ext_resource type="Script" uid="uid://dtes5ft8aakod" path="res://Eat Da Rich/Player.cs" id="34_rktx6"] +[ext_resource type="Resource" uid="uid://dxkq03u6dm8dq" path="res://Eat Da Rich/EatDaRich-Stats.tres" id="35_2vmg0"] +[ext_resource type="Resource" uid="uid://cvjlv07g2nkfw" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Buttons/Button B, PS Circle, Nin A.tres" id="38_gk1br"] +[ext_resource type="AudioStream" uid="uid://bb5pau6bjiish" path="res://Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg" id="39_4vnwn"] [ext_resource type="Script" uid="uid://wgn1jn36geuy" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/Gravity.cs" id="39_bsxqg"] [ext_resource type="Script" uid="uid://cbtqgliarexam" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/AnimateTransform.cs" id="39_iyku8"] +[ext_resource type="Script" uid="uid://ddgf2mfdmqywc" path="res://addons/rokojori_action_library/Runtime/Actions/Node3D/PlaySound.cs" id="39_sumir"] [ext_resource type="Script" uid="uid://bw5ivesxk1mgg" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/MoveAndSlide.cs" id="39_yfebj"] +[ext_resource type="AudioStream" uid="uid://cvcwmqdoexjdt" path="res://Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg" id="40_8bdu2"] +[ext_resource type="AudioStream" uid="uid://b6f56rp7p73b0" path="res://Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg" id="40_70kmi"] +[ext_resource type="Script" uid="uid://cwjgw33krmh11" path="res://addons/rokojori_action_library/Runtime/Time/Duration/BeatsDuration.cs" id="40_li0pw"] [ext_resource type="Script" uid="uid://be4oc7tgr55vu" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/TransformCurve.cs" id="40_yfebj"] [ext_resource type="Script" uid="uid://bqpiwp16h7614" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/TransformAnimations.cs" id="41_00et7"] +[ext_resource type="Script" uid="uid://dm4i0s67kio5v" path="res://addons/rokojori_action_library/Runtime/Actions/Visual/TweenFloat.cs" id="41_vmmw2"] +[ext_resource type="Script" uid="uid://egfirielic7f" path="res://Eat Da Rich/Pig/Shooter.cs" id="42_g0c7o"] [ext_resource type="Script" uid="uid://88u2lx0pssal" path="res://addons/rokojori_action_library/Runtime/Sensors/OnSensor.cs" id="42_iyku8"] +[ext_resource type="AudioStream" uid="uid://bml087280tmih" path="res://Eat Da Rich/Yell/yell-sounds-walking.ogg" id="42_oh5m0"] [ext_resource type="Script" uid="uid://bmauif3x7bnrf" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/Jump.cs" id="42_rmvdt"] +[ext_resource type="Script" uid="uid://4o4j41hwd4ro" path="res://addons/rokojori_action_library/Runtime/Actions/Audio/VelocityToSound.cs" id="43_kg5i0"] [ext_resource type="Resource" uid="uid://jvwwq6guhl77" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Buttons/Button X, PS Square, Nin Y.tres" id="43_pnk13"] [ext_resource type="Resource" uid="uid://dffkdky8iowro" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Buttons/Button A, PS Cross, Nin B.tres" id="43_yfebj"] [ext_resource type="Script" uid="uid://bsq280ixlepp2" path="res://addons/rokojori_action_library/Runtime/Interactions/Pointer.cs" id="44_00et7"] +[ext_resource type="Script" uid="uid://cuqknlygn6vxe" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/Actions/SetCharacterControllerAction.cs" id="45_av8d2"] +[ext_resource type="Script" uid="uid://c8l6m0r3ab8iw" path="res://addons/rokojori_action_library/Runtime/Actions/RemoveChildNodes.cs" id="45_vmmw2"] [ext_resource type="Script" uid="uid://bltwuqpvalu26" path="res://addons/rokojori_action_library/Runtime/Interactions/MultiRayCaster.cs" id="45_ymr4r"] [ext_resource type="Script" uid="uid://dqgh1ba6suibb" path="res://addons/rokojori_action_library/Runtime/Actions/OnTick.cs" id="46_2ck02"] [ext_resource type="Script" uid="uid://dc0my6o3j486k" path="res://Eat Da Rich/Eat/Eat.cs" id="46_bdedl"] +[ext_resource type="Script" uid="uid://n4etptbiekhq" path="res://addons/rokojori_action_library/Runtime/Actions/Visual/TweenPosition.cs" id="46_pdj1a"] +[ext_resource type="Script" uid="uid://lm37r3ycp1ls" path="res://addons/rokojori_action_library/Runtime/Animation/Tweens/TweenTimeCurve.cs" id="47_2vmg0"] [ext_resource type="Script" uid="uid://ddhwhwos5kkrm" path="res://addons/rokojori_action_library/Runtime/Time/Duration/SecondsDuration.cs" id="47_5we2d"] [ext_resource type="Script" uid="uid://cow7sv7kn0moo" path="res://addons/rokojori_action_library/Runtime/Actions/SetTick.cs" id="48_1pe2k"] [ext_resource type="Script" uid="uid://dyf6ee3ov3ran" path="res://addons/rokojori_action_library/Runtime/Actions/OnReady.cs" id="49_bpoiw"] @@ -80,9 +101,12 @@ [ext_resource type="Script" uid="uid://dnstanbmrqthf" path="res://addons/rokojori_action_library/Runtime/Actions/Node3D/PlayParticles.cs" id="55_w3lcy"] [ext_resource type="PackedScene" uid="uid://dktbrrlbx7wf1" path="res://Eat Da Rich/Pig/Pig.tscn" id="61_1pe2k"] [ext_resource type="Script" uid="uid://5yoyxyejk4ga" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/Conditions/CharacterIsJumping.cs" id="62_ptewd"] +[ext_resource type="AudioStream" uid="uid://dspdb85lv8cjv" path="res://Eat Da Rich/Pig/cash-sound.ogg" id="63_8bdu2"] +[ext_resource type="Resource" uid="uid://lhpe751yjb87" path="res://Eat Da Rich/Hitter/Hitter.tres" id="64_dqdqc"] [ext_resource type="Script" uid="uid://bk4ipnkoaer0b" path="res://Eat Da Rich/Pig/PigCreator.cs" id="65_t8ff4"] [ext_resource type="Script" uid="uid://dli1mflfmrf5b" path="res://Eat Da Rich/EatDaRichGame.cs" id="71_3gcmc"] [ext_resource type="Script" uid="uid://bfxttgik5fl2a" path="res://Eat Da Rich/SetState.cs" id="72_hgsyd"] +[ext_resource type="AudioStream" uid="uid://dnhrd21qw37ls" path="res://Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg" id="72_kg5i0"] [ext_resource type="AudioStream" uid="uid://b1lgoiqj3t18g" path="res://Eat Da Rich/Music/eat-da-rich-intro.ogg" id="74_14gp7"] [ext_resource type="Script" uid="uid://cyicertlwo4m0" path="res://addons/rokojori_action_library/Runtime/Actions/Audio/PlayMusic.cs" id="74_p1loy"] [ext_resource type="Script" uid="uid://cbk1j230s8i68" path="res://addons/rokojori_action_library/Runtime/Actions/Conditional/CoolDown.cs" id="75_fceet"] @@ -93,7 +117,17 @@ [ext_resource type="Resource" uid="uid://crx0sty5vqkdp" path="res://addons/rokojori_action_library/Runtime/Sensors/Default-Sensors/Gamepad/Buttons/Button Menu, PS Options, Nin Plus.tres" id="79_y3t2u"] [ext_resource type="Script" uid="uid://dj6f8ie4bmaim" path="res://addons/rokojori_action_library/Runtime/Actions/Conditional/ConditionalAction.cs" id="80_gt77o"] [ext_resource type="Script" uid="uid://bwah32ket1t43" path="res://addons/rokojori_action_library/Runtime/Actions/SetPauseState.cs" id="80_mdm5s"] +[ext_resource type="Script" uid="uid://cukvurx87647o" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/ImpactForces.cs" id="81_1xrt8"] [ext_resource type="Script" uid="uid://dra5iwcr6n546" path="res://Eat Da Rich/OnState.cs" id="84_mdm5s"] +[ext_resource type="Script" uid="uid://bbxlk0waamc63" path="res://Eat Da Rich/ChangeTime.cs" id="103_5admk"] +[ext_resource type="Script" uid="uid://cd4s5qc66ber3" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/AddImpactForce.cs" id="105_g0c7o"] +[ext_resource type="Script" uid="uid://c1ivlrrt71nwp" path="res://addons/rokojori_action_library/Runtime/VirtualCameras/Effects/PlayCameraEffect.cs" id="107_7xjro"] +[ext_resource type="Script" uid="uid://dc5l1dqn4yi13" path="res://addons/rokojori_action_library/Runtime/Interactions/CharacterController/ImpactForce.cs" id="107_i5yg2"] +[ext_resource type="Resource" uid="uid://pok7bfoksfmr" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Presets/White Blinking - Flash.tres" id="107_obo2d"] +[ext_resource type="Resource" uid="uid://uyuplc6hm25j" path="res://addons/rokojori_action_library/Runtime/VirtualCameras/Effects/Presets/ScreenShake.tres" id="108_x4tj2"] +[ext_resource type="Script" uid="uid://bnhnintao4qu0" path="res://addons/rokojori_action_library/Runtime/Animation/Shake/Shake.cs" id="109_or40o"] +[ext_resource type="Resource" uid="uid://c2wbn25rxynk8" path="res://addons/rokojori_action_library/Runtime/Animation/Shake/Presets/Small Impact Low FPS - Shake.tres" id="110_i5yg2"] +[ext_resource type="Script" uid="uid://b5uptbobryf55" path="res://Eat Da Rich/Hitter/Hitable.cs" id="111_or40o"] [sub_resource type="Resource" id="Resource_5mg1i"] script = ExtResource("14_gt77o") @@ -140,7 +174,7 @@ animationDuration = 0.0 animationOffset = 0.0 metadata/_custom_type_script = "uid://cnkyynboxg1qg" -[sub_resource type="LabelSettings" id="LabelSettings_ptewd"] +[sub_resource type="LabelSettings" id="LabelSettings_x4tj2"] font_size = 86 outline_size = 31 outline_color = Color(0.893742, 0.46536, 0.182374, 1) @@ -214,8 +248,11 @@ animationDuration = 0.0 animationOffset = 0.0 metadata/_custom_type_script = "uid://cnkyynboxg1qg" -[sub_resource type="LabelSettings" id="LabelSettings_w0ujm"] +[sub_resource type="LabelSettings" id="LabelSettings_o3wow"] font_size = 23 +font_color = Color(0.817335, 0.763919, 0.755875, 1) +outline_size = 7 +outline_color = Color(0.60985, 0.344317, 0.175916, 2) shadow_size = 0 [sub_resource type="Resource" id="Resource_sumir"] @@ -225,6 +262,43 @@ entries = [] context = "" metadata/_custom_type_script = "uid://bvj322mokkq63" +[sub_resource type="Gradient" id="Gradient_qcme1"] +offsets = PackedFloat32Array(0, 0.207602, 0.634503, 1) +colors = PackedColorArray(1, 1, 1, 1, 1, 0.745022, 0.329011, 1, 0.90732, 0.326343, 0.238848, 1, 1, 1, 1, 1) + +[sub_resource type="Resource" id="Resource_obo2d"] +script = ExtResource("18_5mg1i") +color = Color(0.825856, 0.825856, 0.825856, 1) +isAnimated = true +animationGradient = SubResource("Gradient_qcme1") +blendMode = 2 +animationDuration = 3.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://drqb0pm5ub64g" + +[sub_resource type="Resource" id="Resource_sjskj"] +script = ExtResource("14_gt77o") +value = 0.6205 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Gradient" id="Gradient_17fyn"] +offsets = PackedFloat32Array(0, 0.51462, 1) +colors = PackedColorArray(0.258824, 0.180392, 0.180392, 1, 0.377804, 0.141694, 0.141694, 1, 0.26, 0.1794, 0.1794, 1) + +[sub_resource type="Resource" id="Resource_i5yg2"] +script = ExtResource("18_5mg1i") +color = Color(0.337072, 0.168464, 6.23426e-05, 1) +isAnimated = true +animationGradient = SubResource("Gradient_17fyn") +blendMode = 1 +animationDuration = 1.3 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://drqb0pm5ub64g" + [sub_resource type="Resource" id="Resource_3py0x"] script = ExtResource("14_gt77o") value = 1.0 @@ -252,9 +326,9 @@ animationDuration = 0.0 animationOffset = 0.0 metadata/_custom_type_script = "uid://cnkyynboxg1qg" -[sub_resource type="LabelSettings" id="LabelSettings_qcme1"] +[sub_resource type="LabelSettings" id="LabelSettings_jqpvi"] font_size = 86 -font_color = Color(0.795016, 0.795016, 0.795016, 1) +font_color = Color(0.903719, 0.903719, 0.903719, 1) shadow_size = 0 [sub_resource type="Resource" id="Resource_pdj1a"] @@ -278,10 +352,28 @@ animationDuration = 1.0 animationOffset = 0.0 metadata/_custom_type_script = "uid://drqb0pm5ub64g" -[sub_resource type="Resource" id="Resource_p1loy"] +[sub_resource type="Resource" id="Resource_je7dj"] script = ExtResource("14_gt77o") value = 0.0 -unit = "pw" +unit = "%" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_0gb4f"] +script = ExtResource("14_gt77o") +value = 100.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_b0l1h"] +script = ExtResource("14_gt77o") +value = 0.0 +unit = "%" isAnimated = false animationDuration = 0.0 animationOffset = 0.0 @@ -289,8 +381,8 @@ metadata/_custom_type_script = "uid://cnkyynboxg1qg" [sub_resource type="Resource" id="Resource_m7r5a"] script = ExtResource("14_gt77o") -value = 50.0 -unit = "vw" +value = 1.0 +unit = "50pw" isAnimated = false animationDuration = 0.0 animationOffset = 0.0 @@ -314,7 +406,7 @@ animationDuration = 0.0 animationOffset = 0.0 metadata/_custom_type_script = "uid://cnkyynboxg1qg" -[sub_resource type="LabelSettings" id="LabelSettings_jdov2"] +[sub_resource type="LabelSettings" id="LabelSettings_d123h"] font_size = 23 shadow_size = 0 @@ -334,7 +426,7 @@ animationDuration = 0.0 animationOffset = 0.0 metadata/_custom_type_script = "uid://cnkyynboxg1qg" -[sub_resource type="LabelSettings" id="LabelSettings_n8ng5"] +[sub_resource type="LabelSettings" id="LabelSettings_lc2f1"] font_size = 23 shadow_size = 0 @@ -345,6 +437,197 @@ entries = [] context = "" metadata/_custom_type_script = "uid://bvj322mokkq63" +[sub_resource type="Resource" id="Resource_2suod"] +script = ExtResource("14_gt77o") +value = 100.0 +unit = "%" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_kmub4"] +script = ExtResource("14_gt77o") +value = 100.0 +unit = "pw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_c24ga"] +script = ExtResource("14_gt77o") +value = 2.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_6rl5x"] +script = ExtResource("14_gt77o") +value = 2.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_0ifoo"] +script = ExtResource("14_gt77o") +value = 0.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="LabelSettings" id="LabelSettings_sjqj5"] +font_size = 23 +shadow_size = 0 + +[sub_resource type="Resource" id="Resource_4wj5s"] +script = ExtResource("17_14gp7") +en = "Time" +entries = [] +context = "" +metadata/_custom_type_script = "uid://bvj322mokkq63" + +[sub_resource type="Resource" id="Resource_0w51s"] +script = ExtResource("14_gt77o") +value = 2.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_y33t4"] +script = ExtResource("14_gt77o") +value = 8.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="LabelSettings" id="LabelSettings_2suod"] +font_size = 23 +shadow_size = 0 + +[sub_resource type="Resource" id="Resource_018ni"] +script = ExtResource("17_14gp7") +en = "01:52" +entries = [] +context = "" +metadata/_custom_type_script = "uid://bvj322mokkq63" + +[sub_resource type="Resource" id="Resource_dckpy"] +script = ExtResource("14_gt77o") +value = 2.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_exbxd"] +script = ExtResource("14_gt77o") +value = 2.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_c16vp"] +script = ExtResource("14_gt77o") +value = 100.0 +unit = "pw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_0qt84"] +script = ExtResource("14_gt77o") +value = 4.8565 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_lc2f1"] +script = ExtResource("14_gt77o") +value = 0.0 +unit = "%" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_sjqj5"] +script = ExtResource("14_gt77o") +value = 100.0 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_p1loy"] +script = ExtResource("14_gt77o") +value = 50.0 +unit = "%" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_oxl6f"] +script = ExtResource("14_gt77o") +value = 1.964 +unit = "50pw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="LabelSettings" id="LabelSettings_kmub4"] +font_size = 66 +shadow_size = 0 + +[sub_resource type="Resource" id="Resource_c2w1r"] +script = ExtResource("17_14gp7") +en = "Game Over" +entries = [] +context = "" +metadata/_custom_type_script = "uid://bvj322mokkq63" + +[sub_resource type="Resource" id="Resource_tigq7"] +script = ExtResource("14_gt77o") +value = 2.849 +unit = "em" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="LabelSettings" id="LabelSettings_c24ga"] +font_size = 23 +shadow_size = 0 + +[sub_resource type="LabelSettings" id="LabelSettings_6rl5x"] +font_size = 23 +shadow_size = 0 + +[sub_resource type="Resource" id="Resource_l73xv"] +script = ExtResource("47_5we2d") +seconds = 2.0 +timeLine = ExtResource("4_vrtgc") +metadata/_custom_type_script = "uid://ddhwhwos5kkrm" + [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_tn541"] panorama = ExtResource("10_4qvua") @@ -394,8 +677,8 @@ effect_callback_type = 4 needs_motion_vectors = false needs_normal_roughness = false script = ExtResource("14_j4mpb") -amount = 0.7484 -radius = 0.4569 +amount = 0.8168 +radius = 0.5159 power = 1.0 offset = 0.9905 colorTop = Color(0, 0, 0, 0) @@ -415,7 +698,115 @@ smearingFrames = 4.0 metadata/_custom_type_script = "uid://bjxayoleund83" [sub_resource type="Compositor" id="Compositor_n253e"] -compositor_effects = Array[CompositorEffect]([SubResource("CompositorEffect_ls5wq"), SubResource("CompositorEffect_1altk")]) +compositor_effects = Array[CompositorEffect]([SubResource("CompositorEffect_ls5wq"), SubResource("CompositorEffect_1altk"), ExtResource("26_av8d2")]) + +[sub_resource type="Resource" id="Resource_biven"] +script = ExtResource("77_w0ujm") +processEnabled = 2 +inputEnabled = 2 +physicsEnabled = 2 +signalsEnabled = 2 +visible = 1 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Resource" id="Resource_dqdqc"] +script = ExtResource("77_w0ujm") +processEnabled = 2 +inputEnabled = 2 +physicsEnabled = 2 +signalsEnabled = 2 +visible = 0 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Resource" id="Resource_5admk"] +script = ExtResource("77_w0ujm") +processEnabled = 2 +inputEnabled = 2 +physicsEnabled = 2 +signalsEnabled = 2 +visible = 1 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Resource" id="Resource_tadwr"] +script = ExtResource("77_w0ujm") +processEnabled = 2 +inputEnabled = 2 +physicsEnabled = 2 +signalsEnabled = 2 +visible = 0 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Resource" id="Resource_pnk13"] +script = ExtResource("47_5we2d") +seconds = 1.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://ddhwhwos5kkrm" + +[sub_resource type="Resource" id="Resource_tdpnl"] +script = ExtResource("47_5we2d") +seconds = 0.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://ddhwhwos5kkrm" + +[sub_resource type="Resource" id="Resource_itmbv"] +script = ExtResource("47_5we2d") +seconds = 1.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://ddhwhwos5kkrm" + +[sub_resource type="Resource" id="Resource_icnot"] +script = ExtResource("47_5we2d") +seconds = 0.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://ddhwhwos5kkrm" + +[sub_resource type="Resource" id="Resource_mxng4"] +script = ExtResource("47_5we2d") +seconds = 0.5 +metadata/_custom_type_script = "uid://ddhwhwos5kkrm" + +[sub_resource type="Curve" id="Curve_nll50"] +_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0] +point_count = 2 + +[sub_resource type="Resource" id="Resource_oh5m0"] +script = ExtResource("77_w0ujm") +processEnabled = 2 +inputEnabled = 2 +physicsEnabled = 2 +signalsEnabled = 2 +visible = 1 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Resource" id="Resource_kg5i0"] +script = ExtResource("77_w0ujm") +processEnabled = 2 +inputEnabled = 2 +physicsEnabled = 2 +signalsEnabled = 2 +visible = 0 +setProcessMode = false +processMode = 0 +metadata/_custom_type_script = "uid://dcerk2bxdjmxr" + +[sub_resource type="Curve" id="Curve_obo2d"] +_data = [Vector2(0, 0), 0.0, 1.0, 0, 1, Vector2(1, 1), 1.0, 0.0, 1, 0] +point_count = 2 + +[sub_resource type="Resource" id="Resource_nll50"] +script = ExtResource("47_2vmg0") +duration = 0.1 +curve = SubResource("Curve_obo2d") [sub_resource type="Resource" id="Resource_iyku8"] script = ExtResource("12_x6j5d") @@ -478,6 +869,31 @@ mode = 0 iteratorType = 9 metadata/_custom_type_script = "uid://doo8jwdet1hyi" +[sub_resource type="SphereShape3D" id="SphereShape3D_x4tj2"] +radius = 0.66 + +[sub_resource type="Resource" id="Resource_6xetp"] +script = ExtResource("33_pyf6b") +flag = [ExtResource("64_dqdqc")] +mode = 0 +iteratorType = 9 +metadata/_custom_type_script = "uid://doo8jwdet1hyi" + +[sub_resource type="Curve" id="Curve_2vmg0"] +_limits = [0.0, 1.0, 0.0, 8.0] +_data = [Vector2(0, 0), 0.0, 0.0, 0, 1, Vector2(2.20408, 0), 0.0, 0.0, 0, 0, Vector2(8, 0.410526), 0.0269006, 0.0, 0, 0] +point_count = 3 + +[sub_resource type="Curve" id="Curve_vmmw2"] +_limits = [0.0, 2.0, 0.0, 8.0] +_data = [Vector2(0, 0.357895), 0.0, 0.121053, 0, 0, Vector2(8, 1.89474), 0.0, 0.0, 0, 0] +point_count = 2 + +[sub_resource type="Resource" id="Resource_o3wow"] +script = ExtResource("12_x6j5d") +frames = 30.0 +metadata/_custom_type_script = "uid://lhuuedx87rem" + [sub_resource type="Resource" id="Resource_6c5hc"] script = ExtResource("32_dgrd7") directionProcessing = 1 @@ -688,6 +1104,20 @@ curves = [SubResource("Resource_g0c7o"), SubResource("Resource_2vmg0")] timeline = ExtResource("3_cnln1") metadata/_custom_type_script = "uid://bqpiwp16h7614" +[sub_resource type="Resource" id="Resource_or40o"] +script = ExtResource("40_li0pw") +beats = 0.5 +bpm = 64.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://cwjgw33krmh11" + +[sub_resource type="Resource" id="Resource_17fyn"] +script = ExtResource("40_li0pw") +beats = 1.0 +bpm = 64.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://cwjgw33krmh11" + [sub_resource type="Curve" id="Curve_n8ng5"] _limits = [0.0, 2.0, 0.0, 1.0] _data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.0810811, 1.45263), 0.0, 0.0, 0, 0, Vector2(0.243243, 0.694737), 0.0, 0.0, 0, 0, Vector2(0.445946, 1.15789), 0.0, 0.0, 0, 0, Vector2(0.666667, 0.926316), 0.0, 0.0, 0, 0, Vector2(1, 0.989474), 0.0, 0.0, 0, 0] @@ -826,83 +1256,66 @@ seconds = 0.4 timeLine = ExtResource("3_cnln1") metadata/_custom_type_script = "uid://ddhwhwos5kkrm" -[sub_resource type="Resource" id="Resource_biven"] -script = ExtResource("77_w0ujm") -processEnabled = 2 -inputEnabled = 2 -physicsEnabled = 2 -signalsEnabled = 2 -visible = 1 -setProcessMode = false -processMode = 0 -metadata/_custom_type_script = "uid://dcerk2bxdjmxr" +[sub_resource type="Resource" id="Resource_7xjro"] +script = ExtResource("40_li0pw") +beats = 0.5 +bpm = 64.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://cwjgw33krmh11" -[sub_resource type="Resource" id="Resource_dqdqc"] -script = ExtResource("77_w0ujm") -processEnabled = 2 -inputEnabled = 2 -physicsEnabled = 2 -signalsEnabled = 2 -visible = 0 -setProcessMode = false -processMode = 0 -metadata/_custom_type_script = "uid://dcerk2bxdjmxr" +[sub_resource type="Resource" id="Resource_x4tj2"] +script = ExtResource("40_li0pw") +beats = 1.0 +bpm = 64.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://cwjgw33krmh11" -[sub_resource type="Resource" id="Resource_5admk"] -script = ExtResource("77_w0ujm") -processEnabled = 2 -inputEnabled = 2 -physicsEnabled = 2 -signalsEnabled = 2 -visible = 1 -setProcessMode = false -processMode = 0 -metadata/_custom_type_script = "uid://dcerk2bxdjmxr" +[sub_resource type="Resource" id="Resource_d123h"] +script = ExtResource("40_li0pw") +beats = 0.5 +bpm = 64.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://cwjgw33krmh11" -[sub_resource type="Resource" id="Resource_tadwr"] -script = ExtResource("77_w0ujm") -processEnabled = 2 -inputEnabled = 2 -physicsEnabled = 2 -signalsEnabled = 2 -visible = 0 -setProcessMode = false -processMode = 0 -metadata/_custom_type_script = "uid://dcerk2bxdjmxr" +[sub_resource type="Resource" id="Resource_jqpvi"] +script = ExtResource("40_li0pw") +beats = 2.0 +bpm = 64.0 +timeLine = ExtResource("3_cnln1") +metadata/_custom_type_script = "uid://cwjgw33krmh11" -[sub_resource type="Resource" id="Resource_pnk13"] +[sub_resource type="Resource" id="Resource_mf3or"] script = ExtResource("47_5we2d") seconds = 1.0 timeLine = ExtResource("3_cnln1") metadata/_custom_type_script = "uid://ddhwhwos5kkrm" -[sub_resource type="Resource" id="Resource_tdpnl"] +[sub_resource type="Curve" id="Curve_17fyn"] +_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.108499, 0.447992), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0] +point_count = 3 + +[sub_resource type="Resource" id="Resource_3ty3n"] script = ExtResource("47_5we2d") -seconds = 0.0 +seconds = 0.5 timeLine = ExtResource("3_cnln1") metadata/_custom_type_script = "uid://ddhwhwos5kkrm" -[sub_resource type="Resource" id="Resource_oh5m0"] -script = ExtResource("77_w0ujm") -processEnabled = 2 -inputEnabled = 2 -physicsEnabled = 2 -signalsEnabled = 2 -visible = 1 -setProcessMode = false -processMode = 0 -metadata/_custom_type_script = "uid://dcerk2bxdjmxr" +[sub_resource type="Curve" id="Curve_sjqj5"] +_data = [Vector2(0, 1), 0.0, -1.76036, 0, 0, Vector2(1, 0), -0.108613, 0.0, 0, 0] +point_count = 2 -[sub_resource type="Resource" id="Resource_kg5i0"] -script = ExtResource("77_w0ujm") -processEnabled = 2 -inputEnabled = 2 -physicsEnabled = 2 -signalsEnabled = 2 -visible = 0 -setProcessMode = false -processMode = 0 -metadata/_custom_type_script = "uid://dcerk2bxdjmxr" +[sub_resource type="Curve" id="Curve_kmub4"] +_data = [Vector2(0, 1), 0.0, -1.41971, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] +point_count = 2 + +[sub_resource type="Resource" id="Resource_7onep"] +script = ExtResource("107_i5yg2") +forceOverTime = SubResource("Curve_sjqj5") +maxForce = 1000.0 +freezeOverTime = SubResource("Curve_kmub4") +duration = 1.0 +direction = Vector3(0, 0, 0) +metadata/_custom_type_script = "uid://dc5l1dqn4yi13" [sub_resource type="Curve" id="Curve_as125"] _data = [Vector2(0, 0), 0.0, 1.0, 0, 1, Vector2(1, 1), 1.0, 0.0, 1, 0] @@ -1491,9 +1904,9 @@ occupancyVarianceScale = 1.0 occupancyVarianceOffset = Vector2(0, 0) metadata/_custom_type_script = "uid://c5ia5ogtg1725" -[sub_resource type="ShaderMaterial" id="ShaderMaterial_sumir"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_0ifoo"] shader = ExtResource("23_etffn") -shader_parameter/cameraPosition = Vector3(7.37586, 3.17686, 4.49711) +shader_parameter/cameraPosition = Vector3(-4.68184, 2.40011, -1.7677) shader_parameter/yaw = 0.0 shader_parameter/cellSize = 1.433 shader_parameter/width = 168 @@ -1528,9 +1941,9 @@ shader_parameter/mapSize = Vector2(1024, 1024) shader_parameter/mapCenter = Vector2(0, 0) script = ExtResource("22_iycug") -[sub_resource type="ShaderMaterial" id="ShaderMaterial_li0pw"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_0w51s"] shader = ExtResource("23_etffn") -shader_parameter/cameraPosition = Vector3(7.37586, 3.17686, 4.49711) +shader_parameter/cameraPosition = Vector3(-4.68184, 2.40011, -1.7677) shader_parameter/yaw = 0.0 shader_parameter/cellSize = 8.0 shader_parameter/width = 24 @@ -1649,9 +2062,9 @@ _surfaces = [{ blend_shape_mode = 0 shadow_mesh = SubResource("ArrayMesh_swnqr") -[sub_resource type="ShaderMaterial" id="ShaderMaterial_4vnwn"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_4wj5s"] shader = ExtResource("23_etffn") -shader_parameter/cameraPosition = Vector3(7.37586, 3.17686, 4.49711) +shader_parameter/cameraPosition = Vector3(-4.68184, 2.40011, -1.7677) shader_parameter/yaw = 0.0 shader_parameter/cellSize = 2.0 shader_parameter/width = 60 @@ -1687,13 +2100,15 @@ shader_parameter/mapCenter = Vector2(0, 0) script = ExtResource("22_iycug") [sub_resource type="Gradient" id="Gradient_ls5wq"] -offsets = PackedFloat32Array(0.616935, 1) +offsets = PackedFloat32Array(0.65, 0.9625) colors = PackedColorArray(0.255115, 0.37, 0.0703, 1, 0.384593, 0.255528, 0.255528, 1) [sub_resource type="FastNoiseLite" id="FastNoiseLite_n253e"] -frequency = 0.0527 +frequency = 0.0034 +fractal_gain = 0.808 [sub_resource type="NoiseTexture2D" id="NoiseTexture2D_0ylx5"] +seamless = true color_ramp = SubResource("Gradient_ls5wq") noise = SubResource("FastNoiseLite_n253e") @@ -1754,7 +2169,7 @@ realtimeTimeline = ExtResource("4_vrtgc") [node name="SensorManagerSetup" type="Node" parent="App" node_paths=PackedStringArray("autoScanForSensors")] process_mode = 3 script = ExtResource("3_7yqqi") -autoScanForSensors = [NodePath("../../Player")] +autoScanForSensors = [NodePath("../../Player"), NodePath("../../Game")] metadata/_custom_type_script = "uid://irn5l5pgo176" [node name="NetworkManager" type="Node" parent="App"] @@ -1776,6 +2191,7 @@ active = true script = ExtResource("7_22de7") camera = NodePath("../../../Player/ThirdPersonCamera") priority = 1.0 +flags = [ExtResource("10_x4tj2")] metadata/_custom_type_script = "uid://cgrena1xtc07f" [node name="MouseEditorCamera" type="Node3D" parent="App"] @@ -1813,14 +2229,13 @@ metadata/_custom_type_script = "uid://c2hicupu28nbi" [node name="UIText2" type="Label" parent="App/UI/Title Screen"] layout_mode = 0 -offset_left = 347.0 +offset_left = 575.5 offset_top = 130.471 -offset_right = 805.0 +offset_right = 576.5 offset_bottom = 282.471 -pivot_offset = Vector2(229, 76) +pivot_offset = Vector2(0.5, 76) theme_override_fonts/font = ExtResource("15_mdm5s") -text = "Eat Da Rich" -label_settings = SubResource("LabelSettings_ptewd") +label_settings = SubResource("LabelSettings_x4tj2") script = ExtResource("16_5mg1i") locale = SubResource("Resource_mdm5s") fontSize = SubResource("Resource_li0pw") @@ -1833,16 +2248,18 @@ metadata/_custom_type_script = "uid://rqs2m0u6yvvf" [node name="UIText" type="Label" parent="App/UI/Title Screen"] layout_mode = 0 -offset_left = 515.5 +offset_left = 575.5 offset_top = 282.471 -offset_right = 636.5 +offset_right = 576.5 offset_bottom = 323.471 -pivot_offset = Vector2(60.5, 20.5) +pivot_offset = Vector2(0.5, 20.5) theme_override_fonts/font = ExtResource("15_mdm5s") -text = "press to play" -label_settings = SubResource("LabelSettings_w0ujm") +label_settings = SubResource("LabelSettings_o3wow") script = ExtResource("16_5mg1i") locale = SubResource("Resource_sumir") +fontColor = SubResource("Resource_obo2d") +outlineSize = SubResource("Resource_sjskj") +outlineColor = SubResource("Resource_i5yg2") lineWrap = 2 metadata/_custom_type_script = "uid://rqs2m0u6yvvf" @@ -1859,14 +2276,13 @@ metadata/_custom_type_script = "uid://c2hicupu28nbi" [node name="Paused" type="Label" parent="App/UI/Pause Screen"] layout_mode = 0 -offset_left = 459.0 +offset_left = 575.5 offset_top = 248.0 -offset_right = 693.0 +offset_right = 576.5 offset_bottom = 400.0 -pivot_offset = Vector2(117, 76) +pivot_offset = Vector2(0.5, 76) theme_override_fonts/font = ExtResource("15_mdm5s") -text = "paused" -label_settings = SubResource("LabelSettings_qcme1") +label_settings = SubResource("LabelSettings_jqpvi") script = ExtResource("16_5mg1i") locale = SubResource("Resource_pdj1a") fontSize = SubResource("Resource_li0pw") @@ -1877,9 +2293,11 @@ metadata/_custom_type_script = "uid://rqs2m0u6yvvf" [node name="Playing Screen" type="Control" parent="App/UI"] visible = false anchors_preset = 0 -offset_right = 599.04 +offset_right = 1152.0 offset_bottom = 64.04 script = ExtResource("13_y3t2u") +horizontalAlignment = SubResource("Resource_je7dj") +width = SubResource("Resource_0gb4f") metadata/_custom_type_script = "uid://c2hicupu28nbi" [node name="Rich Counter" type="Control" parent="App/UI/Playing Screen"] @@ -1889,7 +2307,7 @@ offset_bottom = 64.04 pivot_offset = Vector2(299.52, 32.02) script = ExtResource("13_y3t2u") layout = 1 -horizontalAlignment = SubResource("Resource_p1loy") +horizontalAlignment = SubResource("Resource_b0l1h") width = SubResource("Resource_m7r5a") marginLeft = SubResource("Resource_4ptvs") marginTop = SubResource("Resource_3gcmc") @@ -1899,21 +2317,20 @@ metadata/_custom_type_script = "uid://c2hicupu28nbi" layout_mode = 0 offset_left = 23.04 offset_top = 23.04 -offset_right = 69.04 +offset_right = 24.04 offset_bottom = 64.04 -pivot_offset = Vector2(23, 20.5) +pivot_offset = Vector2(0.5, 20.5) theme_override_fonts/font = ExtResource("15_mdm5s") -text = "Rich" -label_settings = SubResource("LabelSettings_jdov2") +label_settings = SubResource("LabelSettings_d123h") script = ExtResource("16_5mg1i") locale = SubResource("Resource_5uce3") metadata/_custom_type_script = "uid://rqs2m0u6yvvf" [node name="UIRegion" type="Control" parent="App/UI/Playing Screen/Rich Counter"] anchors_preset = 0 -offset_left = 69.04 +offset_left = 24.04 offset_top = 43.54 -offset_right = 92.2989 +offset_right = 47.2989 offset_bottom = 43.54 pivot_offset = Vector2(11.6294, 0) script = ExtResource("13_y3t2u") @@ -1922,14 +2339,13 @@ metadata/_custom_type_script = "uid://c2hicupu28nbi" [node name="Rich Counter" type="Label" parent="App/UI/Playing Screen/Rich Counter"] layout_mode = 0 -offset_left = 92.2989 +offset_left = 47.2989 offset_top = 23.04 -offset_right = 104.299 +offset_right = 48.2989 offset_bottom = 64.04 -pivot_offset = Vector2(6, 20.5) +pivot_offset = Vector2(0.5, 20.5) theme_override_fonts/font = ExtResource("15_mdm5s") -text = "0" -label_settings = SubResource("LabelSettings_n8ng5") +label_settings = SubResource("LabelSettings_lc2f1") script = ExtResource("16_5mg1i") locale = SubResource("Resource_qcme1") metadata/_custom_type_script = "uid://rqs2m0u6yvvf" @@ -1939,11 +2355,408 @@ script = ExtResource("18_poct0") counter = NodePath("../Rich Counter/Rich Counter") metadata/_custom_type_script = "uid://deb6l5y6anje2" +[node name="Timer" type="Control" parent="App/UI/Playing Screen"] +anchors_preset = 0 +offset_left = -23.04 +offset_right = 1152.0 +offset_bottom = 23.04 +pivot_offset = Vector2(587.52, 11.52) +script = ExtResource("13_y3t2u") +horizontalAlignment = SubResource("Resource_2suod") +width = SubResource("Resource_kmub4") +marginTop = SubResource("Resource_c24ga") +marginRight = SubResource("Resource_6rl5x") +position = 2 +right = SubResource("Resource_0ifoo") +metadata/_custom_type_script = "uid://c2hicupu28nbi" + +[node name="Time Label" type="Label" parent="App/UI/Playing Screen/Timer"] +layout_mode = 0 +offset_left = 1081.88 +offset_top = 23.04 +offset_right = 1082.88 +offset_bottom = 64.04 +pivot_offset = Vector2(0.5, 20.5) +theme_override_fonts/font = ExtResource("15_mdm5s") +label_settings = SubResource("LabelSettings_sjqj5") +script = ExtResource("16_5mg1i") +locale = SubResource("Resource_4wj5s") +position = 2 +top = SubResource("Resource_0w51s") +right = SubResource("Resource_y33t4") +metadata/_custom_type_script = "uid://rqs2m0u6yvvf" + +[node name="Timer" type="Label" parent="App/UI/Playing Screen/Timer"] +layout_mode = 0 +offset_left = 1151.0 +offset_top = 23.04 +offset_right = 1152.0 +offset_bottom = 64.04 +pivot_offset = Vector2(0.5, 20.5) +theme_override_fonts/font = ExtResource("15_mdm5s") +label_settings = SubResource("LabelSettings_2suod") +script = ExtResource("16_5mg1i") +locale = SubResource("Resource_018ni") +position = 2 +top = SubResource("Resource_dckpy") +right = SubResource("Resource_exbxd") +metadata/_custom_type_script = "uid://rqs2m0u6yvvf" + +[node name="GameTimer" type="Node" parent="App/UI/Playing Screen/Timer" node_paths=PackedStringArray("timer")] +script = ExtResource("20_3py0x") +timer = NodePath("../Timer") +metadata/_custom_type_script = "uid://d3cmf8aos027i" + +[node name="UIRegion" type="Control" parent="App/UI/Playing Screen"] +anchors_preset = 0 +offset_right = 1152.0 +offset_bottom = 55.9469 +pivot_offset = Vector2(576, 27.9734) +script = ExtResource("13_y3t2u") +width = SubResource("Resource_c16vp") +marginTop = SubResource("Resource_0qt84") +position = 2 +metadata/_custom_type_script = "uid://c2hicupu28nbi" + +[node name="Outro Screen" type="Control" parent="App/UI"] +visible = false +anchors_preset = 0 +offset_right = 1152.0 +offset_bottom = 180.04 +script = ExtResource("13_y3t2u") +horizontalAlignment = SubResource("Resource_lc2f1") +width = SubResource("Resource_sjqj5") +metadata/_custom_type_script = "uid://c2hicupu28nbi" + +[node name="Rich Counter" type="Control" parent="App/UI/Outro Screen"] +anchors_preset = 0 +offset_right = 1154.3 +offset_bottom = 180.04 +pivot_offset = Vector2(577.15, 90.02) +script = ExtResource("13_y3t2u") +layout = 1 +horizontalAlignment = SubResource("Resource_p1loy") +width = SubResource("Resource_oxl6f") +marginLeft = SubResource("Resource_4ptvs") +marginTop = SubResource("Resource_3gcmc") +metadata/_custom_type_script = "uid://c2hicupu28nbi" + +[node name="Rich Label" type="Label" parent="App/UI/Outro Screen/Rich Counter"] +layout_mode = 0 +offset_left = 588.172 +offset_top = 23.04 +offset_right = 589.172 +offset_bottom = 139.04 +pivot_offset = Vector2(0.5, 58) +theme_override_fonts/font = ExtResource("15_mdm5s") +label_settings = SubResource("LabelSettings_kmub4") +script = ExtResource("16_5mg1i") +locale = SubResource("Resource_c2w1r") +fontSize = SubResource("Resource_tigq7") +metadata/_custom_type_script = "uid://rqs2m0u6yvvf" + +[node name="UIRegion2" type="Control" parent="App/UI/Outro Screen/Rich Counter"] +anchors_preset = 0 +offset_left = 564.413 +offset_top = 159.54 +offset_right = 587.672 +offset_bottom = 159.54 +pivot_offset = Vector2(11.6295, 0) +script = ExtResource("13_y3t2u") +width = SubResource("Resource_ptewd") +lineWrap = 2 +metadata/_custom_type_script = "uid://c2hicupu28nbi" + +[node name="Rich Label2" type="Label" parent="App/UI/Outro Screen/Rich Counter"] +layout_mode = 0 +offset_left = 587.672 +offset_top = 139.04 +offset_right = 588.672 +offset_bottom = 180.04 +pivot_offset = Vector2(0.5, 20.5) +theme_override_fonts/font = ExtResource("15_mdm5s") +label_settings = SubResource("LabelSettings_c24ga") +script = ExtResource("16_5mg1i") +locale = SubResource("Resource_5uce3") +metadata/_custom_type_script = "uid://rqs2m0u6yvvf" + +[node name="UIRegion" type="Control" parent="App/UI/Outro Screen/Rich Counter"] +anchors_preset = 0 +offset_left = 588.672 +offset_top = 159.54 +offset_right = 611.931 +offset_bottom = 159.54 +pivot_offset = Vector2(11.6295, 0) +script = ExtResource("13_y3t2u") +width = SubResource("Resource_ptewd") +metadata/_custom_type_script = "uid://c2hicupu28nbi" + +[node name="Rich Counter" type="Label" parent="App/UI/Outro Screen/Rich Counter"] +layout_mode = 0 +offset_left = 611.931 +offset_top = 139.04 +offset_right = 612.931 +offset_bottom = 180.04 +pivot_offset = Vector2(0.5, 20.5) +theme_override_fonts/font = ExtResource("15_mdm5s") +label_settings = SubResource("LabelSettings_6rl5x") +script = ExtResource("16_5mg1i") +locale = SubResource("Resource_qcme1") +metadata/_custom_type_script = "uid://rqs2m0u6yvvf" + +[node name="CountNumber" type="Node" parent="App/UI/Outro Screen" node_paths=PackedStringArray("target")] +script = ExtResource("21_5agaj") +target = NodePath("../Rich Counter/Rich Counter") +duration = SubResource("Resource_l73xv") +metadata/_custom_type_script = "uid://dowx1alvptsrf" + [node name="WorldEnvironment" type="WorldEnvironment" parent="App"] environment = SubResource("Environment_qgdfb") camera_attributes = SubResource("CameraAttributesPractical_o1jte") compositor = SubResource("Compositor_n253e") +[node name="Pause Resume" type="Node" parent="App" node_paths=PackedStringArray("onStart", "sceneCondition")] +process_mode = 3 +script = ExtResource("42_iyku8") +sensor = ExtResource("79_y3t2u") +onStart = NodePath("SetPauseState") +sceneCondition = NodePath("../../Game/Is Playing") +metadata/_custom_type_script = "uid://88u2lx0pssal" + +[node name="SetPauseState" type="Node" parent="App/Pause Resume" node_paths=PackedStringArray("onPausing", "onResuming")] +script = ExtResource("80_mdm5s") +mode = 2 +onPausing = NodePath("../On Pausing") +onResuming = NodePath("../On Resuming") +metadata/_custom_type_script = "uid://bwah32ket1t43" + +[node name="On Pausing" type="Node" parent="App/Pause Resume"] +script = ExtResource("50_n120u") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="Solo Pausing UI" type="Node" parent="App/Pause Resume/On Pausing" node_paths=PackedStringArray("soloNode")] +script = ExtResource("76_ptewd") +soloNode = NodePath("../../../UI/Pause Screen") +soloConfiguration = SubResource("Resource_biven") +muteConifiguration = SubResource("Resource_dqdqc") +metadata/_custom_type_script = "uid://dyl10mv4eg2h" + +[node name="On Resuming" type="Node" parent="App/Pause Resume"] +script = ExtResource("50_n120u") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="Solo Playing UI" type="Node" parent="App/Pause Resume/On Resuming" node_paths=PackedStringArray("soloNode")] +script = ExtResource("76_ptewd") +soloNode = NodePath("../../../UI/Playing Screen") +soloConfiguration = SubResource("Resource_5admk") +muteConifiguration = SubResource("Resource_tadwr") +metadata/_custom_type_script = "uid://dyl10mv4eg2h" + +[node name="OnReady" type="Node" parent="App" node_paths=PackedStringArray("actions")] +script = ExtResource("49_bpoiw") +actions = [NodePath("../../Game/On Title/ActionList")] +metadata/_custom_type_script = "uid://dyf6ee3ov3ran" + +[node name="ActionList" type="Node" parent="App/OnReady"] +script = ExtResource("50_n120u") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="Game" type="Node" parent="."] + +[node name="EatDaRichGame" type="Node" parent="Game" node_paths=PackedStringArray("gameTimer", "countRichInOutro")] +script = ExtResource("71_3gcmc") +gameStats = ExtResource("35_2vmg0") +secondsLeft = 10.0 +gameTimer = NodePath("../../App/UI/Playing Screen/Timer/GameTimer") +countRichInOutro = NodePath("../../App/UI/Outro Screen/CountNumber") +metadata/_custom_type_script = "uid://dli1mflfmrf5b" + +[node name="Start Game" type="Node" parent="Game" node_paths=PackedStringArray("onStart", "sceneCondition")] +script = ExtResource("42_iyku8") +sensor = ExtResource("43_yfebj") +onStart = NodePath("Set Playing") +sceneCondition = NodePath("../Is Title") +metadata/_custom_type_script = "uid://88u2lx0pssal" + +[node name="Set Playing" type="Node" parent="Game/Start Game"] +script = ExtResource("72_hgsyd") +state = 2 +metadata/_custom_type_script = "uid://bfxttgik5fl2a" + +[node name="Go To Title" type="Node" parent="Game" node_paths=PackedStringArray("onStart", "sceneCondition")] +script = ExtResource("42_iyku8") +sensor = ExtResource("38_gk1br") +onStart = NodePath("Set Title") +sceneCondition = NodePath("../Is Outro") +metadata/_custom_type_script = "uid://88u2lx0pssal" + +[node name="Set Title" type="Node" parent="Game/Go To Title"] +script = ExtResource("72_hgsyd") +metadata/_custom_type_script = "uid://bfxttgik5fl2a" + +[node name="Pig Creator Ticker" type="Node" parent="Game" node_paths=PackedStringArray("action")] +script = ExtResource("46_2ck02") +action = NodePath("PigCreator") +tickDuration = SubResource("Resource_pnk13") +offsetDuration = SubResource("Resource_tdpnl") +metadata/_custom_type_script = "uid://dqgh1ba6suibb" + +[node name="PigCreator" type="Node" parent="Game/Pig Creator Ticker" node_paths=PackedStringArray("container")] +script = ExtResource("65_t8ff4") +radius = 20.0 +packedScene = ExtResource("61_1pe2k") +container = NodePath("../../../Level/Pigs") +maxPigs = 50 +metadata/_custom_type_script = "uid://bk4ipnkoaer0b" + +[node name="Bullet Shooter Ticker" type="Node" parent="Game" node_paths=PackedStringArray("action")] +script = ExtResource("46_2ck02") +action = NodePath("Shooter") +tickDuration = SubResource("Resource_itmbv") +offsetDuration = SubResource("Resource_icnot") +metadata/_custom_type_script = "uid://dqgh1ba6suibb" + +[node name="Shooter" type="Node" parent="Game/Bullet Shooter Ticker" node_paths=PackedStringArray("pigContainer", "bulletsContainer")] +script = ExtResource("42_g0c7o") +pigContainer = NodePath("../../../Level/Pigs") +bulletsContainer = NodePath("../../../Level/Bullets") +metadata/_custom_type_script = "uid://egfirielic7f" + +[node name="On Title" type="Node" parent="Game" node_paths=PackedStringArray("action")] +script = ExtResource("84_mdm5s") +action = NodePath("ActionList") +metadata/_custom_type_script = "uid://dra5iwcr6n546" + +[node name="ActionList" type="Node" parent="Game/On Title"] +script = ExtResource("50_n120u") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="Make Screen Grey" type="Node" parent="Game/On Title/ActionList"] +script = ExtResource("41_vmmw2") +target = ExtResource("26_av8d2") +targetMember = "amount" +endValue = 1.0 +duration = SubResource("Resource_mxng4") +curve = SubResource("Curve_nll50") +metadata/_custom_type_script = "uid://dm4i0s67kio5v" + +[node name="SetCharacterControllerAction2" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("characterControllerAction")] +script = ExtResource("45_av8d2") +characterControllerAction = NodePath("../../../../Player/CharacterController/Actions/CharacterMovement") +metadata/_custom_type_script = "uid://cuqknlygn6vxe" + +[node name="End Pig Creator Ticker" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("tick")] +script = ExtResource("48_1pe2k") +tick = NodePath("../../../Pig Creator Ticker") +active = false +metadata/_custom_type_script = "uid://cow7sv7kn0moo" + +[node name="Solo Title UI" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("soloNode")] +script = ExtResource("76_ptewd") +soloNode = NodePath("../../../../App/UI/Title Screen") +soloConfiguration = SubResource("Resource_oh5m0") +muteConifiguration = SubResource("Resource_kg5i0") +metadata/_custom_type_script = "uid://dyl10mv4eg2h" + +[node name="Set Title Music" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("referencedAction")] +script = ExtResource("51_ucblk") +referencedAction = NodePath("../../../../Level/Music/Play Title") +metadata/_custom_type_script = "uid://dxra6jao22it4" + +[node name="Remove Pigs" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("target")] +script = ExtResource("45_vmmw2") +target = NodePath("../../../../Level/Pigs") +metadata/_custom_type_script = "uid://c8l6m0r3ab8iw" + +[node name="Remove Bullets" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("target")] +script = ExtResource("45_vmmw2") +target = NodePath("../../../../Level/Bullets") +metadata/_custom_type_script = "uid://c8l6m0r3ab8iw" + +[node name="TweenPosition" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("target")] +script = ExtResource("46_pdj1a") +target = NodePath("../../../../Player/CharacterController/CharacterBody3D") +tweenType = SubResource("Resource_nll50") +timeLine = ExtResource("4_vrtgc") +metadata/_custom_type_script = "uid://n4etptbiekhq" + +[node name="On Playing" type="Node" parent="Game" node_paths=PackedStringArray("action")] +script = ExtResource("84_mdm5s") +state = 2 +action = NodePath("ActionList") +metadata/_custom_type_script = "uid://dra5iwcr6n546" + +[node name="ActionList" type="Node" parent="Game/On Playing"] +script = ExtResource("50_n120u") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="Make Screen Color" type="Node" parent="Game/On Playing/ActionList"] +script = ExtResource("41_vmmw2") +target = ExtResource("26_av8d2") +targetMember = "amount" +duration = SubResource("Resource_mxng4") +curve = SubResource("Curve_nll50") +metadata/_custom_type_script = "uid://dm4i0s67kio5v" + +[node name="Start Pig Creator Ticker" type="Node" parent="Game/On Playing/ActionList" node_paths=PackedStringArray("tick")] +script = ExtResource("48_1pe2k") +tick = NodePath("../../../Pig Creator Ticker") +metadata/_custom_type_script = "uid://cow7sv7kn0moo" + +[node name="Start Pig Creator Ticker2" type="Node" parent="Game/On Playing/ActionList" node_paths=PackedStringArray("tick")] +script = ExtResource("48_1pe2k") +tick = NodePath("../../../Bullet Shooter Ticker") +metadata/_custom_type_script = "uid://cow7sv7kn0moo" + +[node name="Solo Playing UI" type="Node" parent="Game/On Playing/ActionList" node_paths=PackedStringArray("soloNode")] +script = ExtResource("76_ptewd") +soloNode = NodePath("../../../../App/UI/Playing Screen") +soloConfiguration = SubResource("Resource_oh5m0") +muteConifiguration = SubResource("Resource_kg5i0") +metadata/_custom_type_script = "uid://dyl10mv4eg2h" + +[node name="Set Main Music" type="Node" parent="Game/On Playing/ActionList" node_paths=PackedStringArray("referencedAction")] +script = ExtResource("51_ucblk") +referencedAction = NodePath("../../../../Level/Music/Play Main") +metadata/_custom_type_script = "uid://dxra6jao22it4" + +[node name="On Outro" type="Node" parent="Game" node_paths=PackedStringArray("action")] +script = ExtResource("84_mdm5s") +state = 3 +action = NodePath("ActionList") +metadata/_custom_type_script = "uid://dra5iwcr6n546" + +[node name="ActionList" type="Node" parent="Game/On Outro"] +script = ExtResource("50_n120u") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="SetCharacterControllerAction" type="Node" parent="Game/On Outro/ActionList" node_paths=PackedStringArray("characterControllerAction")] +script = ExtResource("45_av8d2") +characterControllerAction = NodePath("../../../../Player/CharacterController/Actions/CharacterMovement") +enabled = false +metadata/_custom_type_script = "uid://cuqknlygn6vxe" + +[node name="Solo Outro UI" type="Node" parent="Game/On Outro/ActionList" node_paths=PackedStringArray("soloNode")] +script = ExtResource("76_ptewd") +soloNode = NodePath("../../../../App/UI/Outro Screen") +soloConfiguration = SubResource("Resource_oh5m0") +muteConifiguration = SubResource("Resource_kg5i0") +metadata/_custom_type_script = "uid://dyl10mv4eg2h" + +[node name="Is Title" type="Node" parent="Game"] +script = ExtResource("76_5uce3") +metadata/_custom_type_script = "uid://ddic2h20u28uj" + +[node name="Is Playing" type="Node" parent="Game"] +script = ExtResource("76_5uce3") +state = 2 +metadata/_custom_type_script = "uid://ddic2h20u28uj" + +[node name="Is Outro" type="Node" parent="Game"] +script = ExtResource("76_5uce3") +state = 3 +metadata/_custom_type_script = "uid://ddic2h20u28uj" + [node name="Player" type="Node" parent="."] [node name="ThirdPersonCamera" type="Node3D" parent="Player" node_paths=PackedStringArray("target")] @@ -2013,19 +2826,83 @@ process_mode = 4 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.58389) shape = SubResource("SphereShape3D_bdedl") -[node name="OnCollision" type="Node" parent="Player/CharacterController/CharacterBody3D/Eating HitArea" node_paths=PackedStringArray("area", "onEntered")] +[node name="On Attack Collision" type="Node" parent="Player/CharacterController/CharacterBody3D/Eating HitArea" node_paths=PackedStringArray("area", "onEntered")] script = ExtResource("31_354o6") area = NodePath("..") selector = SubResource("Resource_28sw7") onEntered = NodePath("../../../../Try Eating Interaction/Eat Eatable") metadata/_custom_type_script = "uid://c8gcunaffcaww" +[node name="Area3D" type="Area3D" parent="Player/CharacterController/CharacterBody3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Player/CharacterController/CharacterBody3D/Area3D"] +shape = SubResource("SphereShape3D_x4tj2") + +[node name="On Hit Collision" type="Node" parent="Player/CharacterController/CharacterBody3D/Area3D" node_paths=PackedStringArray("area")] +script = ExtResource("31_354o6") +area = NodePath("..") +selector = SubResource("Resource_6xetp") +metadata/_custom_type_script = "uid://c8gcunaffcaww" + [node name="Player" type="Node3D" parent="Player/CharacterController/CharacterBody3D" node_paths=PackedStringArray("transformSource")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0613186, 0) script = ExtResource("34_rktx6") transformSource = NodePath("../../../Grounded Transform") metadata/_custom_type_script = "uid://dtes5ft8aakod" +[node name="Jump Sound" type="Node3D" parent="Player/CharacterController/CharacterBody3D"] + +[node name="Jump Sound Player" type="AudioStreamPlayer3D" parent="Player/CharacterController/CharacterBody3D/Jump Sound"] +stream = ExtResource("39_4vnwn") +attenuation_model = 3 +volume_db = 3.0 +pitch_scale = 1.35 +attenuation_filter_cutoff_hz = 20500.0 +attenuation_filter_db = 0.0 + +[node name="Jump Swish Player" type="AudioStreamPlayer3D" parent="Player/CharacterController/CharacterBody3D/Jump Sound"] +stream = ExtResource("40_70kmi") +attenuation_model = 3 +volume_db = -12.0 +pitch_scale = 0.8 +attenuation_filter_cutoff_hz = 20500.0 +attenuation_filter_db = 0.0 + +[node name="Eat Sound" type="Node3D" parent="Player/CharacterController/CharacterBody3D"] + +[node name="Eat Sound Player" type="AudioStreamPlayer3D" parent="Player/CharacterController/CharacterBody3D/Eat Sound"] +stream = ExtResource("40_8bdu2") +attenuation_model = 3 +volume_db = 3.0 +pitch_scale = 1.35 +attenuation_filter_cutoff_hz = 20500.0 +attenuation_filter_db = 0.0 + +[node name="Eat Swish Player" type="AudioStreamPlayer3D" parent="Player/CharacterController/CharacterBody3D/Eat Sound"] +stream = ExtResource("40_70kmi") +attenuation_model = 3 +volume_db = -12.0 +pitch_scale = 1.3 +attenuation_filter_cutoff_hz = 20500.0 +attenuation_filter_db = 0.0 + +[node name="Walking Sound" type="AudioStreamPlayer3D" parent="Player/CharacterController/CharacterBody3D"] +stream = ExtResource("42_oh5m0") +attenuation_model = 3 +volume_db = inf_neg +pitch_scale = 0.357895 +attenuation_filter_cutoff_hz = 20500.0 +attenuation_filter_db = 0.0 + +[node name="VelocityToSound" type="Node" parent="Player/CharacterController/CharacterBody3D" node_paths=PackedStringArray("velocitySource", "target")] +script = ExtResource("43_kg5i0") +velocitySource = NodePath("..") +target = NodePath("../Walking Sound") +velocityToVolumeLinear = SubResource("Curve_2vmg0") +velocityToPitchScale = SubResource("Curve_vmmw2") +velocitySmoothing = SubResource("Resource_o3wow") +metadata/_custom_type_script = "uid://4o4j41hwd4ro" + [node name="Actions" type="Node" parent="Player/CharacterController"] [node name="GroundReset" type="Node" parent="Player/CharacterController/Actions" node_paths=PackedStringArray("controller")] @@ -2045,18 +2922,24 @@ forwardToRotationSmoothingFrames = SubResource("Curve_n120u") controller = NodePath("../..") metadata/_custom_type_script = "uid://df7kaqvmnho05" -[node name="Jump" type="Node" parent="Player/CharacterController/Actions" node_paths=PackedStringArray("onJump", "controller")] +[node name="Jump" type="Node" parent="Player/CharacterController/Actions" node_paths=PackedStringArray("onJump", "controller", "sceneCondition")] script = ExtResource("42_rmvdt") button = ExtResource("43_pnk13") -onJump = NodePath("../../../Graphics/Jump Animation") +onJump = NodePath("../../../Graphics/Jump") jumpImpulseStrength = 200.0 velocityToJumpDirection = 50.0 airControlCurveStrength = SubResource("Curve_tdpnl") airMaxControlStrength = 20.0 maxAirControlDuration = 0.5 controller = NodePath("../..") +sceneCondition = NodePath("../../../../Game/Is Playing") metadata/_custom_type_script = "uid://bmauif3x7bnrf" +[node name="ImpactForces" type="Node" parent="Player/CharacterController/Actions" node_paths=PackedStringArray("controller")] +script = ExtResource("81_1xrt8") +controller = NodePath("../..") +metadata/_custom_type_script = "uid://cukvurx87647o" + [node name="Gravity" type="Node" parent="Player/CharacterController/Actions" node_paths=PackedStringArray("controller")] script = ExtResource("39_bsxqg") controller = NodePath("../..") @@ -2156,10 +3039,28 @@ animations = SubResource("Resource_bpoiw") target = NodePath("../Offset") metadata/_custom_type_script = "uid://cbtqgliarexam" -[node name="Jump Animation" type="Node" parent="Player/Graphics" node_paths=PackedStringArray("target")] +[node name="Jump" type="Node" parent="Player/Graphics"] +script = ExtResource("50_n120u") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="Jump Yell Sound" type="Node" parent="Player/Graphics/Jump" node_paths=PackedStringArray("player")] +script = ExtResource("39_sumir") +player = NodePath("../../../CharacterController/CharacterBody3D/Jump Sound/Jump Sound Player") +randomizePlaybackPosition = true +durationPerSound = SubResource("Resource_or40o") +metadata/_custom_type_script = "uid://ddgf2mfdmqywc" + +[node name="Jump Swish Sound" type="Node" parent="Player/Graphics/Jump" node_paths=PackedStringArray("player")] +script = ExtResource("39_sumir") +player = NodePath("../../../CharacterController/CharacterBody3D/Jump Sound/Jump Swish Player") +randomizePlaybackPosition = true +durationPerSound = SubResource("Resource_17fyn") +metadata/_custom_type_script = "uid://ddgf2mfdmqywc" + +[node name="Jump Animation" type="Node" parent="Player/Graphics/Jump" node_paths=PackedStringArray("target")] script = ExtResource("39_iyku8") animations = SubResource("Resource_1xrt8") -target = NodePath("../Offset") +target = NodePath("../../Offset") metadata/_custom_type_script = "uid://cbtqgliarexam" [node name="Money" type="Node3D" parent="Player/Graphics"] @@ -2177,6 +3078,19 @@ fract_delta = false process_material = SubResource("ParticleProcessMaterial_rmvdt") draw_pass_1 = SubResource("ArrayMesh_pnk13") +[node name="Cash Sound" type="AudioStreamPlayer3D" parent="Player/Graphics/Money"] +stream = ExtResource("63_8bdu2") +volume_db = -12.0 + +[node name="Impact" type="Node3D" parent="Player/Graphics"] + +[node name="Impact Sound" type="AudioStreamPlayer3D" parent="Player/Graphics/Impact"] +stream = ExtResource("72_kg5i0") +attenuation_model = 3 +volume_db = 3.0 +attenuation_filter_cutoff_hz = 20500.0 +attenuation_filter_db = 0.0 + [node name="Grounded Transform" type="Node3D" parent="Player"] [node name="Pointer" type="Node3D" parent="Player" node_paths=PackedStringArray("caster")] @@ -2201,6 +3115,20 @@ metadata/_custom_type_script = "uid://cbk1j230s8i68" script = ExtResource("50_n120u") metadata/_custom_type_script = "uid://b4yjsis2fh64c" +[node name="Eat Sound" type="Node" parent="Player/Try Eating Interaction/CoolDown Eating/Eating Actions" node_paths=PackedStringArray("player")] +script = ExtResource("39_sumir") +player = NodePath("../../../../CharacterController/CharacterBody3D/Eat Sound/Eat Sound Player") +randomizePlaybackPosition = true +durationPerSound = SubResource("Resource_7xjro") +metadata/_custom_type_script = "uid://ddgf2mfdmqywc" + +[node name="Eat Sound2" type="Node" parent="Player/Try Eating Interaction/CoolDown Eating/Eating Actions" node_paths=PackedStringArray("player")] +script = ExtResource("39_sumir") +player = NodePath("../../../../CharacterController/CharacterBody3D/Eat Sound/Eat Swish Player") +randomizePlaybackPosition = true +durationPerSound = SubResource("Resource_x4tj2") +metadata/_custom_type_script = "uid://ddgf2mfdmqywc" + [node name="Select Eat Animation" type="Node" parent="Player/Try Eating Interaction/CoolDown Eating/Eating Actions" node_paths=PackedStringArray("sceneCondition", "ifAction", "elseAction")] script = ExtResource("80_gt77o") sceneCondition = NodePath("CharacterIsJumping") @@ -2229,7 +3157,7 @@ metadata/_custom_type_script = "uid://ceaglilesxsi4" [node name="SetNodeState" type="Node" parent="Player/Try Eating Interaction/CoolDown Eating/Eating Actions/ActionSequence" node_paths=PackedStringArray("enable")] script = ExtResource("53_2ck02") -enable = [NodePath("../../../../../CharacterController/CharacterBody3D/Eating HitArea"), NodePath("../../../../../CharacterController/CharacterBody3D/Eating HitArea/OnCollision")] +enable = [NodePath("../../../../../CharacterController/CharacterBody3D/Eating HitArea"), NodePath("../../../../../CharacterController/CharacterBody3D/Eating HitArea/On Attack Collision")] metadata/_custom_type_script = "uid://bex6umukt0r8d" [node name="Delay" type="Node" parent="Player/Try Eating Interaction/CoolDown Eating/Eating Actions/ActionSequence"] @@ -2243,11 +3171,12 @@ script = ExtResource("53_2ck02") disable = [NodePath("../../../../../CharacterController/CharacterBody3D/Eating HitArea")] metadata/_custom_type_script = "uid://bex6umukt0r8d" -[node name="Eat Eatable" type="Node" parent="Player/Try Eating Interaction" node_paths=PackedStringArray("onCollision", "onAteSomething", "pointer")] +[node name="Eat Eatable" type="Node" parent="Player/Try Eating Interaction" node_paths=PackedStringArray("onCollision", "onAteSomething", "pointer", "jump")] script = ExtResource("46_bdedl") -onCollision = NodePath("../../CharacterController/CharacterBody3D/Eating HitArea/OnCollision") +onCollision = NodePath("../../CharacterController/CharacterBody3D/Eating HitArea/On Attack Collision") onAteSomething = NodePath("Eet Something Sequence") pointer = NodePath("../../Pointer") +jump = NodePath("../../CharacterController/Actions/Jump") metadata/_custom_type_script = "uid://dc0my6o3j486k" [node name="Eet Something Sequence" type="Node" parent="Player/Try Eating Interaction/Eat Eatable"] @@ -2260,145 +3189,85 @@ particles3D = NodePath("../../../../Graphics/Money/GPUParticles3D") usePooling = true metadata/_custom_type_script = "uid://dnstanbmrqthf" +[node name="Play Cash" type="Node" parent="Player/Try Eating Interaction/Eat Eatable/Eet Something Sequence" node_paths=PackedStringArray("player")] +script = ExtResource("39_sumir") +player = NodePath("../../../../Graphics/Money/Cash Sound") +metadata/_custom_type_script = "uid://ddgf2mfdmqywc" + +[node name="Play Impact" type="Node" parent="Player/Try Eating Interaction/Eat Eatable/Eet Something Sequence" node_paths=PackedStringArray("player")] +script = ExtResource("39_sumir") +player = NodePath("../../../../Graphics/Impact/Impact Sound") +overdrivePreventionDuration = SubResource("Resource_d123h") +randomizePlaybackPosition = true +durationPerSound = SubResource("Resource_jqpvi") +metadata/_custom_type_script = "uid://ddgf2mfdmqywc" + [node name="Flash" type="Node" parent="Player/Try Eating Interaction/Eat Eatable/Eet Something Sequence" node_paths=PackedStringArray("targets")] script = ExtResource("53_1pe2k") flashEffect = ExtResource("54_bpoiw") targets = [NodePath("../../../../Graphics/Offset/Player Body")] metadata/_custom_type_script = "uid://dnwqkymbre3vb" -[node name="Pause Resume" type="Node" parent="Player" node_paths=PackedStringArray("onStart", "sceneCondition")] -process_mode = 3 -script = ExtResource("42_iyku8") -sensor = ExtResource("79_y3t2u") -onStart = NodePath("SetPauseState") -sceneCondition = NodePath("../../Game/Is Playing") -metadata/_custom_type_script = "uid://88u2lx0pssal" +[node name="TimeInfo" type="Node" parent="Player" node_paths=PackedStringArray("parent", "positionSource")] +script = ExtResource("21_mqc5t") +parent = NodePath("../Bonus Info Origin") +font = ExtResource("21_qwpoi") +showDuration = SubResource("Resource_mf3or") +positionSource = NodePath("../CharacterController/CharacterBody3D") +positionOffset = Vector3(0, 2, 0) +curve = SubResource("Curve_17fyn") +hueSpeed = 720.0 +metadata/_custom_type_script = "uid://ueakmd145ef5" -[node name="SetPauseState" type="Node" parent="Player/Pause Resume" node_paths=PackedStringArray("onPausing", "onResuming")] -script = ExtResource("80_mdm5s") -mode = 2 -onPausing = NodePath("../On Pausing") -onResuming = NodePath("../On Resuming") -metadata/_custom_type_script = "uid://bwah32ket1t43" +[node name="Bonus Info Origin" type="Node3D" parent="Player"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.34716, 0) -[node name="On Pausing" type="Node" parent="Player/Pause Resume"] +[node name="Get Hit CoolDown" type="Node" parent="Player" node_paths=PackedStringArray("action")] +script = ExtResource("75_fceet") +action = NodePath("Get Hit") +coolDownDuration = SubResource("Resource_3ty3n") +metadata/_custom_type_script = "uid://cbk1j230s8i68" + +[node name="Get Hit" type="Node" parent="Player/Get Hit CoolDown"] script = ExtResource("50_n120u") metadata/_custom_type_script = "uid://b4yjsis2fh64c" -[node name="Solo Pausing UI" type="Node" parent="Player/Pause Resume/On Pausing" node_paths=PackedStringArray("soloNode")] -script = ExtResource("76_ptewd") -soloNode = NodePath("../../../../App/UI/Pause Screen") -soloConfiguration = SubResource("Resource_biven") -muteConifiguration = SubResource("Resource_dqdqc") -metadata/_custom_type_script = "uid://dyl10mv4eg2h" +[node name="ChangeTime" type="Node" parent="Player/Get Hit CoolDown/Get Hit"] +script = ExtResource("103_5admk") +duration = -1.0 +metadata/_custom_type_script = "uid://bbxlk0waamc63" -[node name="On Resuming" type="Node" parent="Player/Pause Resume"] -script = ExtResource("50_n120u") -metadata/_custom_type_script = "uid://b4yjsis2fh64c" +[node name="AddImpactForce" type="Node" parent="Player/Get Hit CoolDown/Get Hit" node_paths=PackedStringArray("target", "collisionDirectionSource")] +script = ExtResource("105_g0c7o") +impactForce = SubResource("Resource_7onep") +target = NodePath("../../../CharacterController/Actions/ImpactForces") +collisionDirectionSource = NodePath("../../../CharacterController/CharacterBody3D/Area3D/On Hit Collision") +metadata/_custom_type_script = "uid://cd4s5qc66ber3" -[node name="Solo Playing UI" type="Node" parent="Player/Pause Resume/On Resuming" node_paths=PackedStringArray("soloNode")] -script = ExtResource("76_ptewd") -soloNode = NodePath("../../../../App/UI/Playing Screen") -soloConfiguration = SubResource("Resource_5admk") -muteConifiguration = SubResource("Resource_tadwr") -metadata/_custom_type_script = "uid://dyl10mv4eg2h" +[node name="PlayCameraEffect" type="Node" parent="Player/Get Hit CoolDown/Get Hit" node_paths=PackedStringArray("cameraSlot")] +script = ExtResource("107_7xjro") +cameraEffect = ExtResource("108_x4tj2") +cameraSlot = NodePath("../../../../App/VirtualCamera3DManager/VirtualCamera3DSlot") +metadata/_custom_type_script = "uid://c1ivlrrt71nwp" -[node name="Game" type="Node" parent="."] +[node name="Flash" type="Node" parent="Player/Get Hit CoolDown/Get Hit" node_paths=PackedStringArray("targets")] +script = ExtResource("53_1pe2k") +flashEffect = ExtResource("107_obo2d") +targets = [NodePath("../../../Graphics/Offset/Player Body"), NodePath("../../../Graphics/Offset")] +includeChildren = true +metadata/_custom_type_script = "uid://dnwqkymbre3vb" -[node name="EatDaRichGame" type="Node" parent="Game"] -script = ExtResource("71_3gcmc") -metadata/_custom_type_script = "uid://dli1mflfmrf5b" +[node name="Shake" type="Node" parent="Player/Get Hit CoolDown/Get Hit" node_paths=PackedStringArray("targets")] +script = ExtResource("109_or40o") +shakeEffect = ExtResource("110_i5yg2") +targets = [NodePath("../../../Graphics/Offset")] +metadata/_custom_type_script = "uid://bnhnintao4qu0" -[node name="Start Game" type="Node" parent="Game" node_paths=PackedStringArray("onStart", "sceneCondition")] -script = ExtResource("42_iyku8") -sensor = ExtResource("43_yfebj") -onStart = NodePath("Set Playing") -sceneCondition = NodePath("../Is Title") -metadata/_custom_type_script = "uid://88u2lx0pssal" - -[node name="Set Playing" type="Node" parent="Game/Start Game"] -script = ExtResource("72_hgsyd") -state = 2 -metadata/_custom_type_script = "uid://bfxttgik5fl2a" - -[node name="Pig Creator Ticker" type="Node" parent="Game" node_paths=PackedStringArray("action")] -script = ExtResource("46_2ck02") -action = NodePath("PigCreator") -tickDuration = SubResource("Resource_pnk13") -offsetDuration = SubResource("Resource_tdpnl") -metadata/_custom_type_script = "uid://dqgh1ba6suibb" - -[node name="PigCreator" type="Node" parent="Game/Pig Creator Ticker" node_paths=PackedStringArray("container")] -script = ExtResource("65_t8ff4") -radius = 20.0 -packedScene = ExtResource("61_1pe2k") -container = NodePath("../../../Level/Pigs") -maxPigs = 50 -metadata/_custom_type_script = "uid://bk4ipnkoaer0b" - -[node name="On Playing" type="Node" parent="Game" node_paths=PackedStringArray("action")] -script = ExtResource("84_mdm5s") -state = 2 -action = NodePath("ActionList") -metadata/_custom_type_script = "uid://dra5iwcr6n546" - -[node name="ActionList" type="Node" parent="Game/On Playing"] -script = ExtResource("50_n120u") -metadata/_custom_type_script = "uid://b4yjsis2fh64c" - -[node name="Start Pig Creator Ticker" type="Node" parent="Game/On Playing/ActionList" node_paths=PackedStringArray("tick")] -script = ExtResource("48_1pe2k") -tick = NodePath("../../../Pig Creator Ticker") -metadata/_custom_type_script = "uid://cow7sv7kn0moo" - -[node name="Solo Playing UI" type="Node" parent="Game/On Playing/ActionList" node_paths=PackedStringArray("soloNode")] -script = ExtResource("76_ptewd") -soloNode = NodePath("../../../../App/UI/Playing Screen") -soloConfiguration = SubResource("Resource_oh5m0") -muteConifiguration = SubResource("Resource_kg5i0") -metadata/_custom_type_script = "uid://dyl10mv4eg2h" - -[node name="Set Main Music" type="Node" parent="Game/On Playing/ActionList" node_paths=PackedStringArray("referencedAction")] -script = ExtResource("51_ucblk") -referencedAction = NodePath("../../../../Level/Music/Play Main") -metadata/_custom_type_script = "uid://dxra6jao22it4" - -[node name="On Title" type="Node" parent="Game" node_paths=PackedStringArray("action")] -script = ExtResource("84_mdm5s") -state = 3 -action = NodePath("ActionList") -metadata/_custom_type_script = "uid://dra5iwcr6n546" - -[node name="ActionList" type="Node" parent="Game/On Title"] -script = ExtResource("50_n120u") -metadata/_custom_type_script = "uid://b4yjsis2fh64c" - -[node name="End Pig Creator Ticker" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("tick")] -script = ExtResource("48_1pe2k") -tick = NodePath("../../../Pig Creator Ticker") -active = false -metadata/_custom_type_script = "uid://cow7sv7kn0moo" - -[node name="Solo Title UI" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("soloNode")] -script = ExtResource("76_ptewd") -soloNode = NodePath("../../../../App/UI/Title Screen") -soloConfiguration = SubResource("Resource_oh5m0") -muteConifiguration = SubResource("Resource_kg5i0") -metadata/_custom_type_script = "uid://dyl10mv4eg2h" - -[node name="Set Title Music" type="Node" parent="Game/On Title/ActionList" node_paths=PackedStringArray("referencedAction")] -script = ExtResource("51_ucblk") -referencedAction = NodePath("../../../../Level/Music/Play Title") -metadata/_custom_type_script = "uid://dxra6jao22it4" - -[node name="Is Title" type="Node" parent="Game"] -script = ExtResource("76_5uce3") -metadata/_custom_type_script = "uid://ddic2h20u28uj" - -[node name="Is Playing" type="Node" parent="Game"] -script = ExtResource("76_5uce3") -state = 2 -metadata/_custom_type_script = "uid://ddic2h20u28uj" +[node name="Hitable" type="Node" parent="Player" node_paths=PackedStringArray("onCollision", "onReceivedHit")] +script = ExtResource("111_or40o") +onCollision = NodePath("../CharacterController/CharacterBody3D/Area3D/On Hit Collision") +onReceivedHit = NodePath("../Get Hit CoolDown") +metadata/_custom_type_script = "uid://b5uptbobryf55" [node name="Level" type="Node3D" parent="."] @@ -2412,6 +3281,7 @@ metadata/_custom_type_script = "uid://cyicertlwo4m0" [node name="Intro" type="AudioStreamPlayer" parent="Level/Music"] stream = ExtResource("74_14gp7") +volume_db = -12.0 autoplay = true [node name="Play Main" type="Node" parent="Level/Music" node_paths=PackedStringArray("music")] @@ -2422,6 +3292,7 @@ metadata/_custom_type_script = "uid://cyicertlwo4m0" [node name="Main" type="AudioStreamPlayer" parent="Level/Music"] stream = ExtResource("75_poct0") +volume_db = -18.0 [node name="Pigs" type="Node" parent="Level"] @@ -2551,7 +3422,7 @@ explosiveness = 1.0 fixed_fps = 0 interpolate = false fract_delta = false -process_material = SubResource("ShaderMaterial_sumir") +process_material = SubResource("ShaderMaterial_0ifoo") draw_pass_1 = SubResource("ArrayMesh_dgrd7") [node name="GpuParticles3D2" type="GPUParticles3D" parent="Level/Environment/FoliageRenderer"] @@ -2563,7 +3434,7 @@ explosiveness = 1.0 fixed_fps = 0 interpolate = false fract_delta = false -process_material = SubResource("ShaderMaterial_li0pw") +process_material = SubResource("ShaderMaterial_0w51s") draw_pass_1 = SubResource("ArrayMesh_y3t2u") [node name="GpuParticles3D3" type="GPUParticles3D" parent="Level/Environment/FoliageRenderer"] @@ -2575,7 +3446,7 @@ explosiveness = 1.0 fixed_fps = 0 interpolate = false fract_delta = false -process_material = SubResource("ShaderMaterial_4vnwn") +process_material = SubResource("ShaderMaterial_4wj5s") draw_pass_1 = SubResource("ArrayMesh_y3t2u") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="Level/Environment"] @@ -2600,4 +3471,6 @@ transform = Transform3D(7.93908, 0, 0, 0, 7.93908, 0, 0, 0, 7.93908, -1.71031, 0 visible = false mesh = SubResource("ArrayMesh_y3t2u") +[node name="Bullets" type="Node3D" parent="Level"] + [editable path="Level/Environment/flower2"] diff --git a/Eat Da Rich/Eat/Eat.cs b/Eat Da Rich/Eat/Eat.cs index c62d0cc..63a45aa 100644 --- a/Eat Da Rich/Eat/Eat.cs +++ b/Eat Da Rich/Eat/Eat.cs @@ -17,12 +17,38 @@ namespace Rokojori [Export] public Pointer pointer; + [Export] + public Jump jump; + + float _lastPig = 0; + protected override void _OnTrigger() { var pigs = onCollision.GetNodesInside(); var hasEaten = false; + var edr = Unique.Get(); + + var now = TimeLine.osTime; + + var elapsed = now - _lastPig; + + var fastMultiply = 1f; + var isFast = false; + var isAir = jump.IsJumping(); + var isLongAir = jump.GetAirTime() > edr.gameStats.longAirDuration; + + + if ( elapsed < edr.gameStats.fastDurationInSeconds ) + { + isFast = true; + fastMultiply = edr.gameStats.fastMultiply; + } + + var ti = Unique.Get(); + + pigs.ForEach( ( p )=> { @@ -37,14 +63,53 @@ namespace Rokojori eatable.GetEaten(); + var value = edr.gameStats.basicPigSeconds; + var info = "PIG"; + + if ( isAir ) + { + value = edr.gameStats.pigInAirSeconds; + + if ( isLongAir ) + { + value *= edr.gameStats.longAirMultiply; + } + + info = isLongAir ? "PIG + LONG-AIR-TIME" : "PIG + AIR"; + } + + if ( isFast ) + { + info = "( " + info + ") * SUPER-FAST "; + } + + if ( pigs.Count > 1 ) + { + if ( ! isFast ) + { + info = "( " + info + " )"; + } + + info += " x MULTI x " + pigs.Count; + } + + var combinedValue = ( value * fastMultiply ) * pigs.Count; + + edr.ChangeTime( combinedValue ); + hasEaten = true; + ti.Show( info, 1 ); + ti.Show( "+" + combinedValue._F() + "sec ", 2 ); + + } ); if ( hasEaten ) { + _lastPig = now; Trigger( onAteSomething ); } diff --git a/Eat Da Rich/EatDaRich-Stats.tres b/Eat Da Rich/EatDaRich-Stats.tres new file mode 100644 index 0000000..dd759a3 --- /dev/null +++ b/Eat Da Rich/EatDaRich-Stats.tres @@ -0,0 +1,14 @@ +[gd_resource type="Resource" script_class="EatDaRichStats" load_steps=2 format=3 uid="uid://dxkq03u6dm8dq"] + +[ext_resource type="Script" uid="uid://hdojtfd44ohk" path="res://Eat Da Rich/EatDaRichStats.cs" id="1_qrqtd"] + +[resource] +script = ExtResource("1_qrqtd") +secondsToPlay = 20.0 +basicPigSeconds = 0.5 +pigInAirSeconds = 1.0 +longAirDuration = 2.0 +longAirMultiply = 2.0 +fastDurationInSeconds = 1.0 +fastMultiply = 1.5 +metadata/_custom_type_script = "uid://hdojtfd44ohk" diff --git a/Eat Da Rich/EatDaRichGame.cs b/Eat Da Rich/EatDaRichGame.cs index 8fbf6d3..af4cbd4 100644 --- a/Eat Da Rich/EatDaRichGame.cs +++ b/Eat Da Rich/EatDaRichGame.cs @@ -19,19 +19,96 @@ namespace Rokojori [Export] public State state = State.Title; + [Export] + public EatDaRichStats gameStats; + + + [Export] + public float secondsLeft = 120; + + [Export] + public float secondsPlaying = 0; + + + [Export] + public int numRich = 0; + + [Export] + public GameTimer gameTimer; + + [Export] + public CountNumber countRichInOutro; + + public void ChangeTime( float delta ) + { + secondsLeft += delta; + } + + + public override void _Process( double delta ) + { + if ( State.Playing == state ) + { + OnPlaying( (float) delta ); + } + + + + } + + void OnPlaying( float delta ) + { + secondsLeft -= (float) delta; + secondsPlaying += (float) delta; + + var timerSeconds = Mathf.Max( secondsLeft, 0 ); + gameTimer.timer.locale = LocaleText.Create( Duration.GetTimerLabel( timerSeconds ) ); + + if ( secondsLeft <= 0 ) + { + SetState( State.Outro ); + } + } + public void SetState( State state ) { + this.LogInfo( "Set State:", state ); + + if ( State.Playing == state ) + { + secondsLeft = gameStats.secondsToPlay; + numRich = 0; + secondsPlaying = 0; + } + + if ( State.Outro == state ) + { + countRichInOutro.startValue = 0; + countRichInOutro.endValue = numRich; + + Action.Trigger( countRichInOutro ); + } + + SetNextState( state ); + + } + + async void SetNextState( State state ) + { + await this.RequestNextFrame(); + this.state = state; this.ForEachInRoot( ( sta )=> { - if ( sta.state == this.state ) + if ( sta.state == state ) { Action.Trigger( sta.action ); } } ); + } } diff --git a/Eat Da Rich/EatDaRichStats.cs b/Eat Da Rich/EatDaRichStats.cs new file mode 100644 index 0000000..0b3da25 --- /dev/null +++ b/Eat Da Rich/EatDaRichStats.cs @@ -0,0 +1,32 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class EatDaRichStats:Resource + { + [Export] + public float secondsToPlay = 20f; + + [Export] + public float basicPigSeconds = 1f; + + [Export] + public float pigInAirSeconds = 2f; + + [Export] + public float longAirDuration = 2f; + + [Export] + public float longAirMultiply = 2f; + + [Export] + public float fastDurationInSeconds = 0.5f; + + [Export] + public float fastMultiply = 2f; + } +} \ No newline at end of file diff --git a/Eat Da Rich/EatDaRichStats.cs.uid b/Eat Da Rich/EatDaRichStats.cs.uid new file mode 100644 index 0000000..23d120e --- /dev/null +++ b/Eat Da Rich/EatDaRichStats.cs.uid @@ -0,0 +1 @@ +uid://hdojtfd44ohk diff --git a/Eat Da Rich/Hitter/Hitable.cs b/Eat Da Rich/Hitter/Hitable.cs new file mode 100644 index 0000000..bacb891 --- /dev/null +++ b/Eat Da Rich/Hitter/Hitable.cs @@ -0,0 +1,38 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class Hitable:Node + { + [Export] + public OnCollision onCollision; + + [Export] + public Action onReceivedHit; + + public override void _Ready() + { + onCollision.onEnteredSlot.AddAction( + ( n )=> + { + Action.Trigger( onReceivedHit ); + var hitter = n.Get(); + + this.LogInfo( "Was hit by:", n, hitter ); + + if ( hitter != null ) + { + hitter.hitable = this; + Action.Trigger( hitter.onHit ); + hitter.hitable = null; + } + + } + ); + } + } +} \ No newline at end of file diff --git a/Eat Da Rich/Hitter/Hitable.cs.uid b/Eat Da Rich/Hitter/Hitable.cs.uid new file mode 100644 index 0000000..07a23c4 --- /dev/null +++ b/Eat Da Rich/Hitter/Hitable.cs.uid @@ -0,0 +1 @@ +uid://b5uptbobryf55 diff --git a/Eat Da Rich/Hitter/Hitter.cs b/Eat Da Rich/Hitter/Hitter.cs new file mode 100644 index 0000000..24aa1a9 --- /dev/null +++ b/Eat Da Rich/Hitter/Hitter.cs @@ -0,0 +1,17 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class Hitter:Node3D + { + [Export] + public Action onHit; + + public Hitable hitable; + + } +} \ No newline at end of file diff --git a/Eat Da Rich/Hitter/Hitter.cs.uid b/Eat Da Rich/Hitter/Hitter.cs.uid new file mode 100644 index 0000000..2dd69c9 --- /dev/null +++ b/Eat Da Rich/Hitter/Hitter.cs.uid @@ -0,0 +1 @@ +uid://bdqwss3wvwfvn diff --git a/Eat Da Rich/Hitter/Hitter.tres b/Eat Da Rich/Hitter/Hitter.tres new file mode 100644 index 0000000..cb0934e --- /dev/null +++ b/Eat Da Rich/Hitter/Hitter.tres @@ -0,0 +1,7 @@ +[gd_resource type="Resource" script_class="SelectorFlag" load_steps=2 format=3 uid="uid://lhpe751yjb87"] + +[ext_resource type="Script" uid="uid://dqb1n0314wgdn" path="res://addons/rokojori_action_library/Runtime/Selectors/SelectorFlag.cs" id="1_at4fm"] + +[resource] +script = ExtResource("1_at4fm") +metadata/_custom_type_script = "uid://dqb1n0314wgdn" diff --git a/Eat Da Rich/Music/eat-da-rich-explosion.flp b/Eat Da Rich/Music/eat-da-rich-explosion.flp new file mode 100644 index 0000000..81fbcf0 Binary files /dev/null and b/Eat Da Rich/Music/eat-da-rich-explosion.flp differ diff --git a/Eat Da Rich/Music/eat-da-rich-explosion.ogg b/Eat Da Rich/Music/eat-da-rich-explosion.ogg new file mode 100644 index 0000000..3b4569f Binary files /dev/null and b/Eat Da Rich/Music/eat-da-rich-explosion.ogg differ diff --git a/Eat Da Rich/Music/eat-da-rich-explosion.ogg.import b/Eat Da Rich/Music/eat-da-rich-explosion.ogg.import new file mode 100644 index 0000000..21ba9eb --- /dev/null +++ b/Eat Da Rich/Music/eat-da-rich-explosion.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bvu2trlkk51ec" +path="res://.godot/imported/eat-da-rich-explosion.ogg-239e9d801e0707603ad70ec9c1fc1794.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Music/eat-da-rich-explosion.ogg" +dest_files=["res://.godot/imported/eat-da-rich-explosion.ogg-239e9d801e0707603ad70ec9c1fc1794.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Pig/Pig.cs b/Eat Da Rich/Pig/Pig.cs index beb85e1..bec6828 100644 --- a/Eat Da Rich/Pig/Pig.cs +++ b/Eat Da Rich/Pig/Pig.cs @@ -22,7 +22,24 @@ namespace Rokojori [Export] public bool alive = true; - + + [Export] + public PackedScene packedBullet; + + public void Shoot( Node3D bulletsContainer ) + { + var bulletRoot = packedBullet.Instantiate(); + bulletsContainer.AddChild( bulletRoot ); + + bulletRoot.GlobalPosition = rigidBody3D.GlobalPosition; + var bullet = bulletRoot.Get(); + + Action.Trigger( bullet.onActivate ); + + var moveTowards = bulletRoot.Get(); + moveTowards.goal = Unique.Get().transformSource; + } + public override void _Process( double delta ) { if ( Engine.IsEditorHint() ) @@ -42,7 +59,7 @@ namespace Rokojori var direction = player.GlobalPosition - rigidBody3D.GlobalPosition; direction.Y = 0; - direction = direction.Normalized() * speed; + direction = direction.Normalized() * speed * 60 * (float)delta; rigidBody3D.GlobalPosition += direction; diff --git a/Eat Da Rich/Pig/Pig.tscn b/Eat Da Rich/Pig/Pig.tscn index ecc7291..aa22434 100644 --- a/Eat Da Rich/Pig/Pig.tscn +++ b/Eat Da Rich/Pig/Pig.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=60 format=4 uid="uid://dktbrrlbx7wf1"] +[gd_scene load_steps=70 format=4 uid="uid://dktbrrlbx7wf1"] [ext_resource type="Script" uid="uid://dla1wn2mlw2d0" path="res://addons/rokojori_action_library/Runtime/Interactions/Pointable.cs" id="1_w2vv5"] [ext_resource type="Script" uid="uid://ccndwluy1uv80" path="res://addons/rokojori_action_library/Runtime/Procedural/Mesh/MeshCombiner.cs" id="1_y4t02"] [ext_resource type="Script" uid="uid://c5vxa38rgr24k" path="res://addons/rokojori_action_library/Runtime/Selectors/Selectable.cs" id="2_uei4a"] [ext_resource type="Resource" uid="uid://bj6alvuyy0ymt" path="res://Eat Da Rich/Pig/Pig.tres" id="3_xqs7e"] [ext_resource type="Script" uid="uid://h8la67dl42y4" path="res://Eat Da Rich/Eat/Eatable.cs" id="4_kaxbo"] +[ext_resource type="Resource" uid="uid://lhpe751yjb87" path="res://Eat Da Rich/Hitter/Hitter.tres" id="5_2dvqn"] [ext_resource type="Script" uid="uid://ceaglilesxsi4" path="res://addons/rokojori_action_library/Runtime/Actions/ActionSequence.cs" id="5_no8e2"] [ext_resource type="Script" uid="uid://crm7o7w0gumhn" path="res://addons/rokojori_action_library/Runtime/Actions/Conditional/Once.cs" id="5_uei4a"] [ext_resource type="Script" uid="uid://bnhnintao4qu0" path="res://addons/rokojori_action_library/Runtime/Animation/Shake/Shake.cs" id="6_dg4v6"] @@ -27,6 +28,13 @@ [ext_resource type="Script" uid="uid://b0abujtgcfvlh" path="res://addons/rokojori_action_library/Runtime/Actions/Node3D/MoveTo.cs" id="21_jsq7q"] [ext_resource type="Script" uid="uid://ddhwhwos5kkrm" path="res://addons/rokojori_action_library/Runtime/Time/Duration/SecondsDuration.cs" id="22_obltx"] [ext_resource type="Script" uid="uid://b2g7rycr0ouu4" path="res://addons/rokojori_action_library/Runtime/Actions/Time/Delay.cs" id="24_obltx"] +[ext_resource type="Script" uid="uid://c8gcunaffcaww" path="res://addons/rokojori_action_library/Runtime/Actions/Node3D/OnCollision.cs" id="27_m3c0d"] +[ext_resource type="Script" uid="uid://doo8jwdet1hyi" path="res://addons/rokojori_action_library/Runtime/Selectors/FlagSelector.cs" id="28_68xfm"] +[ext_resource type="PackedScene" uid="uid://cto0ydopnlcgs" path="res://Eat Da Rich/Bullet/Bullet.tscn" id="28_flm6k"] +[ext_resource type="Resource" uid="uid://dwewmi0dp6ey8" path="res://Eat Da Rich/Camera/Bullet.tres" id="28_vkadr"] +[ext_resource type="Script" uid="uid://b5uptbobryf55" path="res://Eat Da Rich/Hitter/Hitable.cs" id="29_kopm0"] +[ext_resource type="Script" uid="uid://b4yjsis2fh64c" path="res://addons/rokojori_action_library/Runtime/Actions/ActionList.cs" id="30_kopm0"] +[ext_resource type="Script" uid="uid://dxra6jao22it4" path="res://addons/rokojori_action_library/Runtime/Actions/ActionReference.cs" id="31_vkadr"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_id7i5"] height = 1.47037 @@ -285,6 +293,16 @@ curves = [SubResource("Resource_war2p")] timeline = ExtResource("9_oaox2") metadata/_custom_type_script = "uid://bqpiwp16h7614" +[sub_resource type="SphereShape3D" id="SphereShape3D_vkadr"] +radius = 0.882975 + +[sub_resource type="Resource" id="Resource_jt8lw"] +script = ExtResource("28_68xfm") +flag = [ExtResource("28_vkadr")] +mode = 0 +iteratorType = 9 +metadata/_custom_type_script = "uid://doo8jwdet1hyi" + [sub_resource type="Resource" id="Resource_35rgq"] resource_local_to_scene = true script = ExtResource("20_35rgq") @@ -304,7 +322,6 @@ transform = Transform3D(1.3506, 0, 0, 0, 1.3506, 0, 0, 0, 1.3506, 0, 0, 0) [node name="Offset" type="Node3D" parent="RigidBody3D/Graphics"] [node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D/Graphics/Offset"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) mesh = SubResource("ArrayMesh_war2p") skeleton = NodePath("../MeshCombiner") @@ -404,7 +421,6 @@ visible = false material = SubResource("StandardMaterial3D_cnln1") [node name="MeshCombiner" type="Node3D" parent="RigidBody3D/Graphics/Offset" node_paths=PackedStringArray("sourceNodes", "pivot", "outputMesh")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) visible = false script = ExtResource("1_y4t02") sourceNodes = [NodePath("../Body"), NodePath("../CSGSphere3D2"), NodePath("../CSGSphere3D3"), NodePath("../CSGSphere3D4"), NodePath("../CSGSphere3D9"), NodePath("../CSGSphere3D10"), NodePath("../CSGSphere3D11"), NodePath("../CSGSphere3D12"), NodePath("../CSGSphere3D7"), NodePath("../CSGSphere3D8"), NodePath("../CSGSphere3D5"), NodePath("../CSGSphere3D6"), NodePath("../CSGBox3D"), NodePath("../CSGBox3D2"), NodePath("../CSGBox3D3"), NodePath("../CSGBox3D6"), NodePath("../CSGBox3D7"), NodePath("../CSGBox3D4"), NodePath("../CSGBox3D5")] @@ -424,7 +440,7 @@ metadata/_custom_type_script = "uid://dla1wn2mlw2d0" [node name="Selectable" type="Node" parent="RigidBody3D"] script = ExtResource("2_uei4a") -flags = [ExtResource("3_xqs7e")] +flags = [ExtResource("3_xqs7e"), ExtResource("5_2dvqn")] metadata/_custom_type_script = "uid://c5vxa38rgr24k" [node name="Eatable" type="Node" parent="RigidBody3D" node_paths=PackedStringArray("onGotEaten")] @@ -507,10 +523,49 @@ animations = SubResource("Resource_l6ovb") target = NodePath("../../Graphics") metadata/_custom_type_script = "uid://cbtqgliarexam" +[node name="Area3D" type="Area3D" parent="RigidBody3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D/Area3D"] +shape = SubResource("SphereShape3D_vkadr") + +[node name="OnCollision" type="Node" parent="RigidBody3D/Area3D" node_paths=PackedStringArray("area")] +script = ExtResource("27_m3c0d") +area = NodePath("..") +selector = SubResource("Resource_jt8lw") +metadata/_custom_type_script = "uid://c8gcunaffcaww" + +[node name="Hitable" type="Node" parent="RigidBody3D/Area3D" node_paths=PackedStringArray("onCollision", "onReceivedHit")] +script = ExtResource("29_kopm0") +onCollision = NodePath("../OnCollision") +onReceivedHit = NodePath("../../Die") +metadata/_custom_type_script = "uid://b5uptbobryf55" + +[node name="ActionList" type="Node" parent="RigidBody3D/Area3D/Hitable"] +script = ExtResource("30_kopm0") +metadata/_custom_type_script = "uid://b4yjsis2fh64c" + +[node name="Remove Adjust Death Position" type="Node" parent="RigidBody3D/Area3D/Hitable/ActionList" node_paths=PackedStringArray("target")] +script = ExtResource("18_dg4v6") +target = NodePath("../../../../Die/ActionSequence/Shrink And Move To Player/AdjustDeathPosition") +queue = false +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="Remove MoveTo" type="Node" parent="RigidBody3D/Area3D/Hitable/ActionList" node_paths=PackedStringArray("target")] +script = ExtResource("18_dg4v6") +target = NodePath("../../../../Die/ActionSequence/Shrink And Move To Player/MoveTo") +queue = false +metadata/_custom_type_script = "uid://dq5kae8x62gre" + +[node name="* Die" type="Node" parent="RigidBody3D/Area3D/Hitable/ActionList" node_paths=PackedStringArray("referencedAction")] +script = ExtResource("31_vkadr") +referencedAction = NodePath("../../../../Die") +metadata/_custom_type_script = "uid://dxra6jao22it4" + [node name="Pig" type="Node" parent="." node_paths=PackedStringArray("rigidBody3D", "onSpawn")] script = ExtResource("19_8pk3o") rigidBody3D = NodePath("../RigidBody3D") speed = 0.01 rotationSmoothing = SubResource("Resource_35rgq") onSpawn = NodePath("../RigidBody3D/On Spawn") +packedBullet = ExtResource("28_flm6k") metadata/_custom_type_script = "uid://b02vfydrj7lwv" diff --git a/Eat Da Rich/Pig/Shooter.cs b/Eat Da Rich/Pig/Shooter.cs new file mode 100644 index 0000000..fbd8df3 --- /dev/null +++ b/Eat Da Rich/Pig/Shooter.cs @@ -0,0 +1,53 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class Shooter:Action + { + [Export] + public Node pigContainer; + + [Export] + public float startChance = 10; + + [Export] + public float endChance = 80; + + [Export] + public float duration = 60; + + [Export] + public Node3D bulletsContainer; + + protected override void _OnTrigger() + { + var random = GodotRandom.Get(); + var edr = Unique.Get(); + + var chance = MathX.MapClamped( edr.secondsPlaying, 0, duration, startChance, endChance ); + + if ( ! random.Chance( chance ) ) + { + return; + } + + var pigContainers = pigContainer.GetDirectChildren(); + var selected = GodotRandom.Get().From( pigContainers ); + + if ( selected == null ) + { + return; + } + + var pig = selected.Get(); + + pig.Shoot( bulletsContainer ); + + } + + } +} \ No newline at end of file diff --git a/Eat Da Rich/Pig/Shooter.cs.uid b/Eat Da Rich/Pig/Shooter.cs.uid new file mode 100644 index 0000000..fd69b13 --- /dev/null +++ b/Eat Da Rich/Pig/Shooter.cs.uid @@ -0,0 +1 @@ +uid://egfirielic7f diff --git a/Eat Da Rich/Pig/cash-sound.ogg b/Eat Da Rich/Pig/cash-sound.ogg new file mode 100644 index 0000000..a38f9e7 Binary files /dev/null and b/Eat Da Rich/Pig/cash-sound.ogg differ diff --git a/Eat Da Rich/Pig/cash-sound.ogg.import b/Eat Da Rich/Pig/cash-sound.ogg.import new file mode 100644 index 0000000..91ea937 --- /dev/null +++ b/Eat Da Rich/Pig/cash-sound.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://dspdb85lv8cjv" +path="res://.godot/imported/cash-sound.ogg-8a4d9632b7a5d2fe7c4736eba8ff0cb9.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Pig/cash-sound.ogg" +dest_files=["res://.godot/imported/cash-sound.ogg-8a4d9632b7a5d2fe7c4736eba8ff0cb9.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Post/GreyScale-Effect.tres b/Eat Da Rich/Post/GreyScale-Effect.tres new file mode 100644 index 0000000..75a7e30 --- /dev/null +++ b/Eat Da Rich/Post/GreyScale-Effect.tres @@ -0,0 +1,15 @@ +[gd_resource type="CompositorEffect" script_class="GreyScaleEffect" load_steps=2 format=3 uid="uid://dn6su87gys0st"] + +[ext_resource type="Script" uid="uid://c81fs31jiamwd" path="res://addons/rokojori_action_library/Runtime/Rendering/Compositor/CompositorEffects/GreyScale/GreyScaleEffect.cs" id="1_d8sbp"] + +[resource] +resource_local_to_scene = false +resource_name = "" +enabled = true +effect_callback_type = 4 +needs_motion_vectors = false +needs_normal_roughness = false +script = ExtResource("1_d8sbp") +amount = 0.0 +luminanceMethod = 1.0 +metadata/_custom_type_script = "uid://c81fs31jiamwd" diff --git a/Eat Da Rich/SetState.cs b/Eat Da Rich/SetState.cs index 52394bd..568a28a 100644 --- a/Eat Da Rich/SetState.cs +++ b/Eat Da Rich/SetState.cs @@ -16,7 +16,7 @@ namespace Rokojori var edr = Unique.Get(); edr.SetState( state ); } - + } } \ No newline at end of file diff --git a/Eat Da Rich/TimeInfo/TimeInfo.cs b/Eat Da Rich/TimeInfo/TimeInfo.cs new file mode 100644 index 0000000..9549b25 --- /dev/null +++ b/Eat Da Rich/TimeInfo/TimeInfo.cs @@ -0,0 +1,113 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class TimeInfo:Node + { + [Export] + public Node3D parent; + + [Export] + public Font font; + + [Export] + public float fontInnerSize = 32; + + [Export] + public float fontOutlineSize = 12; + + [Export] + public float fontPropertiesScale = 2f; + + + [Export] + public int maxMessages; + + [Export] + public Duration showDuration; + + [Export] + public Node3D positionSource; + + [Export] + public Vector3 positionOffset = new Vector3( 0, 1, 0 ); + + [Export] + public Curve curve; + + [Export] + public float curveMultiplier = 1f; + + [Export] + public float increaseDuration = 0.5f; + + [Export] + public float increaseOffset = 0.5f; + + [Export] + public float hueSpeed = 360; + + [Export] + public float saturation = 1; + + [Export] + public float luminance = 0.7f; + + int id = 0; + + float _last = 0; + int _currentOffset = 0; + + public void Show( string info, float scale ) + { + id++; + + var now = TimeLine.osTime; + var elapsed = now - _last; + + if ( elapsed < increaseDuration ) + { + _currentOffset ++; + } + else + { + _currentOffset = 0; + } + + _last = now; + var text = parent.CreateChild( "Message-" + id ); + text.Font = font; + text.FontSize = (int)( fontInnerSize * fontPropertiesScale * scale ); + text.OutlineSize = (int)( fontOutlineSize * fontPropertiesScale * scale); + text.Billboard = BaseMaterial3D.BillboardModeEnum.Enabled; + text.Text = info; + + var startPosition = positionSource.GlobalPosition + positionOffset + Vector3.Up * ( increaseOffset * _currentOffset ); + text.GlobalPosition = startPosition; + + TimeLineManager.ScheduleSpanWith( showDuration, + ( s, t )=> + { + var hue = s.phase * hueSpeed; + var color = new HSLColor( hue, saturation, luminance ); + color.a = 1f - s.phase; + text.Modulate = color; + text.OutlineModulate = new Color( 0, 0, 0, color.a ); + var offset = curve.Sample( s.phase ) * curveMultiplier; + var position = startPosition + offset * Vector3.Up; + + text.GlobalPosition = position; + if ( TimeLineSpanUpdateType.End == t ) + { + text.SelfDestroy(); + } + + } + ); + } + } +} \ No newline at end of file diff --git a/Eat Da Rich/TimeInfo/TimeInfo.cs.uid b/Eat Da Rich/TimeInfo/TimeInfo.cs.uid new file mode 100644 index 0000000..9e098e4 --- /dev/null +++ b/Eat Da Rich/TimeInfo/TimeInfo.cs.uid @@ -0,0 +1 @@ +uid://ueakmd145ef5 diff --git a/Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf b/Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf new file mode 100644 index 0000000..89d36f8 Binary files /dev/null and b/Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf differ diff --git a/Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf.import b/Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf.import new file mode 100644 index 0000000..c29d89e --- /dev/null +++ b/Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf.import @@ -0,0 +1,35 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://c4ynwh47dh5kh" +path="res://.godot/imported/JosefinSans-Regular.ttf-0e441a16d129ff42ddd7752fd34c990b.fontdata" + +[deps] + +source_file="res://Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf" +dest_files=["res://.godot/imported/JosefinSans-Regular.ttf-0e441a16d129ff42ddd7752fd34c990b.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/Eat Da Rich/UI/GameTimer.cs b/Eat Da Rich/UI/GameTimer.cs new file mode 100644 index 0000000..caf3377 --- /dev/null +++ b/Eat Da Rich/UI/GameTimer.cs @@ -0,0 +1,15 @@ +using Godot; +using System.Collections; +using System.Collections.Generic; +using Godot.Collections; + +namespace Rokojori +{ + [GlobalClass,Tool] + public partial class GameTimer:Node + { + [Export] + public UIText timer; + + } +} \ No newline at end of file diff --git a/Eat Da Rich/UI/GameTimer.cs.uid b/Eat Da Rich/UI/GameTimer.cs.uid new file mode 100644 index 0000000..33d0743 --- /dev/null +++ b/Eat Da Rich/UI/GameTimer.cs.uid @@ -0,0 +1 @@ +uid://d3cmf8aos027i diff --git a/Eat Da Rich/UI/RichCounter.cs b/Eat Da Rich/UI/RichCounter.cs index d1b247c..b3770a8 100644 --- a/Eat Da Rich/UI/RichCounter.cs +++ b/Eat Da Rich/UI/RichCounter.cs @@ -8,9 +8,6 @@ namespace Rokojori [GlobalClass,Tool] public partial class RichCounter:Node { - [Export] - public int numRich = 0; - [Export] public UIText counter; @@ -19,8 +16,10 @@ namespace Rokojori public void CountUp() { - numRich ++; - counter.locale = LocaleText.Create( numRich + "" ); + var edr = Unique.Get(); + + edr.numRich ++; + counter.locale = LocaleText.Create( edr.numRich + "" ); Action.Trigger( onCountUp ); } diff --git a/Eat Da Rich/UI/bonus-text-style.tres b/Eat Da Rich/UI/bonus-text-style.tres new file mode 100644 index 0000000..c69edb4 --- /dev/null +++ b/Eat Da Rich/UI/bonus-text-style.tres @@ -0,0 +1,54 @@ +[gd_resource type="Resource" script_class="UIStyle" load_steps=9 format=3 uid="uid://bsjtaw4vuul7g"] + +[ext_resource type="Script" uid="uid://chmcc71dvu4vj" path="res://addons/rokojori_action_library/Runtime/UI/Styling/UIStyle.cs" id="1_jxyiu"] +[ext_resource type="FontFile" uid="uid://c4ynwh47dh5kh" path="res://Eat Da Rich/UI/Fonts/JosefinSans-Regular.ttf" id="1_y4a25"] +[ext_resource type="Script" uid="uid://drqb0pm5ub64g" path="res://addons/rokojori_action_library/Runtime/UI/Styling/UIColor.cs" id="2_uf0n4"] +[ext_resource type="Script" uid="uid://cnkyynboxg1qg" path="res://addons/rokojori_action_library/Runtime/UI/Styling/UINumber.cs" id="3_gxy7l"] + +[sub_resource type="Gradient" id="Gradient_tyf81"] +offsets = PackedFloat32Array(0, 0.154158, 0.320487, 0.523327, 0.657201, 0.827586, 1) +colors = PackedColorArray(1, 0, 0, 1, 1, 0.898011, 0, 1, 0.141183, 1, 0, 1, 0, 1, 0.865613, 1, 0, 0.196005, 1, 1, 1, 0, 0.655318, 1, 1, 0, 0, 1) + +[sub_resource type="Resource" id="Resource_puc1w"] +script = ExtResource("2_uf0n4") +color = Color(0.506789, 0.503362, 0.503362, 1) +isAnimated = true +animationGradient = SubResource("Gradient_tyf81") +blendMode = 1 +animationDuration = 0.5 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://drqb0pm5ub64g" + +[sub_resource type="Resource" id="Resource_y4a25"] +script = ExtResource("3_gxy7l") +value = 0.65 +unit = "em" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[sub_resource type="Resource" id="Resource_yjqcq"] +script = ExtResource("3_gxy7l") +value = 1.132 +unit = "vw" +isAnimated = false +animationDuration = 0.0 +animationOffset = 0.0 +metadata/_custom_type_script = "uid://cnkyynboxg1qg" + +[resource] +script = ExtResource("1_jxyiu") +selectorStyles = [] +layout = 0 +marginTop = SubResource("Resource_yjqcq") +font = ExtResource("1_y4a25") +fontSize = SubResource("Resource_y4a25") +fontColor = SubResource("Resource_puc1w") +position = 0 +lineWrap = 2 +colorProperties = [] +numberProperties = [] +numberTransitions = [] +colorTransitions = [] +metadata/_custom_type_script = "uid://chmcc71dvu4vj" diff --git a/Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg b/Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg new file mode 100644 index 0000000..5ac16cd Binary files /dev/null and b/Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg differ diff --git a/Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg.import b/Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg.import new file mode 100644 index 0000000..b947b95 --- /dev/null +++ b/Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://cvcwmqdoexjdt" +path="res://.godot/imported/yell-hah-64bpm-0.5beats.ogg-952c04736808610e199e7659fdca35fa.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Yell/yell-hah-64bpm-0.5beats.ogg" +dest_files=["res://.godot/imported/yell-hah-64bpm-0.5beats.ogg-952c04736808610e199e7659fdca35fa.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg b/Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg new file mode 100644 index 0000000..dc5b3fa Binary files /dev/null and b/Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg differ diff --git a/Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg.import b/Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg.import new file mode 100644 index 0000000..a4d30e0 --- /dev/null +++ b/Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bb5pau6bjiish" +path="res://.godot/imported/yell-huh-64bpm-0.5beats.ogg-d0d868e3c47f964a0ec0532d4bc8bd4f.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Yell/yell-huh-64bpm-0.5beats.ogg" +dest_files=["res://.godot/imported/yell-huh-64bpm-0.5beats.ogg-d0d868e3c47f964a0ec0532d4bc8bd4f.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Yell/yell-huh-64bpm-2beats.ogg.import b/Eat Da Rich/Yell/yell-huh-64bpm-2beats.ogg.import new file mode 100644 index 0000000..2c6edb8 --- /dev/null +++ b/Eat Da Rich/Yell/yell-huh-64bpm-2beats.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://ddb6q2atwjnd7" +path="res://.godot/imported/yell-huh-64bpm-2beats.ogg-870debaf0e36146504275ce8e6b9d92d.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Yell/yell-huh-64bpm-2beats.ogg" +dest_files=["res://.godot/imported/yell-huh-64bpm-2beats.ogg-870debaf0e36146504275ce8e6b9d92d.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg b/Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg new file mode 100644 index 0000000..dd7f974 Binary files /dev/null and b/Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg differ diff --git a/Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg.import b/Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg.import new file mode 100644 index 0000000..27b37c7 --- /dev/null +++ b/Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://dnhrd21qw37ls" +path="res://.godot/imported/yell-sounds-hits-64bpm-2beats.ogg-bbef1a8313168ca4f96befe94409532b.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Yell/yell-sounds-hits-64bpm-2beats.ogg" +dest_files=["res://.godot/imported/yell-sounds-hits-64bpm-2beats.ogg-bbef1a8313168ca4f96befe94409532b.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg b/Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg new file mode 100644 index 0000000..888c9b1 Binary files /dev/null and b/Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg differ diff --git a/Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg.import b/Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg.import new file mode 100644 index 0000000..68d46a0 --- /dev/null +++ b/Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://b6f56rp7p73b0" +path="res://.godot/imported/yell-sounds-swish-64bpm-1beat.ogg-75919c41abab1f59756112d59219892f.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Yell/yell-sounds-swish-64bpm-1beat.ogg" +dest_files=["res://.godot/imported/yell-sounds-swish-64bpm-1beat.ogg-75919c41abab1f59756112d59219892f.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Yell/yell-sounds-walking.ogg b/Eat Da Rich/Yell/yell-sounds-walking.ogg new file mode 100644 index 0000000..f3578cf Binary files /dev/null and b/Eat Da Rich/Yell/yell-sounds-walking.ogg differ diff --git a/Eat Da Rich/Yell/yell-sounds-walking.ogg.import b/Eat Da Rich/Yell/yell-sounds-walking.ogg.import new file mode 100644 index 0000000..ec27271 --- /dev/null +++ b/Eat Da Rich/Yell/yell-sounds-walking.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bml087280tmih" +path="res://.godot/imported/yell-sounds-walking.ogg-2dffadd24f36b11cb58a75d000e1fffd.oggvorbisstr" + +[deps] + +source_file="res://Eat Da Rich/Yell/yell-sounds-walking.ogg" +dest_files=["res://.godot/imported/yell-sounds-walking.ogg-2dffadd24f36b11cb58a75d000e1fffd.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0.0 +bpm=0.0 +beat_count=0 +bar_beats=4 diff --git a/Eat Da Rich/Yell/yell-sounds.flp b/Eat Da Rich/Yell/yell-sounds.flp new file mode 100644 index 0000000..f4fcb74 Binary files /dev/null and b/Eat Da Rich/Yell/yell-sounds.flp differ diff --git a/addons/rokojori_action_library b/addons/rokojori_action_library index 839b0bc..b5567a0 160000 --- a/addons/rokojori_action_library +++ b/addons/rokojori_action_library @@ -1 +1 @@ -Subproject commit 839b0bca39bd67c1ad4ef46fb5a8600f4b1f6466 +Subproject commit b5567a0bcd40cb93bc6cab612db90c0a601bf0f0