Added 3D model
This commit is contained in:
14
Camera3D.gd
Normal file
14
Camera3D.gd
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
extends Camera3D
|
||||||
|
|
||||||
|
@export var lerp_speed = 3.0
|
||||||
|
@export var target: Node3D
|
||||||
|
@export var offset = Vector3.ZERO
|
||||||
|
|
||||||
|
func _physics_process(delta):
|
||||||
|
if !target:
|
||||||
|
return
|
||||||
|
|
||||||
|
#var target_xform = target.global_transform.translated_local(offset)
|
||||||
|
#global_transform = global_transform.interpolate_with(target_xform, lerp_speed * delta)
|
||||||
|
|
||||||
|
#look_at(target.global_transform.origin, target.transform.basis.y)
|
||||||
54
Player.gd
Normal file
54
Player.gd
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
extends CharacterBody3D
|
||||||
|
|
||||||
|
@export var speed = 10.0
|
||||||
|
@export var lateral_speed = 4.0
|
||||||
|
@export var turn_speed = 2
|
||||||
|
@export var jump_impulse = 20
|
||||||
|
@export var fall_acceleration = 50
|
||||||
|
|
||||||
|
@onready var playback : AnimationNodeStateMachinePlayback = $Rogue_Hooded/AnimationTree.get("parameters/playback")
|
||||||
|
@onready var anim : AnimationPlayer = $Rogue_Hooded/AnimationPlayer
|
||||||
|
|
||||||
|
var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
playback.travel("Idle")
|
||||||
|
#anim.play("Idle")
|
||||||
|
|
||||||
|
func _physics_process(delta):
|
||||||
|
if not is_on_floor():
|
||||||
|
velocity.y -= fall_acceleration * delta
|
||||||
|
get_input(delta)
|
||||||
|
move_and_slide()
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
if not is_on_floor():
|
||||||
|
playback.travel("Jump_Full_Short")
|
||||||
|
#anim.play("Jump_Full_Short")
|
||||||
|
else:
|
||||||
|
if velocity != Vector3.ZERO:
|
||||||
|
playback.travel("Walking_B")
|
||||||
|
#anim.play("Walking_B")
|
||||||
|
else:
|
||||||
|
playback.travel("Idle")
|
||||||
|
#anim.play("Idle")
|
||||||
|
|
||||||
|
func get_input(delta):
|
||||||
|
var vy = velocity.y
|
||||||
|
velocity = Vector3.ZERO
|
||||||
|
var move_z = Input.get_axis("move_forward", "move_back")
|
||||||
|
var move_x = Input.get_axis("move_left", "move_right")
|
||||||
|
var turn = Input.get_axis("spin_right", "spin_left")
|
||||||
|
velocity += -transform.basis.z * move_z * speed
|
||||||
|
velocity += -transform.basis.x * move_x * speed
|
||||||
|
rotate_y(turn_speed * turn * delta)
|
||||||
|
velocity.y = vy
|
||||||
|
|
||||||
|
if is_on_floor() and Input.is_action_just_pressed("jump"):
|
||||||
|
velocity.y = jump_impulse
|
||||||
|
|
||||||
|
func align_with_y(xform, new_y):
|
||||||
|
xform.basis.y = new_y
|
||||||
|
xform.basis.x = -xform.basis.z.cross(new_y)
|
||||||
|
xform.basis = xform.basis.orthonormalized()
|
||||||
|
return xform
|
||||||
BIN
assets/models/Barbarian.glb
Normal file
BIN
assets/models/Barbarian.glb
Normal file
Binary file not shown.
34
assets/models/Barbarian.glb.import
Normal file
34
assets/models/Barbarian.glb.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://c6qfaiwv2ry21"
|
||||||
|
path="res://.godot/imported/Barbarian.glb-9d41b6ad1d70a4ce6beac0b6d359ae13.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Barbarian.glb"
|
||||||
|
dest_files=["res://.godot/imported/Barbarian.glb-9d41b6ad1d70a4ce6beac0b6d359ae13.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
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
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={}
|
||||||
|
gltf/naming_version=1
|
||||||
|
gltf/embedded_image_handling=1
|
||||||
BIN
assets/models/Barbarian_barbarian_texture.png
Normal file
BIN
assets/models/Barbarian_barbarian_texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
38
assets/models/Barbarian_barbarian_texture.png.import
Normal file
38
assets/models/Barbarian_barbarian_texture.png.import
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cmyvmlit36n1d"
|
||||||
|
path.s3tc="res://.godot/imported/Barbarian_barbarian_texture.png-b92dcfb3ae76ab003de10a0fc316dd48.s3tc.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
generator_parameters={
|
||||||
|
"md5": "267533c91145eeae53d251a78b53814c"
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Barbarian_barbarian_texture.png"
|
||||||
|
dest_files=["res://.godot/imported/Barbarian_barbarian_texture.png-b92dcfb3ae76ab003de10a0fc316dd48.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
|
||||||
BIN
assets/models/Knight.glb
Normal file
BIN
assets/models/Knight.glb
Normal file
Binary file not shown.
34
assets/models/Knight.glb.import
Normal file
34
assets/models/Knight.glb.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://vtowhv25pkp1"
|
||||||
|
path="res://.godot/imported/Knight.glb-082840718e221658a96caa7c01981d43.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Knight.glb"
|
||||||
|
dest_files=["res://.godot/imported/Knight.glb-082840718e221658a96caa7c01981d43.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
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
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={}
|
||||||
|
gltf/naming_version=1
|
||||||
|
gltf/embedded_image_handling=1
|
||||||
BIN
assets/models/Knight_knight_texture.png
Normal file
BIN
assets/models/Knight_knight_texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
38
assets/models/Knight_knight_texture.png.import
Normal file
38
assets/models/Knight_knight_texture.png.import
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bq63fiq0d1hyw"
|
||||||
|
path.s3tc="res://.godot/imported/Knight_knight_texture.png-2e3f773f2e49fadc72e041e1d0f8ce74.s3tc.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
generator_parameters={
|
||||||
|
"md5": "af4707185c3e9844f7ed166c1a2e24f8"
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Knight_knight_texture.png"
|
||||||
|
dest_files=["res://.godot/imported/Knight_knight_texture.png-2e3f773f2e49fadc72e041e1d0f8ce74.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
|
||||||
BIN
assets/models/Mage.glb
Normal file
BIN
assets/models/Mage.glb
Normal file
Binary file not shown.
34
assets/models/Mage.glb.import
Normal file
34
assets/models/Mage.glb.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://7t3pgj5ichj3"
|
||||||
|
path="res://.godot/imported/Mage.glb-6d517dcc5da8a7403725c4a574a4f793.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Mage.glb"
|
||||||
|
dest_files=["res://.godot/imported/Mage.glb-6d517dcc5da8a7403725c4a574a4f793.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
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
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={}
|
||||||
|
gltf/naming_version=1
|
||||||
|
gltf/embedded_image_handling=1
|
||||||
BIN
assets/models/Mage_mage_texture.png
Normal file
BIN
assets/models/Mage_mage_texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
38
assets/models/Mage_mage_texture.png.import
Normal file
38
assets/models/Mage_mage_texture.png.import
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b1lwjwn82j3np"
|
||||||
|
path.s3tc="res://.godot/imported/Mage_mage_texture.png-a244768bf3223938e049b0911248a71d.s3tc.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
generator_parameters={
|
||||||
|
"md5": "4929e1d8419d602df7a7be89ce778863"
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Mage_mage_texture.png"
|
||||||
|
dest_files=["res://.godot/imported/Mage_mage_texture.png-a244768bf3223938e049b0911248a71d.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
|
||||||
BIN
assets/models/Rogue.glb
Normal file
BIN
assets/models/Rogue.glb
Normal file
Binary file not shown.
34
assets/models/Rogue.glb.import
Normal file
34
assets/models/Rogue.glb.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://3c02wmhdqtu"
|
||||||
|
path="res://.godot/imported/Rogue.glb-6864ff4d7cc762bec2f06b6c246ebd5f.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Rogue.glb"
|
||||||
|
dest_files=["res://.godot/imported/Rogue.glb-6864ff4d7cc762bec2f06b6c246ebd5f.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
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
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={}
|
||||||
|
gltf/naming_version=1
|
||||||
|
gltf/embedded_image_handling=1
|
||||||
BIN
assets/models/Rogue_Hooded.glb
Normal file
BIN
assets/models/Rogue_Hooded.glb
Normal file
Binary file not shown.
42
assets/models/Rogue_Hooded.glb.import
Normal file
42
assets/models/Rogue_Hooded.glb.import
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://db6koanfxuwxd"
|
||||||
|
path="res://.godot/imported/Rogue_Hooded.glb-5f8689af0c1659001a308ebccfe1a08a.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Rogue_Hooded.glb"
|
||||||
|
dest_files=["res://.godot/imported/Rogue_Hooded.glb-5f8689af0c1659001a308ebccfe1a08a.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
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
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={
|
||||||
|
"nodes": {
|
||||||
|
"PATH:Rig/Skeleton3D": {
|
||||||
|
"retarget/bone_map": Object(BoneMap,"resource_local_to_scene":false,"resource_name":"","profile":Object(SkeletonProfileHumanoid,"resource_local_to_scene":false,"resource_name":"","root_bone":&"Root","scale_base_bone":&"Hips","group_size":4,"bone_size":56,"script":null)
|
||||||
|
,"bonemap":null,"bone_map/Root":&"root","bone_map/Hips":&"hips","bone_map/Spine":&"spine","bone_map/Chest":&"chest","bone_map/UpperChest":&"","bone_map/Neck":&"","bone_map/Head":&"head","bone_map/LeftEye":&"","bone_map/RightEye":&"","bone_map/Jaw":&"","bone_map/LeftShoulder":&"","bone_map/LeftUpperArm":&"","bone_map/LeftLowerArm":&"","bone_map/LeftHand":&"wrist.l","bone_map/LeftThumbMetacarpal":&"","bone_map/LeftThumbProximal":&"","bone_map/LeftThumbDistal":&"","bone_map/LeftIndexProximal":&"","bone_map/LeftIndexIntermediate":&"","bone_map/LeftIndexDistal":&"","bone_map/LeftMiddleProximal":&"","bone_map/LeftMiddleIntermediate":&"","bone_map/LeftMiddleDistal":&"","bone_map/LeftRingProximal":&"","bone_map/LeftRingIntermediate":&"","bone_map/LeftRingDistal":&"","bone_map/LeftLittleProximal":&"","bone_map/LeftLittleIntermediate":&"","bone_map/LeftLittleDistal":&"","bone_map/RightShoulder":&"","bone_map/RightUpperArm":&"","bone_map/RightLowerArm":&"","bone_map/RightHand":&"wrist.r","bone_map/RightThumbMetacarpal":&"","bone_map/RightThumbProximal":&"","bone_map/RightThumbDistal":&"","bone_map/RightIndexProximal":&"","bone_map/RightIndexIntermediate":&"","bone_map/RightIndexDistal":&"","bone_map/RightMiddleProximal":&"","bone_map/RightMiddleIntermediate":&"","bone_map/RightMiddleDistal":&"","bone_map/RightRingProximal":&"","bone_map/RightRingIntermediate":&"","bone_map/RightRingDistal":&"","bone_map/RightLittleProximal":&"","bone_map/RightLittleIntermediate":&"","bone_map/RightLittleDistal":&"","bone_map/LeftUpperLeg":&"upperleg.l","bone_map/LeftLowerLeg":&"lowerleg.l","bone_map/LeftFoot":&"foot.l","bone_map/LeftToes":&"toes.l","bone_map/RightUpperLeg":&"upperleg.r","bone_map/RightLowerLeg":&"lowerleg.r","bone_map/RightFoot":&"foot.r","bone_map/RightToes":&"toes.r","script":null)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gltf/naming_version=1
|
||||||
|
gltf/embedded_image_handling=1
|
||||||
BIN
assets/models/Rogue_Hooded_rogue_texture.png
Normal file
BIN
assets/models/Rogue_Hooded_rogue_texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
38
assets/models/Rogue_Hooded_rogue_texture.png.import
Normal file
38
assets/models/Rogue_Hooded_rogue_texture.png.import
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c3uljfqt7dlqv"
|
||||||
|
path.s3tc="res://.godot/imported/Rogue_Hooded_rogue_texture.png-f57276338967dfcda50de98c1d93cb75.s3tc.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
generator_parameters={
|
||||||
|
"md5": "5b6fbb4d6c67e8c66dd2dffbb40f8812"
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Rogue_Hooded_rogue_texture.png"
|
||||||
|
dest_files=["res://.godot/imported/Rogue_Hooded_rogue_texture.png-f57276338967dfcda50de98c1d93cb75.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
|
||||||
BIN
assets/models/Rogue_rogue_texture.png
Normal file
BIN
assets/models/Rogue_rogue_texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
38
assets/models/Rogue_rogue_texture.png.import
Normal file
38
assets/models/Rogue_rogue_texture.png.import
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dee4rvo2rlcni"
|
||||||
|
path.s3tc="res://.godot/imported/Rogue_rogue_texture.png-0099374c7cecba00ee5c5068e030883c.s3tc.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
generator_parameters={
|
||||||
|
"md5": "5b6fbb4d6c67e8c66dd2dffbb40f8812"
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/models/Rogue_rogue_texture.png"
|
||||||
|
dest_files=["res://.godot/imported/Rogue_rogue_texture.png-0099374c7cecba00ee5c5068e030883c.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
|
||||||
37
main.tscn
Normal file
37
main.tscn
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
[gd_scene load_steps=6 format=3 uid="uid://duoh0jxpxbb6n"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bgy434q7o28rp" path="res://player.tscn" id="1_xwh7p"]
|
||||||
|
[ext_resource type="Script" path="res://Camera3D.gd" id="2_5ydyq"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_cu3j0"]
|
||||||
|
size = Vector3(100, 1, 100)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_sf1m7"]
|
||||||
|
size = Vector3(100, 1, 100)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_idjm2"]
|
||||||
|
albedo_color = Color(0.238612, 0.410526, 0.185486, 1)
|
||||||
|
|
||||||
|
[node name="Main" type="Node"]
|
||||||
|
|
||||||
|
[node name="Ground" type="StaticBody3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground"]
|
||||||
|
shape = SubResource("BoxShape3D_cu3j0")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"]
|
||||||
|
mesh = SubResource("BoxMesh_sf1m7")
|
||||||
|
surface_material_override/0 = SubResource("StandardMaterial3D_idjm2")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 40, 0)
|
||||||
|
|
||||||
|
[node name="Player" parent="." instance=ExtResource("1_xwh7p")]
|
||||||
|
|
||||||
|
[node name="Camera3D" type="Camera3D" parent="Player" node_paths=PackedStringArray("target")]
|
||||||
|
transform = Transform3D(-1, 5.54737e-08, -7.05358e-08, 1.42679e-08, 0.874323, 0.485344, 8.85949e-08, 0.485344, -0.874323, -6.24196e-07, 3.10622, -3.56998)
|
||||||
|
script = ExtResource("2_5ydyq")
|
||||||
|
lerp_speed = 10.0
|
||||||
|
target = NodePath("..")
|
||||||
|
offset = Vector3(5, 4, 2)
|
||||||
31656
player.tscn
Normal file
31656
player.tscn
Normal file
File diff suppressed because one or more lines are too long
@@ -11,5 +11,54 @@ config_version=5
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Project Torches"
|
config/name="Project Torches"
|
||||||
|
run/main_scene="res://main.tscn"
|
||||||
config/features=PackedStringArray("4.2", "Forward Plus")
|
config/features=PackedStringArray("4.2", "Forward Plus")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
[editor]
|
||||||
|
|
||||||
|
version_control/plugin_name="GitPlugin"
|
||||||
|
version_control/autoload_on_startup=true
|
||||||
|
|
||||||
|
[input]
|
||||||
|
|
||||||
|
move_left={
|
||||||
|
"deadzone": 0.15,
|
||||||
|
"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,"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={
|
||||||
|
"deadzone": 0.15,
|
||||||
|
"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,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
move_forward={
|
||||||
|
"deadzone": 0.15,
|
||||||
|
"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,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":-1.0,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
move_back={
|
||||||
|
"deadzone": 0.15,
|
||||||
|
"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,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":1.0,"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,"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)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
spin_right={
|
||||||
|
"deadzone": 0.15,
|
||||||
|
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":2,"axis_value":1.0,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
spin_left={
|
||||||
|
"deadzone": 0.15,
|
||||||
|
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":2,"axis_value":-1.0,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user