.
This commit is contained in:
parent
65fcd674c5
commit
2ff10313eb
@ -6,7 +6,7 @@
|
|||||||
[ext_resource type="SpineSkeletonFileResource" uid="uid://drnpfi1niq3od" path="res://assets/characters/coco/spine.skel" id="5_enjjr"]
|
[ext_resource type="SpineSkeletonFileResource" uid="uid://drnpfi1niq3od" path="res://assets/characters/coco/spine.skel" id="5_enjjr"]
|
||||||
[ext_resource type="Script" path="res://src/spine_sprite.gd" id="5_migwh"]
|
[ext_resource type="Script" path="res://src/spine_sprite.gd" id="5_migwh"]
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_lrt2l"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_xyxp2"]
|
||||||
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5xxpu"]
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5xxpu"]
|
||||||
@ -17,7 +17,7 @@ transparency = 1
|
|||||||
shading_mode = 0
|
shading_mode = 0
|
||||||
diffuse_mode = 3
|
diffuse_mode = 3
|
||||||
specular_mode = 1
|
specular_mode = 1
|
||||||
albedo_texture = SubResource("ViewportTexture_lrt2l")
|
albedo_texture = SubResource("ViewportTexture_xyxp2")
|
||||||
billboard_mode = 1
|
billboard_mode = 1
|
||||||
|
|
||||||
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
|
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
[ext_resource type="SpineSkeletonDataResource" uid="uid://dn5wtcrr40ahd" path="res://assets/characters/coco/coco.tres" id="2_8ur8k"]
|
[ext_resource type="SpineSkeletonDataResource" uid="uid://dn5wtcrr40ahd" path="res://assets/characters/coco/coco.tres" id="2_8ur8k"]
|
||||||
[ext_resource type="Script" path="res://src/spine_sprite.gd" id="3_m02kv"]
|
[ext_resource type="Script" path="res://src/spine_sprite.gd" id="3_m02kv"]
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_5o5t4"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_xy31o"]
|
||||||
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5xxpu"]
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5xxpu"]
|
||||||
@ -15,7 +15,7 @@ transparency = 1
|
|||||||
shading_mode = 0
|
shading_mode = 0
|
||||||
diffuse_mode = 3
|
diffuse_mode = 3
|
||||||
specular_mode = 1
|
specular_mode = 1
|
||||||
albedo_texture = SubResource("ViewportTexture_5o5t4")
|
albedo_texture = SubResource("ViewportTexture_xy31o")
|
||||||
billboard_mode = 1
|
billboard_mode = 1
|
||||||
|
|
||||||
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
|
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
|
||||||
|
|||||||
@ -32,7 +32,7 @@ max_value = 200.0
|
|||||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.56535, 83.9717), 420.727, 420.727, 0, 0, Vector2(0.729483, 200), 0.0, 0.0, 0, 0]
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.56535, 83.9717), 420.727, 420.727, 0, 0, Vector2(0.729483, 200), 0.0, 0.0, 0, 0]
|
||||||
point_count = 3
|
point_count = 3
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_uwa31"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_cfqc6"]
|
||||||
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
|
||||||
@ -42,7 +42,7 @@ no_depth_test = true
|
|||||||
shading_mode = 0
|
shading_mode = 0
|
||||||
diffuse_mode = 3
|
diffuse_mode = 3
|
||||||
specular_mode = 1
|
specular_mode = 1
|
||||||
albedo_texture = SubResource("ViewportTexture_uwa31")
|
albedo_texture = SubResource("ViewportTexture_cfqc6")
|
||||||
texture_filter = 0
|
texture_filter = 0
|
||||||
texture_repeat = false
|
texture_repeat = false
|
||||||
billboard_mode = 1
|
billboard_mode = 1
|
||||||
|
|||||||
121
assets/characters/megumi/megumi.tscn
Normal file
121
assets/characters/megumi/megumi.tscn
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
[gd_scene load_steps=17 format=3 uid="uid://cj7k48mei62om"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dj20ug78dpiv7" path="res://assets/fx/questionmark.png" id="1_yklwq"]
|
||||||
|
[ext_resource type="Script" path="res://src/viewport.gd" id="2_hqn5a"]
|
||||||
|
[ext_resource type="SpineAtlasResource" uid="uid://cihrnyj2oc1ri" path="res://assets/characters/megumi/spine.atlas" id="3_y5njy"]
|
||||||
|
[ext_resource type="SpineSkeletonFileResource" uid="uid://dt8npmbm4bckf" path="res://assets/characters/megumi/spine.skel" id="4_icsgk"]
|
||||||
|
[ext_resource type="Script" path="res://src/spine_sprite.gd" id="5_g61qc"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_s0iww"]
|
||||||
|
transparency = 1
|
||||||
|
shading_mode = 0
|
||||||
|
diffuse_mode = 3
|
||||||
|
specular_mode = 2
|
||||||
|
albedo_texture = ExtResource("1_yklwq")
|
||||||
|
billboard_mode = 3
|
||||||
|
particles_anim_h_frames = 1
|
||||||
|
particles_anim_v_frames = 1
|
||||||
|
particles_anim_loop = false
|
||||||
|
|
||||||
|
[sub_resource type="QuadMesh" id="QuadMesh_uqum3"]
|
||||||
|
material = SubResource("StandardMaterial3D_s0iww")
|
||||||
|
size = Vector2(0.1, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_px5jj"]
|
||||||
|
min_value = -200.0
|
||||||
|
max_value = 200.0
|
||||||
|
_data = [Vector2(0, 149.721), 0.0, 0.0, 0, 0, Vector2(0.519757, 25.9576), -848.296, -848.296, 0, 0, Vector2(0.966565, -105.541), 0.0, 0.0, 0, 0]
|
||||||
|
point_count = 3
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_l10dy"]
|
||||||
|
max_value = 200.0
|
||||||
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.56535, 83.9717), 420.727, 420.727, 0, 0, Vector2(0.729483, 200), 0.0, 0.0, 0, 0]
|
||||||
|
point_count = 3
|
||||||
|
|
||||||
|
[sub_resource type="ViewportTexture" id="ViewportTexture_rdjkf"]
|
||||||
|
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
|
||||||
|
transparency = 1
|
||||||
|
blend_mode = 4
|
||||||
|
no_depth_test = true
|
||||||
|
shading_mode = 0
|
||||||
|
diffuse_mode = 3
|
||||||
|
specular_mode = 1
|
||||||
|
albedo_texture = SubResource("ViewportTexture_rdjkf")
|
||||||
|
texture_filter = 0
|
||||||
|
texture_repeat = false
|
||||||
|
billboard_mode = 1
|
||||||
|
|
||||||
|
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
|
||||||
|
size = Vector2(2, 2)
|
||||||
|
|
||||||
|
[sub_resource type="SpineSkeletonDataResource" id="SpineSkeletonDataResource_3qxbc"]
|
||||||
|
atlas_res = ExtResource("3_y5njy")
|
||||||
|
skeleton_file_res = ExtResource("4_icsgk")
|
||||||
|
|
||||||
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_232ej"]
|
||||||
|
|
||||||
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wn1m5"]
|
||||||
|
|
||||||
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_cbp6h"]
|
||||||
|
|
||||||
|
[node name="NPC_Megumi" type="CharacterBody3D"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.48192, 0)
|
||||||
|
axis_lock_angular_x = true
|
||||||
|
axis_lock_angular_y = true
|
||||||
|
axis_lock_angular_z = true
|
||||||
|
|
||||||
|
[node name="CPUParticles3D" type="CPUParticles3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0637626, 0.611801, 0)
|
||||||
|
visible = false
|
||||||
|
cast_shadow = 0
|
||||||
|
gi_mode = 0
|
||||||
|
amount = 1
|
||||||
|
lifetime = 2.0
|
||||||
|
preprocess = 3.0
|
||||||
|
explosiveness = 0.5
|
||||||
|
mesh = SubResource("QuadMesh_uqum3")
|
||||||
|
direction = Vector3(1, 1, 0)
|
||||||
|
spread = 90.0
|
||||||
|
flatness = 1.0
|
||||||
|
gravity = Vector3(0, 0.1, 0)
|
||||||
|
linear_accel_curve = SubResource("Curve_px5jj")
|
||||||
|
anim_speed_max = 60.44
|
||||||
|
anim_speed_curve = SubResource("Curve_l10dy")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
||||||
|
layers = 1023
|
||||||
|
material_override = SubResource("StandardMaterial3D_a31vv")
|
||||||
|
cast_shadow = 0
|
||||||
|
gi_mode = 2
|
||||||
|
mesh = SubResource("QuadMesh_iwcmf")
|
||||||
|
script = ExtResource("2_hqn5a")
|
||||||
|
|
||||||
|
[node name="SubViewport" type="SubViewport" parent="MeshInstance3D"]
|
||||||
|
transparent_bg = true
|
||||||
|
positional_shadow_atlas_quad_0 = 0
|
||||||
|
canvas_cull_mask = 4294966273
|
||||||
|
size = Vector2i(3000, 3000)
|
||||||
|
|
||||||
|
[node name="SpineSprite" type="SpineSprite" parent="MeshInstance3D/SubViewport"]
|
||||||
|
light_mask = 0
|
||||||
|
visibility_layer = 3
|
||||||
|
position = Vector2(940, -20)
|
||||||
|
skeleton_data_res = SubResource("SpineSkeletonDataResource_3qxbc")
|
||||||
|
normal_material = SubResource("CanvasItemMaterial_232ej")
|
||||||
|
preview_skin = "default"
|
||||||
|
preview_animation = "animation"
|
||||||
|
preview_frame = false
|
||||||
|
preview_time = 0.733333
|
||||||
|
script = ExtResource("5_g61qc")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
|
transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0)
|
||||||
|
shape = SubResource("CylinderShape3D_wn1m5")
|
||||||
|
|
||||||
|
[node name="Area3D" type="Area3D" parent="." groups=["Player"]]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||||
|
shape = SubResource("CylinderShape3D_cbp6h")
|
||||||
@ -1,7 +1,7 @@
|
|||||||
spine.png
|
spine.png
|
||||||
size:377,950
|
size:377,957
|
||||||
filter:Linear,Linear
|
filter:Linear,Linear
|
||||||
scale:0.5
|
scale:0.5
|
||||||
BASE
|
BASE
|
||||||
bounds:2,2,373,946
|
bounds:2,2,373,953
|
||||||
offsets:0,0,374,946
|
offsets:0,0,374,953
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 307 KiB After Width: | Height: | Size: 324 KiB |
Binary file not shown.
@ -32,7 +32,7 @@ max_value = 200.0
|
|||||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.56535, 83.9717), 420.727, 420.727, 0, 0, Vector2(0.729483, 200), 0.0, 0.0, 0, 0]
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.56535, 83.9717), 420.727, 420.727, 0, 0, Vector2(0.729483, 200), 0.0, 0.0, 0, 0]
|
||||||
point_count = 3
|
point_count = 3
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_3u0i2"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_l7lc7"]
|
||||||
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
|
||||||
@ -41,7 +41,7 @@ blend_mode = 4
|
|||||||
shading_mode = 0
|
shading_mode = 0
|
||||||
diffuse_mode = 3
|
diffuse_mode = 3
|
||||||
specular_mode = 1
|
specular_mode = 1
|
||||||
albedo_texture = SubResource("ViewportTexture_3u0i2")
|
albedo_texture = SubResource("ViewportTexture_l7lc7")
|
||||||
texture_filter = 0
|
texture_filter = 0
|
||||||
texture_repeat = false
|
texture_repeat = false
|
||||||
billboard_mode = 1
|
billboard_mode = 1
|
||||||
@ -103,7 +103,6 @@ size = Vector2i(3000, 3000)
|
|||||||
[node name="SpineSprite" type="SpineSprite" parent="MeshInstance3D/SubViewport"]
|
[node name="SpineSprite" type="SpineSprite" parent="MeshInstance3D/SubViewport"]
|
||||||
position = Vector2(42, -207)
|
position = Vector2(42, -207)
|
||||||
skeleton_data_res = SubResource("SpineSkeletonDataResource_ufcij")
|
skeleton_data_res = SubResource("SpineSkeletonDataResource_ufcij")
|
||||||
meshes = true
|
|
||||||
preview_skin = "default"
|
preview_skin = "default"
|
||||||
preview_animation = "animation"
|
preview_animation = "animation"
|
||||||
preview_frame = true
|
preview_frame = true
|
||||||
|
|||||||
@ -17,11 +17,11 @@ func _physics_process(delta: float) -> void:
|
|||||||
|
|
||||||
Messagebus.DEBUG_XYZ.emit(self.global_transform.origin)
|
Messagebus.DEBUG_XYZ.emit(self.global_transform.origin)
|
||||||
|
|
||||||
if Input.is_key_pressed(KEY_SPACE) and is_on_floor():
|
if Input.is_action_just_pressed("jump") and is_on_floor():
|
||||||
self.velocity.y = delta * JUMP_VELOCITY
|
self.velocity.y = delta * JUMP_VELOCITY
|
||||||
var i = int(Input.get_axis("move_left", "move_right"))
|
var i = Input.get_axis("move_left", "move_right")
|
||||||
if i:
|
if snapped(i, 1):
|
||||||
last_direction = Vector3(i, 1, 1)
|
last_direction = Vector3(sign(i), 1, 1)
|
||||||
var t: Material = $MeshInstance3D.material_override
|
var t: Material = $MeshInstance3D.material_override
|
||||||
t.uv1_scale = last_direction
|
t.uv1_scale = last_direction
|
||||||
|
|
||||||
@ -33,11 +33,9 @@ func _physics_process(delta: float) -> void:
|
|||||||
camera.position.z = position.z + 4
|
camera.position.z = position.z + 4
|
||||||
|
|
||||||
func _unhandled_input(event: InputEvent) -> void:
|
func _unhandled_input(event: InputEvent) -> void:
|
||||||
if event is InputEventMouseButton:
|
if Input.is_action_pressed("zoom_in"):
|
||||||
if event.is_pressed():
|
camera.fov -= 1 * (5 if Input.is_key_pressed(KEY_SHIFT) else 1)
|
||||||
if event.button_index == MOUSE_BUTTON_WHEEL_UP:
|
camera.size -= 1 * (0.2 if Input.is_key_pressed(KEY_SHIFT) else 0.05)
|
||||||
camera.fov -= 1 * (5 if Input.is_key_pressed(KEY_SHIFT) else 1)
|
if Input.is_action_pressed("zoom_out"):
|
||||||
camera.size -= 1 * (0.2 if Input.is_key_pressed(KEY_SHIFT) else 0.05)
|
camera.fov += 1 * (5 if Input.is_key_pressed(KEY_SHIFT) else 1)
|
||||||
if event.button_index == MOUSE_BUTTON_WHEEL_DOWN:
|
camera.size += 1 * (0.2 if Input.is_key_pressed(KEY_SHIFT) else 0.05)
|
||||||
camera.fov += 1 * (5 if Input.is_key_pressed(KEY_SHIFT) else 1)
|
|
||||||
camera.size += 1 * (0.2 if Input.is_key_pressed(KEY_SHIFT) else 0.05)
|
|
||||||
|
|||||||
@ -6,17 +6,14 @@ const ACCEL = 4.5
|
|||||||
@onready var nav: NavigationAgent3D = $NavigationAgent3D
|
@onready var nav: NavigationAgent3D = $NavigationAgent3D
|
||||||
@export var target: CharacterBody3D = null
|
@export var target: CharacterBody3D = null
|
||||||
|
|
||||||
#func _ready() -> void:
|
|
||||||
#pass
|
|
||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(delta: float) -> void:
|
||||||
if not target:
|
if not target:
|
||||||
return
|
return
|
||||||
nav.set_target_position(target.global_position)
|
nav.set_target_position(target.global_position)
|
||||||
var current_location = global_transform.origin
|
var current_location = global_transform.origin
|
||||||
var next_location = nav.get_next_path_position()
|
var next_location = nav.get_next_path_position()
|
||||||
var new_velocity = (next_location - current_location).normalized() * SPEED
|
var dist = next_location - current_location
|
||||||
if !new_velocity.is_zero_approx():
|
var new_velocity = dist.normalized() * SPEED
|
||||||
|
if dist.length() > 0.5:
|
||||||
velocity = new_velocity
|
velocity = new_velocity
|
||||||
print(velocity)
|
|
||||||
move_and_slide()
|
move_and_slide()
|
||||||
|
|||||||
@ -33,7 +33,7 @@ max_value = 200.0
|
|||||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.56535, 83.9717), 420.727, 420.727, 0, 0, Vector2(0.729483, 200), 0.0, 0.0, 0, 0]
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.56535, 83.9717), 420.727, 420.727, 0, 0, Vector2(0.729483, 200), 0.0, 0.0, 0, 0]
|
||||||
point_count = 3
|
point_count = 3
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_k4oap"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_tg7lx"]
|
||||||
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
viewport_path = NodePath("MeshInstance3D/SubViewport")
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
|
||||||
@ -41,7 +41,7 @@ transparency = 1
|
|||||||
shading_mode = 0
|
shading_mode = 0
|
||||||
diffuse_mode = 3
|
diffuse_mode = 3
|
||||||
specular_mode = 1
|
specular_mode = 1
|
||||||
albedo_texture = SubResource("ViewportTexture_k4oap")
|
albedo_texture = SubResource("ViewportTexture_tg7lx")
|
||||||
billboard_mode = 1
|
billboard_mode = 1
|
||||||
|
|
||||||
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
|
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
|
||||||
@ -69,6 +69,8 @@ script = ExtResource("1_mbfmt")
|
|||||||
|
|
||||||
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
|
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
|
||||||
avoidance_enabled = true
|
avoidance_enabled = true
|
||||||
|
debug_enabled = true
|
||||||
|
debug_path_custom_color = Color(0.824113, 2.88785e-07, 0.434997, 1)
|
||||||
|
|
||||||
[node name="CPUParticles3D" type="CPUParticles3D" parent="."]
|
[node name="CPUParticles3D" type="CPUParticles3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0637626, 0.611801, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0637626, 0.611801, 0)
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
extends Node3D
|
extends Node3D
|
||||||
|
|
||||||
@onready var tawna: CharacterBody3D = $NPC_Tawna;
|
@onready var tawna: CharacterBody3D = $NPC_Tawna;
|
||||||
@export var player: CharacterBody3D = null;
|
@onready var player: CharacterBody3D = $NPC_Coco;
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
tawna = $NPC_Tawna
|
print(get_parent_node_3d())
|
||||||
tawna.target = player
|
tawna.target = player
|
||||||
|
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=34 format=3 uid="uid://b2b0sgltiefki"]
|
[gd_scene load_steps=35 format=3 uid="uid://b2b0sgltiefki"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://assets/levels/level_1.gd" id="1_irx2k"]
|
[ext_resource type="Script" path="res://assets/levels/level_1.gd" id="1_irx2k"]
|
||||||
[ext_resource type="Shader" path="res://assets/objects/box/box.gdshader" id="2_lq1r3"]
|
[ext_resource type="Shader" path="res://assets/objects/box/box.gdshader" id="2_lq1r3"]
|
||||||
@ -16,14 +16,16 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://bteibup5xcwah" path="res://assets/objects/kenney_nature-kit/Isometric/cliff_blockSlopeWalls_rock_NE.png" id="15_rqu8f"]
|
[ext_resource type="Texture2D" uid="uid://bteibup5xcwah" path="res://assets/objects/kenney_nature-kit/Isometric/cliff_blockSlopeWalls_rock_NE.png" id="15_rqu8f"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dsr0pdtda86ix" path="res://assets/characters/tawna/tawna.tscn" id="16_e5ajb"]
|
[ext_resource type="PackedScene" uid="uid://dsr0pdtda86ix" path="res://assets/characters/tawna/tawna.tscn" id="16_e5ajb"]
|
||||||
[ext_resource type="PackedScene" uid="uid://da0mv3cisoubi" path="res://assets/objects/switch/switch.tscn" id="17_1yuu1"]
|
[ext_resource type="PackedScene" uid="uid://da0mv3cisoubi" path="res://assets/objects/switch/switch.tscn" id="17_1yuu1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cj7k48mei62om" path="res://assets/characters/megumi/megumi.tscn" id="18_5v3lx"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b2maarsg7u3po" path="res://assets/characters/coco/npc_coco.tscn" id="18_tn7yc"]
|
[ext_resource type="PackedScene" uid="uid://b2maarsg7u3po" path="res://assets/characters/coco/npc_coco.tscn" id="18_tn7yc"]
|
||||||
|
|
||||||
[sub_resource type="Environment" id="Environment_06i34"]
|
[sub_resource type="Environment" id="Environment_06i34"]
|
||||||
background_mode = 1
|
background_mode = 1
|
||||||
background_color = Color(0.62307, 0.184048, 0.272975, 1)
|
background_color = Color(0.764667, 0.252225, 0.351088, 1)
|
||||||
sky_custom_fov = 1.5
|
sky_custom_fov = 1.5
|
||||||
ambient_light_source = 1
|
ambient_light_source = 1
|
||||||
reflected_light_source = 1
|
reflected_light_source = 1
|
||||||
|
adjustment_enabled = true
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_okcrm"]
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_okcrm"]
|
||||||
render_priority = 0
|
render_priority = 0
|
||||||
@ -61,14 +63,14 @@ data = PackedVector3Array(5, 0, 5, -5, 0, 5, 5, 0, -5, -5, 0, 5, -5, 0, -5, 5, 0
|
|||||||
vertices = PackedVector3Array(1.56663, 0.279793, -3.25, 1.56663, 0.279793, -2.75, 2.31663, 0.279793, -2.5, 4.31663, 0.279793, -3.25, 2.31663, 0.279793, -1.5, 1.56663, 0.279793, 2.5, 8.31663, 0.279793, 2.5, 8.31663, 0.279793, -4.5, 1.56663, 0.279793, -1.25, 4.31663, 0.279793, -4.5, 0.81663, 0.279793, -2.5, -5.68337, 0.279793, -3.25, 0.81663, 0.279793, -1.5, -5.68337, 0.279793, 2.5)
|
vertices = PackedVector3Array(1.56663, 0.279793, -3.25, 1.56663, 0.279793, -2.75, 2.31663, 0.279793, -2.5, 4.31663, 0.279793, -3.25, 2.31663, 0.279793, -1.5, 1.56663, 0.279793, 2.5, 8.31663, 0.279793, 2.5, 8.31663, 0.279793, -4.5, 1.56663, 0.279793, -1.25, 4.31663, 0.279793, -4.5, 0.81663, 0.279793, -2.5, -5.68337, 0.279793, -3.25, 0.81663, 0.279793, -1.5, -5.68337, 0.279793, 2.5)
|
||||||
polygons = [PackedInt32Array(1, 0, 2), PackedInt32Array(2, 0, 3), PackedInt32Array(4, 3, 5), PackedInt32Array(5, 3, 6), PackedInt32Array(6, 3, 7), PackedInt32Array(4, 2, 3), PackedInt32Array(5, 8, 4), PackedInt32Array(3, 9, 7), PackedInt32Array(1, 10, 0), PackedInt32Array(0, 10, 11), PackedInt32Array(8, 5, 12), PackedInt32Array(12, 5, 13), PackedInt32Array(12, 13, 11), PackedInt32Array(11, 10, 12)]
|
polygons = [PackedInt32Array(1, 0, 2), PackedInt32Array(2, 0, 3), PackedInt32Array(4, 3, 5), PackedInt32Array(5, 3, 6), PackedInt32Array(6, 3, 7), PackedInt32Array(4, 2, 3), PackedInt32Array(5, 8, 4), PackedInt32Array(3, 9, 7), PackedInt32Array(1, 10, 0), PackedInt32Array(0, 10, 11), PackedInt32Array(8, 5, 12), PackedInt32Array(12, 5, 13), PackedInt32Array(12, 13, 11), PackedInt32Array(11, 10, 12)]
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_y6vs7"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_3u6tt"]
|
||||||
viewport_path = NodePath("NavigationRegion3D/MeshInstance3D/SubViewport")
|
viewport_path = NodePath("NavigationRegion3D/MeshInstance3D/SubViewport")
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mdr1l"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mdr1l"]
|
||||||
transparency = 2
|
transparency = 2
|
||||||
alpha_scissor_threshold = 0.5
|
alpha_scissor_threshold = 0.5
|
||||||
alpha_antialiasing_mode = 0
|
alpha_antialiasing_mode = 0
|
||||||
albedo_texture = SubResource("ViewportTexture_y6vs7")
|
albedo_texture = SubResource("ViewportTexture_3u6tt")
|
||||||
metallic_specular = 0.0
|
metallic_specular = 0.0
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lrfyr"]
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lrfyr"]
|
||||||
@ -178,19 +180,21 @@ environment = SubResource("Environment_06i34")
|
|||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
transform = Transform3D(0.990369, 0.119902, -0.0692253, 0, 0.499998, 0.866027, 0.138451, -0.857686, 0.495183, 0, 2.5003, 2.77581)
|
transform = Transform3D(0.990369, 0.119902, -0.0692253, 0, 0.499998, 0.866027, 0.138451, -0.857686, 0.495183, 0, 2.5003, 2.77581)
|
||||||
light_energy = 0.6
|
|
||||||
shadow_enabled = true
|
shadow_enabled = true
|
||||||
directional_shadow_max_distance = 54.0
|
directional_shadow_max_distance = 54.0
|
||||||
|
|
||||||
[node name="NPC_Tawna" parent="." node_paths=PackedStringArray("target") instance=ExtResource("16_e5ajb")]
|
[node name="NPC_Tawna" parent="." node_paths=PackedStringArray("target") instance=ExtResource("16_e5ajb")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.326665, 0.480017, 0.00148714)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.833128, 0.480017, 1.21881)
|
||||||
target = NodePath("../NPC_Coco")
|
target = NodePath("../NPC_Pasadena")
|
||||||
|
|
||||||
[node name="NPC_EvilCoco" parent="." instance=ExtResource("12_o5554")]
|
[node name="NPC_EvilCoco" parent="." instance=ExtResource("12_o5554")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0.421477, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.446828, 0.421477, 0)
|
||||||
|
|
||||||
[node name="NPC_Pasadena" parent="." instance=ExtResource("8_s3ti8")]
|
[node name="NPC_Pasadena" parent="." instance=ExtResource("8_s3ti8")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.565993, 0.48192, -0.421152)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.43713, 0.48192, -0.421152)
|
||||||
|
|
||||||
|
[node name="NPC_Megumi" parent="." instance=ExtResource("18_5v3lx")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.36378, 0.154416, 0.308182)
|
||||||
|
|
||||||
[node name="NPC_Coco" parent="." instance=ExtResource("18_tn7yc")]
|
[node name="NPC_Coco" parent="." instance=ExtResource("18_tn7yc")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.99698, 0.48192, -1.00017)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.99698, 0.48192, -1.00017)
|
||||||
|
|||||||
@ -44,21 +44,25 @@ enabled=PackedStringArray("res://addons/Todo_Manager/plugin.cfg", "res://addons/
|
|||||||
move_forward={
|
move_forward={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":-1.0,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
move_left={
|
move_left={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":-1.0,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
move_right={
|
move_right={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
move_back={
|
move_back={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":1.0,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
quentincaffeino_console_toggle={
|
quentincaffeino_console_toggle={
|
||||||
@ -81,6 +85,24 @@ quentincaffeino_console_history_down={
|
|||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
jump={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
zoom_in={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":-1.0,"script":null)
|
||||||
|
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":8,"position":Vector2(330, 0),"global_position":Vector2(344, 70),"factor":1.0,"button_index":4,"canceled":false,"pressed":true,"double_click":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
zoom_out={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":1.0,"script":null)
|
||||||
|
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":16,"position":Vector2(261, 10),"global_position":Vector2(275, 80),"factor":1.0,"button_index":5,"canceled":false,"pressed":true,"double_click":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
[input_devices]
|
[input_devices]
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,6 @@ var CURRENT_LEVEL: Node3D = null
|
|||||||
var CURRENT_PLAYER: CharacterBody3D = null
|
var CURRENT_PLAYER: CharacterBody3D = null
|
||||||
var combined_signal : Observable
|
var combined_signal : Observable
|
||||||
|
|
||||||
signal TestSignal
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
var lvl: Resource = load("res://assets/levels/maps/debug1.tscn")
|
var lvl: Resource = load("res://assets/levels/maps/debug1.tscn")
|
||||||
var player: Resource = load("res://assets/characters/coco/coco.tscn")
|
var player: Resource = load("res://assets/characters/coco/coco.tscn")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user