Jam Update & Sync
This commit is contained in:
parent
87b8862953
commit
e9197fa9db
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,55 @@
|
|||
using Godot;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[GlobalClass,Tool]
|
||||
public partial class Eat:Action
|
||||
{
|
||||
[Export]
|
||||
public OnCollision onCollision;
|
||||
|
||||
[Export]
|
||||
public Action onAteSomething;
|
||||
|
||||
[Export]
|
||||
public Pointer pointer;
|
||||
|
||||
protected override void _OnTrigger()
|
||||
{
|
||||
var pigs = onCollision.GetNodesInside();
|
||||
|
||||
var hasEaten = false;
|
||||
|
||||
pigs.ForEach(
|
||||
( p )=>
|
||||
{
|
||||
var eatable = p.Get<Eatable>();
|
||||
|
||||
this.LogInfo( eatable );
|
||||
|
||||
if ( eatable == null )
|
||||
{
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Trigger( eatable.onGotEaten );
|
||||
|
||||
hasEaten = true;
|
||||
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
if ( hasEaten )
|
||||
{
|
||||
Trigger( onAteSomething );
|
||||
}
|
||||
|
||||
this.LogInfo( pigs );
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://dc0my6o3j486k
|
|
@ -0,0 +1,15 @@
|
|||
using Godot;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[GlobalClass,Tool]
|
||||
public partial class Eatable:Node
|
||||
{
|
||||
[Export]
|
||||
public Action onGotEaten;
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://h8la67dl42y4
|
|
@ -0,0 +1,30 @@
|
|||
using Godot;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[GlobalClass,Tool]
|
||||
public partial class ScaleUp:Action
|
||||
{
|
||||
[Export]
|
||||
public Node3D[] targets;
|
||||
|
||||
[Export]
|
||||
public float scaling = 1.25f;
|
||||
|
||||
protected override void _OnTrigger()
|
||||
{
|
||||
targets.ForEach(
|
||||
t =>
|
||||
{
|
||||
var sc = t.Scale;
|
||||
|
||||
t.Scale = sc * scaling;
|
||||
}
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://bpe1je6jiu2o2
|
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bdmbquc5yps54"
|
||||
path="res://.godot/imported/Money.gltf-729ad2677b0cb045671c3f2adc86fda2.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Eat Da Rich/Money/Money.gltf"
|
||||
dest_files=["res://.godot/imported/Money.gltf-729ad2677b0cb045671c3f2adc86fda2.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
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cs02ur3pv7kwq"
|
||||
path="res://.godot/imported/money-compact.glb-857870bd8978b572fcf7f8290a3e11aa.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Eat Da Rich/Money/MoneyCompact/money-compact.glb"
|
||||
dest_files=["res://.godot/imported/money-compact.glb-857870bd8978b572fcf7f8290a3e11aa.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
|
Binary file not shown.
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://k63g61oxg1sp"
|
||||
path="res://.godot/imported/money-compact2.glb-fc4dd43cab54c6c5f3d4a43ed3dbdd88.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Eat Da Rich/Money/MoneyCompact/money-compact2.glb"
|
||||
dest_files=["res://.godot/imported/money-compact2.glb-fc4dd43cab54c6c5f3d4a43ed3dbdd88.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
|
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ccpq8i381alnf"
|
||||
path.s3tc="res://.godot/imported/money-compact2__albedo000.png-b57818c884af0528bd8b45ca23f9512d.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "5a6ecba5eb14d3108c3029f87243ea4a"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Eat Da Rich/Money/MoneyCompact/money-compact2__albedo000.png"
|
||||
dest_files=["res://.godot/imported/money-compact2__albedo000.png-b57818c884af0528bd8b45ca23f9512d.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
|
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://yryk1n2epwxy"
|
||||
path.s3tc="res://.godot/imported/money-compact__albedo000.png-c5b47da4076e5295ea764f408606f539.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "5a6ecba5eb14d3108c3029f87243ea4a"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Eat Da Rich/Money/MoneyCompact/money-compact__albedo000.png"
|
||||
dest_files=["res://.godot/imported/money-compact__albedo000.png-c5b47da4076e5295ea764f408606f539.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
|
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c5ojsxsyg10j4"
|
||||
path.s3tc="res://.godot/imported/money.jpg-ced7865a4b62341b213b4fee5ffb473a.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Eat Da Rich/Money/money.jpg"
|
||||
dest_files=["res://.godot/imported/money.jpg-ced7865a4b62341b213b4fee5ffb473a.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
|
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bkkgxlv4m4htc"
|
||||
path.s3tc="res://.godot/imported/_albedo000.png-75d5892351f79b83a6badb6dd49024a0.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Eat Da Rich/Money/textures/_albedo000.png"
|
||||
dest_files=["res://.godot/imported/_albedo000.png-75d5892351f79b83a6badb6dd49024a0.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,46 @@
|
|||
using Godot;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[GlobalClass,Tool]
|
||||
public partial class Pig:Node
|
||||
{
|
||||
[Export]
|
||||
public Node3D player;
|
||||
|
||||
[Export]
|
||||
public RigidBody3D rigidBody3D;
|
||||
|
||||
[Export]
|
||||
public float speed = 5;
|
||||
|
||||
public override void _Process( double delta )
|
||||
{
|
||||
if ( player == null )
|
||||
{
|
||||
player = Unique<Player>.Get();
|
||||
}
|
||||
|
||||
if ( player == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ( Engine.IsEditorHint() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var direction = player.GlobalPosition - rigidBody3D.GlobalPosition;
|
||||
direction.Y = 0;
|
||||
|
||||
direction = direction.Normalized() * speed;
|
||||
|
||||
rigidBody3D.GlobalPosition += direction;
|
||||
rigidBody3D.LookAt( player.GlobalPosition );
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://b02vfydrj7lwv
|
|
@ -0,0 +1,7 @@
|
|||
[gd_resource type="Resource" script_class="SelectorFlag" load_steps=2 format=3 uid="uid://bj6alvuyy0ymt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dqb1n0314wgdn" path="res://addons/rokojori_action_library/Runtime/Selectors/SelectorFlag.cs" id="1_lglrk"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_lglrk")
|
||||
metadata/_custom_type_script = "uid://dqb1n0314wgdn"
|
|
@ -0,0 +1,300 @@
|
|||
[gd_scene load_steps=39 format=3 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://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="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"]
|
||||
[ext_resource type="Script" uid="uid://bec6skfqkb2ci" path="res://addons/rokojori_action_library/Runtime/Animation/Shake/ShakeEffect.cs" id="7_8pk3o"]
|
||||
[ext_resource type="Script" uid="uid://dnwqkymbre3vb" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Flash.cs" id="7_kaxbo"]
|
||||
[ext_resource type="Script" uid="uid://dy65lu5p2yf3j" path="res://addons/rokojori_action_library/Runtime/Actions/Sequence/Parallel.cs" id="7_no8e2"]
|
||||
[ext_resource type="Script" uid="uid://c5tm02yj1bhhx" path="res://addons/rokojori_action_library/Runtime/Animation/AnimationCurve.cs" id="8_35rgq"]
|
||||
[ext_resource type="Resource" uid="uid://cwdnm658q3jta" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Presets/Red Hit - Flash.tres" id="8_no8e2"]
|
||||
[ext_resource type="Resource" uid="uid://ch5nsa6yafs5l" path="res://addons/rokojori_action_library/Runtime/Time/TimeLines/GameTime.tres" id="9_oaox2"]
|
||||
[ext_resource type="Script" uid="uid://cbtqgliarexam" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/AnimateTransform.cs" id="10_y4t02"]
|
||||
[ext_resource type="Script" uid="uid://be4oc7tgr55vu" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/TransformCurve.cs" id="11_war2p"]
|
||||
[ext_resource type="Script" uid="uid://bqpiwp16h7614" path="res://addons/rokojori_action_library/Runtime/Animation/Transform/TransformAnimations.cs" id="12_l6ovb"]
|
||||
[ext_resource type="Script" uid="uid://bex6umukt0r8d" path="res://addons/rokojori_action_library/Runtime/Actions/Node/SetNodeState.cs" id="13_1fftn"]
|
||||
[ext_resource type="Script" uid="uid://dq5kae8x62gre" path="res://addons/rokojori_action_library/Runtime/Actions/RemoveNode.cs" id="18_dg4v6"]
|
||||
[ext_resource type="Script" uid="uid://b02vfydrj7lwv" path="res://Eat Da Rich/Pig/Pig.cs" id="19_8pk3o"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_id7i5"]
|
||||
height = 1.47037
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_dgrd7"]
|
||||
frequency = 0.0047
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_u71my"]
|
||||
seamless = true
|
||||
as_normal_map = true
|
||||
noise = SubResource("FastNoiseLite_dgrd7")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_u71my"]
|
||||
albedo_color = Color(0.855726, 0.485718, 0.475136, 1)
|
||||
normal_enabled = true
|
||||
normal_texture = SubResource("NoiseTexture2D_u71my")
|
||||
subsurf_scatter_enabled = true
|
||||
subsurf_scatter_strength = 1.0
|
||||
subsurf_scatter_skin_mode = true
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6c5hc"]
|
||||
albedo_color = Color(0.426682, 0.196358, 0.18977, 1)
|
||||
subsurf_scatter_enabled = true
|
||||
subsurf_scatter_strength = 1.0
|
||||
subsurf_scatter_skin_mode = true
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bsxqg"]
|
||||
albedo_color = Color(0.138843, 0.117268, 0.117268, 1)
|
||||
metallic = 0.48
|
||||
metallic_specular = 0.87
|
||||
roughness = 0.38
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_6c5hc"]
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7yqqi"]
|
||||
as_normal_map = true
|
||||
noise = SubResource("FastNoiseLite_6c5hc")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cnln1"]
|
||||
albedo_color = Color(0.600472, 0.324842, 0.156492, 1)
|
||||
metallic = 0.05
|
||||
metallic_specular = 0.87
|
||||
normal_enabled = true
|
||||
normal_texture = SubResource("NoiseTexture2D_7yqqi")
|
||||
uv1_triplanar = true
|
||||
|
||||
[sub_resource type="Curve" id="Curve_j2uji"]
|
||||
_data = [Vector2(0, 1), 0.0, -2.52056, 0, 0, Vector2(1, 0), -0.513513, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jwnpm"]
|
||||
script = ExtResource("8_35rgq")
|
||||
duration = 1.0
|
||||
durationRandomRange = 0.0
|
||||
delay = 0.0
|
||||
delayRandomRange = 0.0
|
||||
curve = SubResource("Curve_j2uji")
|
||||
scaleY = 1.0
|
||||
scaleRandomRange = 0.0
|
||||
|
||||
[sub_resource type="Curve" id="Curve_c1l7g"]
|
||||
_limits = [-1.0, 1.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 1, Vector2(1, 1), 0.0, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qub8t"]
|
||||
script = ExtResource("8_35rgq")
|
||||
duration = 1.0
|
||||
durationRandomRange = 0.0
|
||||
delay = 0.0
|
||||
delayRandomRange = 0.0
|
||||
curve = SubResource("Curve_c1l7g")
|
||||
scaleY = 30.0
|
||||
scaleRandomRange = 0.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vhqgj"]
|
||||
script = ExtResource("7_8pk3o")
|
||||
shakeAmountCurve = SubResource("Resource_jwnpm")
|
||||
shakeChangeFPSCurve = SubResource("Resource_qub8t")
|
||||
timeline = ExtResource("9_oaox2")
|
||||
smooth = true
|
||||
smoothingStrength = 0.477
|
||||
positionShake = Vector3(0.075, 0, 0.075)
|
||||
globalPosition = false
|
||||
repeatAndFlipFirstPosition = true
|
||||
rotationShake = Vector3(1, 1, 30)
|
||||
globalRotation = false
|
||||
scaleShake = Vector3(1, 1, 1)
|
||||
scaleShakeIsRelative = true
|
||||
|
||||
[sub_resource type="Curve" id="Curve_5we2d"]
|
||||
_data = [Vector2(0, 1), 0.0, -1.0, 0, 1, Vector2(1, 0), -1.0, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_1pe2k"]
|
||||
_limits = [0.0, 3.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 0.947368), 0.0, 12.9274, 0, 1, Vector2(0.100733, 2.24958), 0.0, 0.0, 0, 0, Vector2(0.283883, 0.395586), 0.0, 0.0, 0, 0, Vector2(0.437729, 1.03565), 0.0, 0.0, 0, 0, Vector2(0.661172, 0.417657), 0.0, 0.0, 0, 0, Vector2(1, 0), -0.499578, 0.0, 0, 0]
|
||||
point_count = 6
|
||||
|
||||
[sub_resource type="Curve" id="Curve_bpoiw"]
|
||||
_data = [Vector2(0, 1), 0.0, -1.0, 0, 1, Vector2(1, 0), -1.0, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_w3lcy"]
|
||||
script = ExtResource("11_war2p")
|
||||
transformTarget = 4
|
||||
operatorMode = 0
|
||||
duration = 0.5
|
||||
durationRandomRange = 0.0
|
||||
delay = 0.0
|
||||
delayRandomRange = 0.0
|
||||
xCurve = SubResource("Curve_5we2d")
|
||||
yCurve = SubResource("Curve_1pe2k")
|
||||
zCurve = SubResource("Curve_bpoiw")
|
||||
scaleAll = 1.0
|
||||
scaleAllRandomRange = 0.0
|
||||
metadata/_custom_type_script = "uid://be4oc7tgr55vu"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_t8ff4"]
|
||||
script = ExtResource("12_l6ovb")
|
||||
curves = [SubResource("Resource_w3lcy")]
|
||||
timeline = ExtResource("9_oaox2")
|
||||
metadata/_custom_type_script = "uid://bqpiwp16h7614"
|
||||
|
||||
[node name="Pig Scene" type="Node3D"]
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
shape = SubResource("CapsuleShape3D_id7i5")
|
||||
|
||||
[node name="Graphics" type="Node3D" parent="RigidBody3D"]
|
||||
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="Body" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.011898, -0.0175414, 0.0182385)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D2" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.159782, 0.160901, 0, -0.0997302, 0.257785, 0, 0, 0, 0.12952, 0.256615, 0.385415, 0)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D3" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(-0.201998, -0.100884, 9.02445e-09, -0.12608, 0.16163, 0, -1.76593e-08, -8.81955e-09, -0.103228, -0.350233, 0.385415, 0)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D4" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.525495, 0, 0, 0, 0.525495, 0, 0, 0, 0.301707, -0.000405312, 0.135923, -0.416048)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D9" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.332198, 0, 0, 0, 0.332198, 0, 0, 0, 0.332198, 0.477757, -0.273362, -0.209122)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D10" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.332198, 0, 0, 0, 0.332198, 0, 0, 0, 0.332198, -0.439013, -0.273362, -0.209122)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D11" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.332198, 0, 0, 0, 0.332198, 0, 0, 0, 0.332198, -0.350773, -0.273362, 0.26837)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D12" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.332198, 0, 0, 0, 0.332198, 0, 0, 0, 0.332198, 0.33382, -0.268165, 0.273206)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D7" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.189214, 0, -0.011165, 0, 0.190211, 0, 0.0194466, 0, 0.108635, 0.0993071, 0.141719, -0.51644)
|
||||
material = SubResource("StandardMaterial3D_6c5hc")
|
||||
|
||||
[node name="CSGSphere3D8" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.188923, 0, 0.0126864, 0, 0.190211, 0, -0.0220964, 0, 0.108468, -0.0744991, 0.141719, -0.534303)
|
||||
material = SubResource("StandardMaterial3D_6c5hc")
|
||||
|
||||
[node name="CSGSphere3D5" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.323608, 0, 0, 0, 0.323608, 0, 0, 0, 0.252396, -0.000405312, -0.149691, 0.440471)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGSphere3D6" type="CSGSphere3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.179967, 0, 0, 0, 0.174226, -0.0351703, 0, 0.0450935, 0.135886, -0.000405312, -0.248485, 0.533977)
|
||||
material = SubResource("StandardMaterial3D_u71my")
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.23395, -0.0439187, -0.0170006, 0.079734, 0.128863, -0.0057941, 0.0763209, -1.15745e-09, 0.0581659, 0.163481, 0.428784, -0.32263)
|
||||
material = SubResource("StandardMaterial3D_bsxqg")
|
||||
|
||||
[node name="CSGBox3D2" type="CSGBox3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.213616, 0.0685158, 0.0154939, -0.124488, 0.117644, -0.00896392, -0.0760623, -0.00012076, 0.0581846, -0.150858, 0.444555, -0.323829)
|
||||
material = SubResource("StandardMaterial3D_bsxqg")
|
||||
|
||||
[node name="CSGBox3D3" type="CSGBox3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.305897, 0, 0, 0, 0.203093, -0.0203026, 0, 0.0129341, 0.318793, -0.0111122, 0.520152, 0.0322354)
|
||||
material = SubResource("StandardMaterial3D_cnln1")
|
||||
|
||||
[node name="CSGBox3D6" type="CSGBox3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.119464, 0.111607, 7.02111e-10, -0.0468186, 0.25913, -0.0294627, 0.0147304, -0.0815293, -0.093643, 0.075932, 0.439861, -0.143501)
|
||||
material = SubResource("StandardMaterial3D_cnln1")
|
||||
|
||||
[node name="CSGBox3D7" type="CSGBox3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.122434, -0.0934989, 0, 0.0392224, 0.265571, -0.0294626, -0.0123404, -0.0835558, -0.093643, -0.0684285, 0.434356, -0.14075)
|
||||
material = SubResource("StandardMaterial3D_cnln1")
|
||||
|
||||
[node name="CSGBox3D4" type="CSGBox3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.322653, 0, 0, 0, 0.187757, -0.0956778, 0, 0.104032, 0.172678, -0.0111122, 0.405746, 0.296903)
|
||||
material = SubResource("StandardMaterial3D_cnln1")
|
||||
|
||||
[node name="CSGBox3D5" type="CSGBox3D" parent="RigidBody3D/Graphics/Offset"]
|
||||
transform = Transform3D(0.22669, -0.011877, 0, 0.00783738, 0.0662055, -0.125005, 0.0160406, 0.135501, 0.0610773, 0.00179768, 0.243894, 0.438004)
|
||||
material = SubResource("StandardMaterial3D_cnln1")
|
||||
|
||||
[node name="Pointable" type="Node3D" parent="RigidBody3D" node_paths=PackedStringArray("highlightTargets")]
|
||||
script = ExtResource("1_w2vv5")
|
||||
highlightTargets = [null]
|
||||
metadata/_custom_type_script = "uid://dla1wn2mlw2d0"
|
||||
|
||||
[node name="Selectable" type="Node" parent="RigidBody3D"]
|
||||
script = ExtResource("2_uei4a")
|
||||
flags = [ExtResource("3_xqs7e")]
|
||||
metadata/_custom_type_script = "uid://c5vxa38rgr24k"
|
||||
|
||||
[node name="Eatable" type="Node" parent="RigidBody3D" node_paths=PackedStringArray("onGotEaten")]
|
||||
script = ExtResource("4_kaxbo")
|
||||
onGotEaten = NodePath("../Once")
|
||||
metadata/_custom_type_script = "uid://h8la67dl42y4"
|
||||
|
||||
[node name="Once" type="Node" parent="RigidBody3D" node_paths=PackedStringArray("action")]
|
||||
script = ExtResource("5_uei4a")
|
||||
action = NodePath("ActionSequence")
|
||||
metadata/_custom_type_script = "uid://crm7o7w0gumhn"
|
||||
|
||||
[node name="ActionSequence" type="Node" parent="RigidBody3D/Once"]
|
||||
script = ExtResource("5_no8e2")
|
||||
metadata/_custom_type_script = "uid://ceaglilesxsi4"
|
||||
|
||||
[node name="Parallel" type="Node" parent="RigidBody3D/Once/ActionSequence"]
|
||||
script = ExtResource("7_no8e2")
|
||||
mode = 0
|
||||
metadata/_custom_type_script = "uid://dy65lu5p2yf3j"
|
||||
|
||||
[node name="Flash" type="Node" parent="RigidBody3D/Once/ActionSequence/Parallel" node_paths=PackedStringArray("targets")]
|
||||
script = ExtResource("7_kaxbo")
|
||||
flashEffect = ExtResource("8_no8e2")
|
||||
targets = [NodePath("../../../../Graphics/Offset/Body")]
|
||||
metadata/_custom_type_script = "uid://dnwqkymbre3vb"
|
||||
|
||||
[node name="Shake" type="Node" parent="RigidBody3D/Once/ActionSequence/Parallel" node_paths=PackedStringArray("targets")]
|
||||
script = ExtResource("6_dg4v6")
|
||||
shakeEffect = SubResource("Resource_vhqgj")
|
||||
targets = [NodePath("../../../../Graphics/Offset")]
|
||||
metadata/_custom_type_script = "uid://bnhnintao4qu0"
|
||||
|
||||
[node name="SetNodeState2" type="Node" parent="RigidBody3D/Once/ActionSequence" node_paths=PackedStringArray("disable")]
|
||||
script = ExtResource("13_1fftn")
|
||||
disable = [NodePath("../../../CollisionShape3D")]
|
||||
metadata/_custom_type_script = "uid://bex6umukt0r8d"
|
||||
|
||||
[node name="AnimateTransform" type="Node" parent="RigidBody3D/Once/ActionSequence" node_paths=PackedStringArray("target")]
|
||||
script = ExtResource("10_y4t02")
|
||||
animations = SubResource("Resource_t8ff4")
|
||||
target = NodePath("../../../Graphics")
|
||||
metadata/_custom_type_script = "uid://cbtqgliarexam"
|
||||
|
||||
[node name="SetNodeState" type="Node" parent="RigidBody3D/Once/ActionSequence" node_paths=PackedStringArray("disable")]
|
||||
script = ExtResource("13_1fftn")
|
||||
disable = [null]
|
||||
metadata/_custom_type_script = "uid://bex6umukt0r8d"
|
||||
|
||||
[node name="RemoveNode" type="Node" parent="RigidBody3D/Once/ActionSequence" node_paths=PackedStringArray("target")]
|
||||
script = ExtResource("18_dg4v6")
|
||||
target = NodePath("../../../..")
|
||||
metadata/_custom_type_script = "uid://dq5kae8x62gre"
|
||||
|
||||
[node name="Pig" type="Node" parent="." node_paths=PackedStringArray("rigidBody3D")]
|
||||
script = ExtResource("19_8pk3o")
|
||||
rigidBody3D = NodePath("../RigidBody3D")
|
||||
speed = 0.01
|
||||
metadata/_custom_type_script = "uid://b02vfydrj7lwv"
|
|
@ -0,0 +1,43 @@
|
|||
using Godot;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[GlobalClass,Tool]
|
||||
public partial class PigCreator:Action
|
||||
{
|
||||
[Export]
|
||||
public float radius = 100;
|
||||
|
||||
[Export]
|
||||
public PackedScene packedScene;
|
||||
|
||||
[Export]
|
||||
public Node container;
|
||||
|
||||
[Export]
|
||||
public int maxPigs = 10;
|
||||
|
||||
protected override void _OnTrigger()
|
||||
{
|
||||
if ( container.GetChildCount() >= maxPigs )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var n = packedScene.Instantiate() as Node3D;
|
||||
|
||||
if ( n == null )
|
||||
{
|
||||
this.LogInfo( n );
|
||||
return;
|
||||
}
|
||||
|
||||
container.AddChild( n );
|
||||
|
||||
n.GlobalPosition = GodotRandom.Get().InCube() * new Vector3( 1, 0, 1 ) * radius + new Vector3( 0, 0.5f, 0 );
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://bk4ipnkoaer0b
|
|
@ -0,0 +1,13 @@
|
|||
using Godot;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[GlobalClass,Tool]
|
||||
public partial class Player:Node3D
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
uid://dtes5ft8aakod
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Godot.NET.Sdk/4.4.0">
|
||||
<Project Sdk="Godot.NET.Sdk/4.4.1">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<Project Sdk="Godot.NET.Sdk/4.4.0">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
<RootNamespace>ExampleGrass</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -1,6 +1,6 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example Grass", "Example Grass.csproj", "{E27E6F3E-3D8F-4CD9-B99F-4463F500BA36}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example Grass", "Example Grass.csproj", "{DDBE4F41-E1B3-455E-AA22-850DA12747E7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -9,11 +9,11 @@ Global
|
|||
ExportRelease|Any CPU = ExportRelease|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E27E6F3E-3D8F-4CD9-B99F-4463F500BA36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E27E6F3E-3D8F-4CD9-B99F-4463F500BA36}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E27E6F3E-3D8F-4CD9-B99F-4463F500BA36}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
||||
{E27E6F3E-3D8F-4CD9-B99F-4463F500BA36}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
||||
{E27E6F3E-3D8F-4CD9-B99F-4463F500BA36}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
||||
{E27E6F3E-3D8F-4CD9-B99F-4463F500BA36}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
||||
{DDBE4F41-E1B3-455E-AA22-850DA12747E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DDBE4F41-E1B3-455E-AA22-850DA12747E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DDBE4F41-E1B3-455E-AA22-850DA12747E7}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
||||
{DDBE4F41-E1B3-455E-AA22-850DA12747E7}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
||||
{DDBE4F41-E1B3-455E-AA22-850DA12747E7}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
||||
{DDBE4F41-E1B3-455E-AA22-850DA12747E7}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
Subproject commit e5166dd7cfcf535e717546a8fa75e0fbb3d5a384
|
||||
Subproject commit 08dbd8681b5c5928111156c733ff27f0555d8f8f
|
Loading…
Reference in New Issue