parent
b3f85a6366
commit
ec11ee3b4d
@ -1,6 +0,0 @@
|
|||||||
namespace CMSGame
|
|
||||||
{
|
|
||||||
public partial class BattleCharacter : Sprite2D
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
[gd_scene load_steps=3 format=3]
|
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dgl6fv3okxuoc" path="res://Temp/Characters/1.png" id="1_wpp45"]
|
|
||||||
[ext_resource type="Script" path="res://Components/BattleCharacter.cs" id="2_upe33"]
|
|
||||||
|
|
||||||
[node name="BattleCharacter" type="Sprite2D"]
|
|
||||||
texture = ExtResource("1_wpp45")
|
|
||||||
script = ExtResource("2_upe33")
|
|
||||||
|
|
||||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
||||||
|
|
||||||
[node name="LabelName" type="Label" parent="."]
|
|
||||||
anchors_preset = 4
|
|
||||||
anchor_top = 0.5
|
|
||||||
anchor_bottom = 0.5
|
|
||||||
offset_left = -128.0
|
|
||||||
offset_top = -165.5
|
|
||||||
offset_right = -81.0
|
|
||||||
offset_bottom = -139.5
|
|
||||||
grow_vertical = 2
|
|
||||||
text = "Name"
|
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace CMSGame
|
||||||
|
{
|
||||||
|
public partial class BattleCharacter : Node2D
|
||||||
|
{
|
||||||
|
public BattleFieldPosition BattleFieldPosition;
|
||||||
|
|
||||||
|
public Character Character;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
[gd_scene load_steps=3 format=3 uid="uid://d08cohfp183wp"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cnilysgmgw8n4" path="res://Temp/Characters/1_19.png" id="1_o3tjt"]
|
||||||
|
[ext_resource type="Script" path="res://Entities/BattleCharacter.cs" id="2_vbdi8"]
|
||||||
|
|
||||||
|
[node name="BattleCharacter" type="Node2D"]
|
||||||
|
script = ExtResource("2_vbdi8")
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
|
scale = Vector2(0.5, 0.5)
|
||||||
|
texture = ExtResource("1_o3tjt")
|
||||||
|
|
||||||
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="Sprite2D"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
|
||||||
|
[node name="TopStatusLabel" type="Label" parent="."]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
offset_left = -64.0
|
||||||
|
offset_top = -144.0
|
||||||
|
offset_right = 64.0
|
||||||
|
offset_bottom = -80.0
|
||||||
|
text = "状态指示器(上)"
|
||||||
|
vertical_alignment = 2
|
||||||
|
autowrap_mode = 3
|
||||||
|
clip_text = true
|
||||||
|
text_overrun_behavior = 4
|
||||||
|
|
||||||
|
[node name="ButtomStatusLabel" type="Label" parent="."]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
offset_left = -64.0
|
||||||
|
offset_top = 64.0
|
||||||
|
offset_right = 64.0
|
||||||
|
offset_bottom = 128.0
|
||||||
|
text = "状态指示器(下)"
|
||||||
|
autowrap_mode = 3
|
||||||
|
clip_text = true
|
||||||
|
text_overrun_behavior = 4
|
@ -0,0 +1,14 @@
|
|||||||
|
namespace CMSGame
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 2D 战场
|
||||||
|
/// </summary>
|
||||||
|
public class BattleField
|
||||||
|
{
|
||||||
|
/// <summary>战场宽度</summary>
|
||||||
|
public int Width = 20;
|
||||||
|
|
||||||
|
/// <summary>战场长度</summary>
|
||||||
|
public int Length = 100;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
namespace CMSGame
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 2D 战场坐标
|
||||||
|
/// </summary>
|
||||||
|
public class BattleFieldPosition
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 坐标点相对于 2D 摄像机镜头所在竖直平面的距离
|
||||||
|
/// </summary>
|
||||||
|
public int Depth;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 坐标点相对于 2D 摄像机初始对准位置的偏移量
|
||||||
|
/// </summary>
|
||||||
|
public int Offset;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
namespace CMSGame
|
||||||
|
{
|
||||||
|
public partial class BattleSceneTest : Node2D
|
||||||
|
{
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
[gd_scene load_steps=3 format=3 uid="uid://6phl40durwor"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cx6yq8awwkqv3" path="res://Scenes/BattleScene.tscn" id="1_fdqdi"]
|
||||||
|
|
||||||
|
[sub_resource type="CSharpScript" id="CSharpScript_cjbd5"]
|
||||||
|
script/source = "namespace CMSGame
|
||||||
|
{
|
||||||
|
public partial class BattleSceneTest : Node2D
|
||||||
|
{
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
[node name="BattleSceneTest" type="Node2D"]
|
||||||
|
script = SubResource("CSharpScript_cjbd5")
|
||||||
|
|
||||||
|
[node name="BattleScene" parent="." instance=ExtResource("1_fdqdi")]
|
Loading…
Reference in new issue