171 lines
4.4 KiB
Plaintext
171 lines
4.4 KiB
Plaintext
[gd_scene load_steps=14 format=2]
|
|
|
|
[ext_resource path="res://screens/battle/mechanolith.ogg" type="AudioStream" id=1]
|
|
[ext_resource path="res://theme/ui.tres" type="Theme" id=2]
|
|
[ext_resource path="res://arenas/normal1.tscn" type="PackedScene" id=3]
|
|
[ext_resource path="res://screens/battle/background.jpg" type="Texture" id=4]
|
|
[ext_resource path="res://screens/battle/battle.gd" type="Script" id=5]
|
|
[ext_resource path="res://screens/battle/hand.gd" type="Script" id=6]
|
|
[ext_resource path="res://units/points.tscn" type="PackedScene" id=7]
|
|
[ext_resource path="res://ai/dumb.gd" type="Script" id=8]
|
|
[ext_resource path="res://decks/all.tscn" type="PackedScene" id=9]
|
|
[ext_resource path="res://units/heroes/tomahawk.tscn" type="PackedScene" id=10]
|
|
[ext_resource path="res://units/heroes/rhino.tscn" type="PackedScene" id=11]
|
|
|
|
[sub_resource type="GDScript" id=1]
|
|
script/source = "extends Polygon2D
|
|
|
|
func start(text):
|
|
$label.text = text
|
|
$anim.play(\"show\")
|
|
"
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
length = 1.5
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath(".:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.4, 1.1, 1.5 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Vector2( -1430, 80 ), Vector2( 170, 80 ), Vector2( 170, 80 ), Vector2( 1660, 80 ) ]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/path = NodePath("..:interactive")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/keys = {
|
|
"times": PoolRealArray( 0, 1.5 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 1,
|
|
"values": [ false, true ]
|
|
}
|
|
|
|
[node name="view" type="Panel"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
theme = ExtResource( 2 )
|
|
script = ExtResource( 5 )
|
|
__meta__ = {
|
|
"_edit_lock_": true,
|
|
"_edit_use_anchors_": false
|
|
}
|
|
deck_attack = ExtResource( 9 )
|
|
deck_defend = ExtResource( 9 )
|
|
hero_unit_attack = ExtResource( 10 )
|
|
hero_unit_defend = ExtResource( 11 )
|
|
defend_ai = ExtResource( 8 )
|
|
|
|
[node name="background" type="Sprite" parent="."]
|
|
position = Vector2( 540, 970 )
|
|
rotation = -4.71238
|
|
texture = ExtResource( 4 )
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="arena" parent="." instance=ExtResource( 3 )]
|
|
|
|
[node name="bgm" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 1 )
|
|
volume_db = -15.891
|
|
autoplay = true
|
|
|
|
[node name="hand_attack" type="Control" parent="."]
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_top = -328.0
|
|
script = ExtResource( 6 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false,
|
|
"_editor_description_": ""
|
|
}
|
|
attack = true
|
|
|
|
[node name="skip" type="Button" parent="hand_attack"]
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 10.0
|
|
margin_top = -440.0
|
|
margin_right = 332.0
|
|
margin_bottom = -351.0
|
|
text = "Skip"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="hand_defend" type="Control" parent="."]
|
|
visible = false
|
|
modulate = Color( 1, 1, 1, 0 )
|
|
margin_left = 1180.0
|
|
margin_top = 760.0
|
|
margin_right = 1990.0
|
|
margin_bottom = 1000.0
|
|
script = ExtResource( 6 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="combat_info" type="Control" parent="."]
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="attacker_points" parent="combat_info" instance=ExtResource( 7 )]
|
|
position = Vector2( 260, -167.5 )
|
|
move = 0
|
|
hull = 0
|
|
shield = 0
|
|
damage = 0
|
|
enemy = false
|
|
|
|
[node name="defender_points" parent="combat_info" instance=ExtResource( 7 )]
|
|
position = Vector2( 840, -167.5 )
|
|
move = 0
|
|
hull = 0
|
|
shield = 0
|
|
damage = 0
|
|
enemy = false
|
|
|
|
[node name="turn_indicator" type="Polygon2D" parent="."]
|
|
position = Vector2( 170, 80 )
|
|
z_index = 50
|
|
color = Color( 0.227451, 0.392157, 0.47451, 1 )
|
|
polygon = PoolVector2Array( -570, 980, -470, 780, 1420, 780, 1320, 980 )
|
|
script = SubResource( 1 )
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
|
|
[node name="label" type="Label" parent="turn_indicator"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -570.0
|
|
margin_top = 780.0
|
|
margin_right = 1420.0
|
|
margin_bottom = 980.0
|
|
text = "Whose turn?"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="anim" type="AnimationPlayer" parent="turn_indicator"]
|
|
anims/show = SubResource( 2 )
|
|
[connection signal="unit_created" from="hand_attack" to="." method="_on_unit_created"]
|
|
[connection signal="pressed" from="hand_attack/skip" to="hand_attack" method="emit_turn_end"]
|
|
[connection signal="unit_created" from="hand_defend" to="." method="_on_unit_created"]
|