Compare commits
12 Commits
70fde68087
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8f75b94a0 | ||
|
|
9c9fd7f91c | ||
|
|
0da3a4eedc | ||
|
|
3d4e8bd619 | ||
|
|
d99cd1cd69 | ||
|
|
9d2db4edda | ||
|
|
3b18ba47a0 | ||
|
|
8617d4d4e0 | ||
|
|
e2be208288 | ||
|
|
a02a85e47a | ||
|
|
8a8f135bb0 | ||
|
|
1dec689a68 |
49
Concepts/Ziggi.md
Normal file
49
Concepts/Ziggi.md
Normal file
@@ -0,0 +1,49 @@
|
||||

|
||||
|
||||
# Top
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
# Study
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
BIN
Concepts/character_arc.png
Executable file
BIN
Concepts/character_arc.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 352 KiB |
BIN
Concepts/paul_evans.png
Normal file
BIN
Concepts/paul_evans.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 MiB |
BIN
Concepts/transparent_a_ziggi.png
Normal file
BIN
Concepts/transparent_a_ziggi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
4
Examples/mvp-walk-with-collision/.editorconfig
Executable file
4
Examples/mvp-walk-with-collision/.editorconfig
Executable file
@@ -0,0 +1,4 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
2
Examples/mvp-walk-with-collision/.gitattributes
vendored
Executable file
2
Examples/mvp-walk-with-collision/.gitattributes
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
# Normalize EOL for all files that Git considers text files.
|
||||
* text=auto eol=lf
|
||||
3
Examples/mvp-walk-with-collision/.gitignore
vendored
Executable file
3
Examples/mvp-walk-with-collision/.gitignore
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
/android/
|
||||
@@ -0,0 +1,17 @@
|
||||
extends "res://Entities/Characters/Movers/mover.gd"
|
||||
|
||||
func _input(event):
|
||||
if event is InputEventKey:
|
||||
match event.keycode:
|
||||
KEY_W:
|
||||
self.state_move_forward = event.pressed
|
||||
KEY_A:
|
||||
self.state_move_left = event.pressed
|
||||
KEY_S:
|
||||
self.state_move_backward = event.pressed
|
||||
KEY_D:
|
||||
self.state_move_right = event.pressed
|
||||
KEY_Q:
|
||||
self.state_turn_left = event.pressed
|
||||
KEY_E:
|
||||
self.state_turn_right = event.pressed
|
||||
@@ -0,0 +1 @@
|
||||
uid://be8ook47nacm3
|
||||
@@ -0,0 +1,100 @@
|
||||
class_name Mover extends Node
|
||||
|
||||
var speed = 1.0
|
||||
|
||||
func _input(event):
|
||||
return
|
||||
|
||||
func to_move_rotate(global_transform, delta: float):
|
||||
var mv = Vector3.ZERO
|
||||
var rot = 0.0
|
||||
for state in _states():
|
||||
var duo = _duo_for_state(global_transform, delta, state)
|
||||
mv += duo[0]
|
||||
rot += duo[1]
|
||||
return [mv, rot]
|
||||
|
||||
var state_move_forward = false
|
||||
var state_move_left = false
|
||||
var state_move_backward = false
|
||||
var state_move_right = false
|
||||
var state_turn_left = false
|
||||
var state_turn_right = false
|
||||
|
||||
enum {
|
||||
STATE_MOVING_FORWARD,
|
||||
STATE_MOVING_LEFT,
|
||||
STATE_MOVING_RIGHT,
|
||||
STATE_MOVING_BACKWARD,
|
||||
STATE_TURNING_LEFT,
|
||||
STATE_TURNING_RIGHT,
|
||||
STATE_IDLE
|
||||
}
|
||||
|
||||
func _states():
|
||||
var result = _states_moving() + _states_turning()
|
||||
if result.is_empty():
|
||||
result = [STATE_IDLE]
|
||||
return result
|
||||
|
||||
func _states_moving():
|
||||
var moving_forward = self.state_move_forward and not self.state_move_backward
|
||||
var moving_left = self.state_move_left and not self.state_move_right
|
||||
var moving_right = self.state_move_right and not self.state_move_left
|
||||
var moving_backward = self.state_move_backward and not self.state_move_forward
|
||||
if moving_forward and moving_left:
|
||||
return [STATE_MOVING_LEFT, STATE_MOVING_FORWARD]
|
||||
elif moving_forward and moving_right:
|
||||
return [STATE_MOVING_RIGHT, STATE_MOVING_FORWARD]
|
||||
elif moving_forward:
|
||||
return [STATE_MOVING_FORWARD]
|
||||
elif moving_backward and moving_left:
|
||||
return [STATE_MOVING_LEFT, STATE_MOVING_BACKWARD]
|
||||
elif moving_backward and moving_right:
|
||||
return [STATE_MOVING_RIGHT, STATE_MOVING_BACKWARD]
|
||||
elif moving_backward:
|
||||
return [STATE_MOVING_BACKWARD]
|
||||
elif moving_left:
|
||||
return [STATE_MOVING_LEFT]
|
||||
elif moving_right:
|
||||
return [STATE_MOVING_RIGHT]
|
||||
return []
|
||||
|
||||
func _states_turning():
|
||||
if self.state_turn_left and not self.state_turn_right:
|
||||
return [STATE_TURNING_LEFT]
|
||||
elif self.state_turn_right and not self.state_turn_left:
|
||||
return [STATE_TURNING_RIGHT]
|
||||
return []
|
||||
|
||||
func _duo_for_state(global_transform, delta: float, state):
|
||||
var direction = Vector2.ZERO
|
||||
var rotation = 0.0
|
||||
match state:
|
||||
STATE_MOVING_FORWARD:
|
||||
direction.y = -1
|
||||
STATE_MOVING_BACKWARD:
|
||||
direction.y = 1
|
||||
STATE_MOVING_LEFT:
|
||||
direction.x = -1
|
||||
STATE_MOVING_RIGHT:
|
||||
direction.x = 1
|
||||
STATE_TURNING_LEFT:
|
||||
rotation = speed * delta
|
||||
STATE_TURNING_RIGHT:
|
||||
rotation = -speed * delta
|
||||
STATE_IDLE:
|
||||
pass
|
||||
if direction == Vector2.ZERO:
|
||||
return [Vector3.ZERO, rotation]
|
||||
direction = direction.normalized()
|
||||
|
||||
var forward = global_transform.basis.z
|
||||
var right = global_transform.basis.x
|
||||
var relative_direction = (forward * direction.y + right * direction.x)
|
||||
|
||||
relative_direction.x *= speed * delta
|
||||
relative_direction.z *= speed * delta
|
||||
#relative_direction.y = -speed
|
||||
|
||||
return [relative_direction, rotation]
|
||||
1
Examples/mvp-walk-with-collision/Entities/Characters/Movers/mover.gd.uid
Executable file
1
Examples/mvp-walk-with-collision/Entities/Characters/Movers/mover.gd.uid
Executable file
@@ -0,0 +1 @@
|
||||
uid://cpe76cgad0r7d
|
||||
@@ -0,0 +1,5 @@
|
||||
extends "res://Entities/Characters/Players/Kobolds/kobold.gd"
|
||||
|
||||
func _ready():
|
||||
super()
|
||||
self.mover.speed = 1.5
|
||||
@@ -0,0 +1 @@
|
||||
uid://djb32mbaia5hv
|
||||
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dh8s2ahe8nmgn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_2kj0s"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2kj0s"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_w1w5b"]
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_2iju7"]
|
||||
|
||||
[node name="CharacterBody3D" type="CharacterBody3D"]
|
||||
script = ExtResource("1_2kj0s")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.410002, 0)
|
||||
shape = SubResource("CapsuleShape3D_2kj0s")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.410002, 0)
|
||||
mesh = SubResource("CapsuleMesh_w1w5b")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.592745, 1.23893)
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.101041, 0, 0, 0, -0.000156024, 0.110026, 0, -0.0278485, -0.000616427, 0.313608, 0.598366, 0)
|
||||
mesh = SubResource("CylinderMesh_2iju7")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.101041, 0, 0, 0, -0.000156024, 0.110026, 0, -0.0278485, -0.000616427, -0.32095, 0.598366, 0)
|
||||
mesh = SubResource("CylinderMesh_2iju7")
|
||||
skeleton = NodePath("")
|
||||
@@ -0,0 +1,4 @@
|
||||
extends "res://Entities/Characters/Players/player.gd"
|
||||
|
||||
func _ready():
|
||||
self.mover = preload("res://Entities/Characters/Movers/Players/wasd.gd").new()
|
||||
@@ -0,0 +1 @@
|
||||
uid://y7r1crnxumyx
|
||||
@@ -0,0 +1,4 @@
|
||||
extends "res://Entities/Characters/character.gd"
|
||||
|
||||
func _input(event):
|
||||
self.mover._input(event)
|
||||
@@ -0,0 +1 @@
|
||||
uid://brx1bih43d41c
|
||||
@@ -0,0 +1,12 @@
|
||||
extends PhysicsBody3D
|
||||
|
||||
var mover: Mover = preload("res://Entities/Characters/Movers/mover.gd").new()
|
||||
|
||||
func _physics_process(delta: float):
|
||||
var duo = self.mover.to_move_rotate(self.global_transform, delta)
|
||||
self._physics_process_with(duo[0], duo[1])
|
||||
|
||||
func _physics_process_with(vel, rot):
|
||||
self.velocity = vel
|
||||
self.rotate_object_local(Vector3.UP, rot)
|
||||
self.move_and_collide(self.velocity)
|
||||
1
Examples/mvp-walk-with-collision/Entities/Characters/character.gd.uid
Executable file
1
Examples/mvp-walk-with-collision/Entities/Characters/character.gd.uid
Executable file
@@ -0,0 +1 @@
|
||||
uid://uj4hyacvqtqa
|
||||
1
Examples/mvp-walk-with-collision/icon.svg
Executable file
1
Examples/mvp-walk-with-collision/icon.svg
Executable file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
||||
|
After Width: | Height: | Size: 994 B |
37
Examples/mvp-walk-with-collision/icon.svg.import
Normal file
37
Examples/mvp-walk-with-collision/icon.svg.import
Normal file
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ba6ev60elqa6r"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
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=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
21
Examples/mvp-walk-with-collision/project.godot
Normal file
21
Examples/mvp-walk-with-collision/project.godot
Normal file
@@ -0,0 +1,21 @@
|
||||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="mvp-walk-with-collision"
|
||||
run/main_scene="uid://sq04wsxbebev"
|
||||
config/features=PackedStringArray("4.4", "GL Compatibility")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
28
Examples/mvp-walk-with-collision/root.tscn
Normal file
28
Examples/mvp-walk-with-collision/root.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dh8s2ahe8nmgn" path="res://Entities/Characters/Players/Kobolds/Baby/baby.tscn" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="DirectionalLight3D2" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.609305, -0.410386, 0.678477, 0.791335, 0.369058, -0.487427, -0.0503645, 0.833894, 0.549621, 3.06633, 1.15689, 0.070383)
|
||||
light_energy = 0.5
|
||||
|
||||
[node name="baby_tscn" parent="." instance=ExtResource("1_pq8q7")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0585822, 0.0336914, 0.24129)
|
||||
48
Examples/mvp-walk-with-collision/root.tscn10232847602.tmp
Executable file
48
Examples/mvp-walk-with-collision/root.tscn10232847602.tmp
Executable file
@@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_pq8q7"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="baby"]
|
||||
transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, 0.57384, 0.489256, 0)
|
||||
mesh = SubResource("CylinderMesh_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D3" type="MeshInstance3D" parent="baby"]
|
||||
transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, -0.585222, 0.489256, 0)
|
||||
mesh = SubResource("CylinderMesh_pq8q7")
|
||||
48
Examples/mvp-walk-with-collision/root.tscn10241497482.tmp
Executable file
48
Examples/mvp-walk-with-collision/root.tscn10241497482.tmp
Executable file
@@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_pq8q7"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="baby"]
|
||||
transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, 0.57384, 0.489256, 0)
|
||||
mesh = SubResource("CylinderMesh_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D3" type="MeshInstance3D" parent="baby"]
|
||||
transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, -0.585222, 0.489256, 0)
|
||||
mesh = SubResource("CylinderMesh_pq8q7")
|
||||
38
Examples/mvp-walk-with-collision/root.tscn5725732849.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn5725732849.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Player/Kobold/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn5738045841.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn5738045841.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Player/Kobold/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn5781059452.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn5781059452.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Player/Kobold/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn5842675668.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn5842675668.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn6642226529.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn6642226529.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn6654517726.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn6654517726.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn6662464709.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn6662464709.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn6674545067.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn6674545067.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
38
Examples/mvp-walk-with-collision/root.tscn6686931334.tmp
Executable file
38
Examples/mvp-walk-with-collision/root.tscn6686931334.tmp
Executable file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"]
|
||||
size = Vector3(1, 0.0673828, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_vho56")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_vho56")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533)
|
||||
|
||||
[node name="baby" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0)
|
||||
script = ExtResource("1_pq8q7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"]
|
||||
shape = SubResource("CapsuleShape3D_pq8q7")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"]
|
||||
mesh = SubResource("CapsuleMesh_pyidc")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="baby"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)
|
||||
4
Examples/tutorial-oyvtzwujcy0/.editorconfig
Normal file
4
Examples/tutorial-oyvtzwujcy0/.editorconfig
Normal file
@@ -0,0 +1,4 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
2
Examples/tutorial-oyvtzwujcy0/.gitattributes
vendored
Normal file
2
Examples/tutorial-oyvtzwujcy0/.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Normalize EOL for all files that Git considers text files.
|
||||
* text=auto eol=lf
|
||||
3
Examples/tutorial-oyvtzwujcy0/.gitignore
vendored
Normal file
3
Examples/tutorial-oyvtzwujcy0/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
/android/
|
||||
@@ -0,0 +1,28 @@
|
||||
class_name Character extends CharacterBody2D
|
||||
|
||||
@export var speed := 135.0
|
||||
|
||||
# Xf2RduncoNU
|
||||
func _physics_process(_delta: float) -> void:
|
||||
var new_direction = Vector2.ZERO
|
||||
if Input.is_action_pressed("left"):
|
||||
new_direction.x -= 1.0
|
||||
if Input.is_action_pressed("right"):
|
||||
new_direction.x += 1.0
|
||||
if Input.is_action_pressed("up"):
|
||||
new_direction.y -= 1.0
|
||||
if Input.is_action_pressed("down"):
|
||||
new_direction.y += 1.0
|
||||
new_direction = new_direction.normalized()
|
||||
velocity = new_direction * speed
|
||||
|
||||
# oyvTZWUjCy0
|
||||
var moving := velocity != Vector2.ZERO
|
||||
$AnimationTree["parameters/conditions/moving"] = moving
|
||||
$AnimationTree["parameters/conditions/not_moving"] = !moving
|
||||
|
||||
if !moving:
|
||||
return
|
||||
$AnimationTree.set("parameters/walk/blend_position", new_direction)
|
||||
$AnimationTree.set("parameters/idle/blend_position", new_direction)
|
||||
move_and_slide()
|
||||
@@ -0,0 +1 @@
|
||||
uid://csqcsepu2r0ts
|
||||
136
Examples/tutorial-oyvtzwujcy0/Entities/Character/character.tscn
Normal file
136
Examples/tutorial-oyvtzwujcy0/Entities/Character/character.tscn
Normal file
@@ -0,0 +1,136 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://dbhiwig4potyb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://csqcsepu2r0ts" path="res://Entities/Character/character.gd" id="1_a1h5o"]
|
||||
[ext_resource type="Texture2D" uid="uid://dasxw18q3mppl" path="res://icon.svg" id="1_bmc7m"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bmc7m"]
|
||||
size = Vector2(14.8999, 28.4489)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xasj2"]
|
||||
length = 0.5
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Icon:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0.01),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [5]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_6vsl0"]
|
||||
resource_name = "idle"
|
||||
length = 0.333337
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Icon:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_a1h5o"]
|
||||
resource_name = "new_animation"
|
||||
length = 2.00005
|
||||
loop_mode = 1
|
||||
step = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Icon:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0.01, 0.303333, 0.59, 0.86, 1.15, 1.44, 1.74),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [2, 1, 3, 4, 5, 6, 7]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xasj2"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_xasj2"),
|
||||
&"idle": SubResource("Animation_6vsl0"),
|
||||
&"new_animation": SubResource("Animation_a1h5o")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_a1h5o"]
|
||||
animation = &"idle"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_xasj2"]
|
||||
animation = &"new_animation"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6vsl0"]
|
||||
animation = &"new_animation"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_k05qf"]
|
||||
animation = &"idle"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4th1x"]
|
||||
animation = &"idle"
|
||||
|
||||
[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_roimm"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_xasj2")
|
||||
blend_point_0/pos = Vector2(-1, 0)
|
||||
blend_point_1/node = SubResource("AnimationNodeAnimation_6vsl0")
|
||||
blend_point_1/pos = Vector2(0, -0.9)
|
||||
blend_point_2/node = SubResource("AnimationNodeAnimation_k05qf")
|
||||
blend_point_2/pos = Vector2(0, 1)
|
||||
blend_point_3/node = SubResource("AnimationNodeAnimation_4th1x")
|
||||
blend_point_3/pos = Vector2(1, 0)
|
||||
blend_mode = 1
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_a1h5o"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xasj2"]
|
||||
advance_mode = 2
|
||||
advance_condition = &"moving"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6vsl0"]
|
||||
advance_mode = 2
|
||||
advance_condition = &"not_moving"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_roimm"]
|
||||
states/idle/node = SubResource("AnimationNodeAnimation_a1h5o")
|
||||
states/idle/position = Vector2(490, 105)
|
||||
states/walk/node = SubResource("AnimationNodeBlendSpace2D_roimm")
|
||||
states/walk/position = Vector2(490, 199)
|
||||
transitions = ["Start", "idle", SubResource("AnimationNodeStateMachineTransition_a1h5o"), "idle", "walk", SubResource("AnimationNodeStateMachineTransition_xasj2"), "walk", "idle", SubResource("AnimationNodeStateMachineTransition_6vsl0")]
|
||||
|
||||
[node name="Node2D" type="CharacterBody2D"]
|
||||
scale = Vector2(1.00672, 0.989311)
|
||||
script = ExtResource("1_a1h5o")
|
||||
|
||||
[node name="Icon" type="Sprite2D" parent="."]
|
||||
position = Vector2(0.566751, -15.3349)
|
||||
texture = ExtResource("1_bmc7m")
|
||||
hframes = 6
|
||||
vframes = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0.496663, -14.0781)
|
||||
scale = Vector2(0.999999, 1)
|
||||
shape = SubResource("RectangleShape2D_bmc7m")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_xasj2")
|
||||
}
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="."]
|
||||
tree_root = SubResource("AnimationNodeStateMachine_roimm")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/conditions/moving = false
|
||||
parameters/conditions/not_moving = false
|
||||
parameters/walk/blend_position = Vector2(-0.819838, -0.497758)
|
||||
17
Examples/tutorial-oyvtzwujcy0/Entities/Objects/wall.tscn
Normal file
17
Examples/tutorial-oyvtzwujcy0/Entities/Objects/wall.tscn
Normal file
@@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://du7dcihv2m3ue"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dasxw18q3mppl" path="res://icon.svg" id="1_sl5yh"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qnvor"]
|
||||
size = Vector2(10, 129)
|
||||
|
||||
[node name="Wall" type="StaticBody2D"]
|
||||
|
||||
[node name="Icon" type="Sprite2D" parent="."]
|
||||
position = Vector2(-1.90735e-06, -65)
|
||||
scale = Vector2(0.078125, 1)
|
||||
texture = ExtResource("1_sl5yh")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -64.5)
|
||||
shape = SubResource("RectangleShape2D_qnvor")
|
||||
15
Examples/tutorial-oyvtzwujcy0/Scenes/playground.tscn
Normal file
15
Examples/tutorial-oyvtzwujcy0/Scenes/playground.tscn
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bodk3sbrdedn2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dbhiwig4potyb" path="res://Entities/Character/character.tscn" id="1_uof5o"]
|
||||
[ext_resource type="PackedScene" uid="uid://du7dcihv2m3ue" path="res://Entities/Objects/wall.tscn" id="2_6xle2"]
|
||||
|
||||
[node name="Playground" type="Node2D"]
|
||||
|
||||
[node name="character" parent="." instance=ExtResource("1_uof5o")]
|
||||
|
||||
[node name="wall" parent="." instance=ExtResource("2_6xle2")]
|
||||
position = Vector2(245, 108)
|
||||
scale = Vector2(3.35596, 3.35596)
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
position = Vector2(0, -125)
|
||||
1
Examples/tutorial-oyvtzwujcy0/icon.svg
Normal file
1
Examples/tutorial-oyvtzwujcy0/icon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
||||
|
After Width: | Height: | Size: 994 B |
37
Examples/tutorial-oyvtzwujcy0/icon.svg.import
Normal file
37
Examples/tutorial-oyvtzwujcy0/icon.svg.import
Normal file
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dasxw18q3mppl"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
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=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
44
Examples/tutorial-oyvtzwujcy0/project.godot
Normal file
44
Examples/tutorial-oyvtzwujcy0/project.godot
Normal file
@@ -0,0 +1,44 @@
|
||||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="tutorial-oyvTZWUjCy0"
|
||||
run/main_scene="uid://bodk3sbrdedn2"
|
||||
config/features=PackedStringArray("4.4", "GL Compatibility")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[input]
|
||||
|
||||
up={
|
||||
"deadzone": 0.2,
|
||||
"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)
|
||||
]
|
||||
}
|
||||
left={
|
||||
"deadzone": 0.2,
|
||||
"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)
|
||||
]
|
||||
}
|
||||
down={
|
||||
"deadzone": 0.2,
|
||||
"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)
|
||||
]
|
||||
}
|
||||
right={
|
||||
"deadzone": 0.2,
|
||||
"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)
|
||||
]
|
||||
}
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
Reference in New Issue
Block a user