Bullets Update
This commit is contained in:
parent
e840667424
commit
1239cad137
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
|
@ -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
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://drt3gv8ea8py
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://c8reno48vdlsq
|
|
@ -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"]
|
Binary file not shown.
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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
|
|
@ -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"
|
|
@ -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"
|
|
@ -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")
|
|
@ -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<EatDaRichGame>.Get();
|
||||
|
||||
edr.ChangeTime( duration );
|
||||
|
||||
var timeInfo = Unique<TimeInfo>.Get();
|
||||
|
||||
var symbol = duration > 0 ? "+" : "-";
|
||||
var value = Mathf.Abs( duration )._F();
|
||||
timeInfo.Show( symbol + value, 2 );
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://bbxlk0waamc63
|
File diff suppressed because it is too large
Load Diff
|
@ -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<EatDaRichGame>.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<TimeInfo>.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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
|
@ -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<OnState>(
|
||||
( sta )=>
|
||||
{
|
||||
if ( sta.state == this.state )
|
||||
if ( sta.state == state )
|
||||
{
|
||||
Action.Trigger( sta.action );
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://hdojtfd44ohk
|
|
@ -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<Hitter>();
|
||||
|
||||
this.LogInfo( "Was hit by:", n, hitter );
|
||||
|
||||
if ( hitter != null )
|
||||
{
|
||||
hitter.hitable = this;
|
||||
Action.Trigger( hitter.onHit );
|
||||
hitter.hitable = null;
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://b5uptbobryf55
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://bdqwss3wvwfvn
|
|
@ -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"
|
Binary file not shown.
Binary file not shown.
|
@ -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
|
|
@ -23,6 +23,23 @@ namespace Rokojori
|
|||
[Export]
|
||||
public bool alive = true;
|
||||
|
||||
[Export]
|
||||
public PackedScene packedBullet;
|
||||
|
||||
public void Shoot( Node3D bulletsContainer )
|
||||
{
|
||||
var bulletRoot = packedBullet.Instantiate<AnimatableBody3D>();
|
||||
bulletsContainer.AddChild( bulletRoot );
|
||||
|
||||
bulletRoot.GlobalPosition = rigidBody3D.GlobalPosition;
|
||||
var bullet = bulletRoot.Get<Bullet>();
|
||||
|
||||
Action.Trigger( bullet.onActivate );
|
||||
|
||||
var moveTowards = bulletRoot.Get<MoveTowards>();
|
||||
moveTowards.goal = Unique<Player>.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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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<EatDaRichGame>.Get();
|
||||
|
||||
var chance = MathX.MapClamped( edr.secondsPlaying, 0, duration, startChance, endChance );
|
||||
|
||||
if ( ! random.Chance( chance ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var pigContainers = pigContainer.GetDirectChildren<Node>();
|
||||
var selected = GodotRandom.Get().From( pigContainers );
|
||||
|
||||
if ( selected == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var pig = selected.Get<Pig>();
|
||||
|
||||
pig.Shoot( bulletsContainer );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://egfirielic7f
|
Binary file not shown.
|
@ -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
|
|
@ -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"
|
|
@ -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<Label3D>( "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();
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://ueakmd145ef5
|
Binary file not shown.
|
@ -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={}
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://d3cmf8aos027i
|
|
@ -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<EatDaRichGame>.Get();
|
||||
|
||||
edr.numRich ++;
|
||||
counter.locale = LocaleText.Create( edr.numRich + "" );
|
||||
|
||||
Action.Trigger( onCountUp );
|
||||
}
|
||||
|
|
|
@ -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"
|
Binary file not shown.
|
@ -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
|
Binary file not shown.
|
@ -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
|
|
@ -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
|
Binary file not shown.
|
@ -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
|
Binary file not shown.
|
@ -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
|
Binary file not shown.
|
@ -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
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
Subproject commit 839b0bca39bd67c1ad4ef46fb5a8600f4b1f6466
|
||||
Subproject commit b5567a0bcd40cb93bc6cab612db90c0a601bf0f0
|
Loading…
Reference in New Issue