新地图tile 规格测试

This commit is contained in:
Reed 2026-01-16 13:22:02 +08:00
parent 00bd30e3b4
commit 11fc120236
19 changed files with 126 additions and 201 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,40 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dkip6i0oyhnlx"
path="res://.godot/imported/damage.png-75c6a469140d15eab0a2b7301c5e8959.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://_asset/ksw/damage.png"
dest_files=["res://.godot/imported/damage.png-75c6a469140d15eab0a2b7301c5e8959.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,40 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cfjprjiin3dnk"
path="res://.godot/imported/normal.png-2812748d0b3fe0e26bf430a863bce9c7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://_asset/ksw/normal.png"
dest_files=["res://.godot/imported/normal.png-2812748d0b3fe0e26bf430a863bce9c7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

View File

@ -1,40 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cw1lcd672mq87"
path="res://.godot/imported/未命名作品(3).png-5152e47ab8192492e0d911592bc8c8f5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://_asset/ksw/未命名作品(3).png"
dest_files=["res://.godot/imported/未命名作品(3).png-5152e47ab8192492e0d911592bc8c8f5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -1,40 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cacik4t6grtq8"
path="res://.godot/imported/未命名作品(4).png-151765b68adadae09c88456ac264362b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://_asset/ksw/未命名作品(4).png"
dest_files=["res://.godot/imported/未命名作品(4).png-151765b68adadae09c88456ac264362b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,4 @@
[gd_resource type="AtlasTexture" format=3 uid="uid://ca80pylcjg0rw"]
[resource]
region = Rect2(656.6666, 910.6667, 223.33337, 225.33331)

View File

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -3,15 +3,15 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://dnrvktjrinxon" uid="uid://dnrvktjrinxon"
path="res://.godot/imported/collisionTile.png-8a6c428715bb26113579c3fc839219d4.ctex" path="res://.godot/imported/pure_color_tile.png-2b37f3adadaf3d4a746ba81fc564d09f.ctex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://_asset/ksw/collisionTile.png" source_file="res://_asset/tile/pure_color_tile.png"
dest_files=["res://.godot/imported/collisionTile.png-8a6c428715bb26113579c3fc839219d4.ctex"] dest_files=["res://.godot/imported/pure_color_tile.png-2b37f3adadaf3d4a746ba81fc564d09f.ctex"]
[params] [params]

15
_game/GameMainNew.tscn Normal file
View File

@ -0,0 +1,15 @@
[gd_scene load_steps=5 format=3 uid="uid://x041oerqe1iu"]
[ext_resource type="Script" uid="uid://crgac4manhoud" path="res://_game/game.gd" id="1_n75l0"]
[ext_resource type="PackedScene" uid="uid://cvqehvdjpoar4" path="res://_player/player_controller.tscn" id="2_uvy3i"]
[ext_resource type="PackedScene" uid="uid://cw6buluknvjj" path="res://_camera/PlateformerCamera.tscn" id="3_j30v4"]
[ext_resource type="PackedScene" uid="uid://d3x8beboy1e6y" path="res://_scene/level1/l1_s1_new.tscn" id="4_w37b4"]
[node name="Game" type="Node2D" groups=["PLAYER_RESPAWN"]]
script = ExtResource("1_n75l0")
[node name="PlayerController" parent="." instance=ExtResource("2_uvy3i")]
[node name="PlateformerCamera" parent="." instance=ExtResource("3_j30v4")]
[node name="L1_S1" parent="." instance=ExtResource("4_w37b4")]

View File

@ -1,8 +1,8 @@
extends Node2D extends Node2D
func _ready() -> void: func _ready() -> void:
$L0_S0.switch_act_by_id(1) #$L0_S0.switch_act_by_id(1)
#$L1_S1.switch_act_by_id(1) $L1_S1.switch_act_by_id(1)
#$L1_S2.switch_act_by_id(1) #$L1_S2.switch_act_by_id(1)
#$L1_S3.switch_act_by_id(1) #$L1_S3.switch_act_by_id(1)
#$L1_S4.switch_act_by_id(1) #$L1_S4.switch_act_by_id(1)

View File

@ -37,14 +37,15 @@
[ext_resource type="Script" uid="uid://bijoqygv6tncj" path="res://addons/reedcomponent/SingleComponentRemotor.gd" id="28_mxt3b"] [ext_resource type="Script" uid="uid://bijoqygv6tncj" path="res://addons/reedcomponent/SingleComponentRemotor.gd" id="28_mxt3b"]
[ext_resource type="Resource" uid="uid://bdad4yjv1q0uu" path="res://_player/effect_binding/jump_dust.tres" id="30_hquoe"] [ext_resource type="Resource" uid="uid://bdad4yjv1q0uu" path="res://_player/effect_binding/jump_dust.tres" id="30_hquoe"]
[sub_resource type="CircleShape2D" id="CircleShape2D_1a1t3"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_01uoa"]
radius = 3.0 size = Vector2(173, 50)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qnulu"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ciuu3"]
size = Vector2(9, 11.5) size = Vector2(203, 245)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ogl63"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ciuu3"]
size = Vector2(10, 10) radius = 134.0
height = 338.0
[node name="Avatar" type="CharacterBody2D" groups=["PLAYER"]] [node name="Avatar" type="CharacterBody2D" groups=["PLAYER"]]
collision_layer = 2 collision_layer = 2
@ -59,26 +60,27 @@ camera_shake_preset = Dictionary[StringName, ExtResource("2_u7cua")]({
&"y_only_light": ExtResource("4_01uoa") &"y_only_light": ExtResource("4_01uoa")
}) })
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(0, 3.9999998)
scale = Vector2(2.5, 2.5)
texture = ExtResource("6_01uoa")
[node name="GroundCompanion" type="Area2D" parent="."] [node name="GroundCompanion" type="Area2D" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
position = Vector2(0, 11) position = Vector2(0, 160)
collision_layer = 0 collision_layer = 0
collision_mask = 4 collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="GroundCompanion"] [node name="CollisionShape2D" type="CollisionShape2D" parent="GroundCompanion"]
shape = SubResource("CircleShape2D_1a1t3") position = Vector2(0, -10)
shape = SubResource("RectangleShape2D_01uoa")
debug_color = Color(0, 0.63529414, 0.40784314, 0.41960785) debug_color = Color(0, 0.63529414, 0.40784314, 0.41960785)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
position = Vector2(0, 5.75) position = Vector2(0, 40)
shape = SubResource("RectangleShape2D_qnulu") shape = SubResource("RectangleShape2D_ciuu3")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(0, 3.9999998)
scale = Vector2(0.1, 0.1)
texture = ExtResource("6_01uoa")
[node name="LimboStateDebugger" type="Node2D" parent="." node_paths=PackedStringArray("state_root")] [node name="LimboStateDebugger" type="Node2D" parent="." node_paths=PackedStringArray("state_root")]
script = ExtResource("8_clxy3") script = ExtResource("8_clxy3")
@ -174,17 +176,26 @@ light_gravity_threshold = 135.0
light_gravity_mult = 0.6 light_gravity_mult = 0.6
wall_jump_base_force_x = 260.0 wall_jump_base_force_x = 260.0
wall_jump_base_force_y = 220.0 wall_jump_base_force_y = 220.0
fall_maxium_speed = 430.0 fall_maxium_speed = 8000.0
air_control_mult = 0.35 air_control_mult = 0.35
run_accel = 1300.0 run_accel = 5800.0
run_reduce = 2400.0 run_reduce = 7900.0
move_speed_max = 202.0 move_speed_max = 2650.0
[node name="WallDetector" parent="LocomotionComponent" instance=ExtResource("20_air0b")] [node name="WallDetector" parent="LocomotionComponent" instance=ExtResource("20_air0b")]
unique_name_in_owner = true unique_name_in_owner = true
[node name="UpRayCast2D" parent="LocomotionComponent/WallDetector" index="0"]
position = Vector2(0, -141)
target_position = Vector2(155, 0)
[node name="MidRayCast2D" parent="LocomotionComponent/WallDetector" index="1"] [node name="MidRayCast2D" parent="LocomotionComponent/WallDetector" index="1"]
position = Vector2(0, 3) position = Vector2(0, 42)
target_position = Vector2(154, 0)
[node name="DownRayCast2D" parent="LocomotionComponent/WallDetector" index="2"]
position = Vector2(0, 151)
target_position = Vector2(155, 0)
[node name="SpawnHookComponet" type="Node" parent="."] [node name="SpawnHookComponet" type="Node" parent="."]
script = ExtResource("21_p14kj") script = ExtResource("21_p14kj")
@ -209,8 +220,7 @@ collision_layer = 0
collision_mask = 8 collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"] [node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
position = Vector2(0, 5) shape = SubResource("CapsuleShape2D_ciuu3")
shape = SubResource("RectangleShape2D_ogl63")
debug_color = Color(0.95815283, 0, 0.5313341, 0.41960785) debug_color = Color(0.95815283, 0, 0.5313341, 0.41960785)
[node name="RemotePositionSetting" type="Node2D" parent="."] [node name="RemotePositionSetting" type="Node2D" parent="."]

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
[gd_resource type="TileSet" load_steps=9 format=3 uid="uid://cup1q1upvp18h"] [gd_resource type="TileSet" load_steps=9 format=3 uid="uid://cup1q1upvp18h"]
[ext_resource type="Texture2D" uid="uid://dnrvktjrinxon" path="res://_asset/ksw/collisionTile.png" id="1_u6jqb"] [ext_resource type="Texture2D" uid="uid://dnrvktjrinxon" path="res://_asset/tile/pure_color_tile.png" id="1_u6jqb"]
[ext_resource type="Texture2D" uid="uid://dd622t4mw5vva" path="res://_asset/ksw/basicTile01.png" id="2_mucy5"] [ext_resource type="Texture2D" uid="uid://dd622t4mw5vva" path="res://_asset/ksw/basicTile01.png" id="2_mucy5"]
[ext_resource type="Texture2D" uid="uid://dufe0liirugbw" path="res://_asset/ksw/basicTile02.png" id="3_u6jqb"] [ext_resource type="Texture2D" uid="uid://dufe0liirugbw" path="res://_asset/ksw/basicTile02.png" id="3_u6jqb"]

View File

@ -0,0 +1,55 @@
[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://bt25n4i5s2bkj"]
[ext_resource type="Texture2D" uid="uid://dnrvktjrinxon" path="res://_asset/tile/pure_color_tile.png" id="1_62l84"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_jwfln"]
texture = ExtResource("1_62l84")
texture_region_size = Vector2i(128, 128)
1:1/0 = 0
2:1/0 = 0
3:1/0 = 0
3:2/0 = 0
3:3/0 = 0
2:3/0 = 0
1:3/0 = 0
1:2/0 = 0
5:1/0 = 0
6:1/0 = 0
7:1/0 = 0
7:2/0 = 0
7:3/0 = 0
6:3/0 = 0
5:3/0 = 0
5:2/0 = 0
6:2/0 = 0
6:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-64, -64, 64, -64, 64, 64, -64, 64)
9:1/0 = 0
11:1/0 = 0
12:1/0 = 0
13:1/0 = 0
9:3/0 = 0
9:4/0 = 0
9:5/0 = 0
5:7/0 = 0
6:7/0 = 0
5:8/0 = 0
8:7/0 = 0
9:7/0 = 0
9:8/0 = 0
7:8/0 = 0
7:9/0 = 0
7:10/0 = 0
6:9/0 = 0
8:9/0 = 0
5:10/0 = 0
5:11/0 = 0
6:11/0 = 0
8:11/0 = 0
9:11/0 = 0
9:10/0 = 0
[resource]
tile_size = Vector2i(128, 128)
physics_layer_0/collision_layer = 4
physics_layer_0/collision_mask = 0
sources/1 = SubResource("TileSetAtlasSource_jwfln")

View File

@ -29,7 +29,7 @@ class_name LocomotionComponent extends ComponentBase
##空中控制乘量,在空中移动时修改 ##空中控制乘量,在空中移动时修改
@export var air_control_mult : float = .65 @export var air_control_mult : float = .65
#基础的乘量对所有Character相同 #基础的乘量对所有Character相同
const GRAVITY_BASIC_MULT_FACTOR : float = 1.8 const GRAVITY_BASIC_MULT_FACTOR : float = 18
#下坠速度和最大下坠速度的阈值,超过了这个阈值会开启下坠速度修正,主要取决于设备的刷新率固写死。 #下坠速度和最大下坠速度的阈值,超过了这个阈值会开启下坠速度修正,主要取决于设备的刷新率固写死。
const FALL_SPEED_EXCEED_TOLERANCE_THRESHOLD = 40 const FALL_SPEED_EXCEED_TOLERANCE_THRESHOLD = 40

View File

@ -11,7 +11,7 @@ config_version=5
[application] [application]
config/name="godot-plateformer" config/name="godot-plateformer"
run/main_scene="uid://3vc8ojbiyy5w" run/main_scene="uid://x041oerqe1iu"
config/features=PackedStringArray("4.5", "Forward Plus") config/features=PackedStringArray("4.5", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"
@ -24,10 +24,8 @@ ReedCameraSystem="*res://addons/reedcamera/scripts/ReedCameraGlobal.gd"
[display] [display]
window/size/viewport_width=640 window/size/viewport_width=1920
window/size/viewport_height=360 window/size/viewport_height=1080
window/size/window_width_override=1920
window/size/window_height_override=1080
window/stretch/mode="canvas_items" window/stretch/mode="canvas_items"
[editor_plugins] [editor_plugins]