Vastly simplify the JRPG demo

This commit is contained in:
Aaron Franke
2021-06-20 22:47:24 -04:00
parent 2d4d23302a
commit 6e3db7c64d
80 changed files with 270 additions and 775 deletions

View File

@@ -1,8 +1,8 @@
[gd_scene load_steps=5 format=2] [gd_scene load_steps=5 format=2]
[ext_resource path="res://Game.gd" type="Script" id=1] [ext_resource path="res://Game.gd" type="Script" id=1]
[ext_resource path="res://screens/combat/Combat.tscn" type="PackedScene" id=2] [ext_resource path="res://combat/Combat.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/exploration/Exploration.tscn" type="PackedScene" id=3] [ext_resource path="res://grid_movement/Exploration.tscn" type="PackedScene" id=3]
[sub_resource type="Animation" id=1] [sub_resource type="Animation" id=1]
length = 0.5 length = 0.5

View File

@@ -1,7 +1,6 @@
extends Node extends Node
signal combat_finished(winner, loser) signal combat_finished(winner, loser)
const Combatant = preload("res://turn_combat/combatants/Combatant.gd")
func initialize(combat_combatants): func initialize(combat_combatants):
for combatant in combat_combatants: for combatant in combat_combatants:

View File

@@ -1,10 +1,10 @@
[gd_scene load_steps=7 format=2] [gd_scene load_steps=7 format=2]
[ext_resource path="res://screens/combat/Combat.gd" type="Script" id=1] [ext_resource path="res://combat/Combat.gd" type="Script" id=1]
[ext_resource path="res://turn_combat/turn_queue/TurnQueue.tscn" type="PackedScene" id=2] [ext_resource path="res://combat/TurnQueue.gd" type="Script" id=2]
[ext_resource path="res://theme/theme.tres" type="Theme" id=3] [ext_resource path="res://theme/theme.tres" type="Theme" id=3]
[ext_resource path="res://screens/combat/interface/UI.gd" type="Script" id=4] [ext_resource path="res://combat/interface/UI.gd" type="Script" id=4]
[ext_resource path="res://screens/combat/interface/Info.tscn" type="PackedScene" id=5] [ext_resource path="res://combat/interface/Info.tscn" type="PackedScene" id=5]
[sub_resource type="GDScript" id=1] [sub_resource type="GDScript" id=1]
script/source = "extends Node2D script/source = "extends Node2D
@@ -21,7 +21,8 @@ script = ExtResource( 1 )
position = Vector2( 539, 275 ) position = Vector2( 539, 275 )
script = SubResource( 1 ) script = SubResource( 1 )
[node name="TurnQueue" parent="." instance=ExtResource( 2 )] [node name="TurnQueue" type="Node" parent="."]
script = ExtResource( 2 )
combatants_list = NodePath("../Combatants") combatants_list = NodePath("../Combatants")
[node name="UI" type="Control" parent="."] [node name="UI" type="Control" parent="."]

View File

@@ -1,7 +1,5 @@
extends Node extends Node
const combatant = preload("../combatants/Combatant.gd")
export(NodePath) var combatants_list export(NodePath) var combatants_list
var queue = [] setget set_queue var queue = [] setget set_queue
var active_combatant = null setget _set_active_combatant var active_combatant = null setget _set_active_combatant
@@ -43,7 +41,7 @@ func remove(combatant):
func set_queue(new_queue): func set_queue(new_queue):
queue.clear() queue.clear()
for node in new_queue: for node in new_queue:
if not node is combatant: if not node is Combatant:
continue continue
queue.append(node) queue.append(node)
node.active = false node.active = false

View File

@@ -1,3 +1,4 @@
class_name Combatant
extends Node extends Node
export(int) var damage = 1 export(int) var damage = 1

View File

@@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://combat/combatants/Combatant.gd" type="Script" id=1]
[ext_resource path="res://combat/combatants/Health.gd" type="Script" id=2]
[ext_resource path="res://combat/combatants/sprites/Sprite.tscn" type="PackedScene" id=3]
[node name="Combatant" type="Node2D"]
script = ExtResource( 1 )
damage = 2
[node name="Health" type="Node" parent="."]
script = ExtResource( 2 )
life = 10
[node name="Sprite" parent="." instance=ExtResource( 3 )]

View File

@@ -1,10 +1,12 @@
extends "Combatant.gd" extends Combatant
func set_active(value): func set_active(value):
.set_active(value) .set_active(value)
if not active: if not active:
return return
if not $Timer.is_inside_tree():
return
$Timer.start() $Timer.start()
yield($Timer, "timeout") yield($Timer, "timeout")
var target var target

View File

@@ -1,8 +1,8 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://turn_combat/combatants/Combatant.tscn" type="PackedScene" id=1] [ext_resource path="res://combat/combatants/Combatant.tscn" type="PackedScene" id=1]
[ext_resource path="res://turn_combat/combatants/Opponent.gd" type="Script" id=2] [ext_resource path="res://combat/combatants/Opponent.gd" type="Script" id=2]
[ext_resource path="res://turn_combat/combatants/sprites/green.png" type="Texture" id=3] [ext_resource path="res://combat/combatants/sprites/green.png" type="Texture" id=3]
[node name="Opponent" instance=ExtResource( 1 )] [node name="Opponent" instance=ExtResource( 1 )]
script = ExtResource( 2 ) script = ExtResource( 2 )

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=2 format=2]
[ext_resource path="res://turn_combat/combatants/Combatant.tscn" type="PackedScene" id=1] [ext_resource path="res://combat/combatants/Combatant.tscn" type="PackedScene" id=1]
[node name="Player" instance=ExtResource( 1 )] [node name="Player" instance=ExtResource( 1 )]

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=2 format=2]
[ext_resource path="res://turn_combat/combatants/health/Health.gd" type="Script" id=1] [ext_resource path="res://combat/combatants/Health.gd" type="Script" id=1]
[node name="Health" type="Node"] [node name="Health" type="Node"]
script = ExtResource( 1 ) script = ExtResource( 1 )

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://screens/combat/actors/sprites/shadow.png" type="Texture" id=1] [ext_resource path="res://combat/combatants/sprites/shadow.png" type="Texture" id=1]
[ext_resource path="res://screens/combat/actors/sprites/blue.png" type="Texture" id=2] [ext_resource path="res://combat/combatants/sprites/blue.png" type="Texture" id=2]
[sub_resource type="Animation" id=1] [sub_resource type="Animation" id=1]
resource_name = "take_damage" resource_name = "take_damage"

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/blue.png-127e2b8d7aa8f4a7572c4923c2b20228.stex" path="res://.import/blue.png-8092cf6d59f8b71b187a850a15aa9759.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://screens/combat/actors/sprites/blue.png" source_file="res://combat/combatants/sprites/blue.png"
dest_files=[ "res://.import/blue.png-127e2b8d7aa8f4a7572c4923c2b20228.stex" ] dest_files=[ "res://.import/blue.png-8092cf6d59f8b71b187a850a15aa9759.stex" ]
[params] [params]

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/green.png-7937ec3931675b5dd0f218cbb8ae006a.stex" path="res://.import/green.png-d2deadceb974a66b9f9b9df11dc41501.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://screens/combat/actors/sprites/green.png" source_file="res://combat/combatants/sprites/green.png"
dest_files=[ "res://.import/green.png-7937ec3931675b5dd0f218cbb8ae006a.stex" ] dest_files=[ "res://.import/green.png-d2deadceb974a66b9f9b9df11dc41501.stex" ]
[params] [params]

View File

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 741 B

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/object.png-f9ec4c5540ae154e2e73d50438312f26.stex" path="res://.import/shadow.png-d8772fa49c8867b55809e76164b76188.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://grid_movement/tilesets/grid/object.png" source_file="res://combat/combatants/sprites/shadow.png"
dest_files=[ "res://.import/object.png-f9ec4c5540ae154e2e73d50438312f26.stex" ] dest_files=[ "res://.import/shadow.png-d8772fa49c8867b55809e76164b76188.stex" ]
[params] [params]

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=2 format=2]
[ext_resource path="res://theme/labels/Title.tscn" type="PackedScene" id=1] [ext_resource path="res://theme/fonts/montserrat_extra_bold_48.tres" type="DynamicFont" id=1]
[node name="Info" type="PanelContainer"] [node name="Info" type="PanelContainer"]
margin_right = 409.0 margin_right = 409.0
@@ -17,12 +17,22 @@ margin_top = 7.0
margin_right = 402.0 margin_right = 402.0
margin_bottom = 232.0 margin_bottom = 232.0
[node name="Name" parent="VBoxContainer" instance=ExtResource( 1 )] [node name="Name" type="Label" parent="VBoxContainer"]
margin_right = 395.0 margin_right = 395.0
margin_bottom = 110.0 margin_bottom = 110.0
size_flags_horizontal = 3 size_flags_horizontal = 3
size_flags_vertical = 7 size_flags_vertical = 7
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_colors/font_color_shadow = Color( 1, 0.596078, 0, 1 )
custom_constants/shadow_offset_y = 5
text = "{name}" text = "{name}"
align = 1
autowrap = true
clip_text = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Health" type="ProgressBar" parent="VBoxContainer"] [node name="Health" type="ProgressBar" parent="VBoxContainer"]
margin_top = 168.0 margin_top = 168.0

View File

@@ -1,12 +1,12 @@
[gd_scene load_steps=11 format=2] [gd_scene load_steps=11 format=2]
[ext_resource path="res://grid_movement/tilesets/grid_lines/grid_lines_tileset.tres" type="TileSet" id=1] [ext_resource path="res://grid_movement/grid/lines/grid_lines_tileset.tres" type="TileSet" id=1]
[ext_resource path="res://grid_movement/tilesets/grid/grid_tileset.tres" type="TileSet" id=2] [ext_resource path="res://grid_movement/grid/tiles/grid_tileset.tres" type="TileSet" id=2]
[ext_resource path="res://grid_movement/grid/Grid.gd" type="Script" id=3] [ext_resource path="res://grid_movement/grid/Grid.gd" type="Script" id=3]
[ext_resource path="res://grid_movement/pawns/Character.tscn" type="PackedScene" id=4] [ext_resource path="res://grid_movement/pawns/Character.tscn" type="PackedScene" id=4]
[ext_resource path="res://turn_combat/combatants/Player.tscn" type="PackedScene" id=5] [ext_resource path="res://combat/combatants/Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://grid_movement/pawns/Character.gd" type="Script" id=6] [ext_resource path="res://grid_movement/pawns/Opponent.gd" type="Script" id=6]
[ext_resource path="res://turn_combat/combatants/Opponent.tscn" type="PackedScene" id=7] [ext_resource path="res://combat/combatants/Opponent.tscn" type="PackedScene" id=7]
[ext_resource path="res://dialogue/dialogue_player/DialoguePlayer.tscn" type="PackedScene" id=8] [ext_resource path="res://dialogue/dialogue_player/DialoguePlayer.tscn" type="PackedScene" id=8]
[ext_resource path="res://grid_movement/pawns/Pawn.gd" type="Script" id=9] [ext_resource path="res://grid_movement/pawns/Pawn.gd" type="Script" id=9]
[ext_resource path="res://dialogue/interface/Interface.tscn" type="PackedScene" id=10] [ext_resource path="res://dialogue/interface/Interface.tscn" type="PackedScene" id=10]

View File

Before

Width:  |  Height:  |  Size: 111 B

After

Width:  |  Height:  |  Size: 111 B

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/obstacle.png-303025fbfb0bdc414a247e8ee1624a90.stex" path="res://.import/grid_lines.png-52aa706884a3dba960110e63cdf54a8c.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://grid_movement/tilesets/grid/obstacle.png" source_file="res://grid_movement/grid/lines/grid_lines.png"
dest_files=[ "res://.import/obstacle.png-303025fbfb0bdc414a247e8ee1624a90.stex" ] dest_files=[ "res://.import/grid_lines.png-52aa706884a3dba960110e63cdf54a8c.stex" ]
[params] [params]

View File

@@ -1,6 +1,6 @@
[gd_resource type="TileSet" load_steps=2 format=2] [gd_resource type="TileSet" load_steps=2 format=2]
[ext_resource path="res://grid_movement/tilesets/grid_lines/grid_lines.png" type="Texture" id=1] [ext_resource path="res://grid_movement/grid/lines/grid_lines.png" type="Texture" id=1]
[resource] [resource]

View File

Before

Width:  |  Height:  |  Size: 698 B

After

Width:  |  Height:  |  Size: 698 B

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/actor.png-147dff690f83be8a2c66a5bfa83da49f.stex" path="res://.import/actor.png-c322bfa3077f1c55a7d6251f76155bcc.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://grid_movement/tilesets/grid/actor.png" source_file="res://grid_movement/grid/tiles/actor.png"
dest_files=[ "res://.import/actor.png-147dff690f83be8a2c66a5bfa83da49f.stex" ] dest_files=[ "res://.import/actor.png-c322bfa3077f1c55a7d6251f76155bcc.stex" ]
[params] [params]

View File

@@ -1,8 +1,8 @@
[gd_resource type="TileSet" load_steps=4 format=2] [gd_resource type="TileSet" load_steps=4 format=2]
[ext_resource path="res://grid_movement/tilesets/grid/actor.png" type="Texture" id=1] [ext_resource path="res://grid_movement/grid/tiles/actor.png" type="Texture" id=1]
[ext_resource path="res://grid_movement/tilesets/grid/obstacle.png" type="Texture" id=2] [ext_resource path="res://grid_movement/grid/tiles/obstacle.png" type="Texture" id=2]
[ext_resource path="res://grid_movement/tilesets/grid/object.png" type="Texture" id=3] [ext_resource path="res://grid_movement/grid/tiles/object.png" type="Texture" id=3]
[resource] [resource]

View File

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 913 B

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/sprite.png-e28cedc69371816a3468e6325b327ece.stex" path="res://.import/object.png-105b8788e1883723a96438fd97d5db23.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://grid_movement/pawns/sprite.png" source_file="res://grid_movement/grid/tiles/object.png"
dest_files=[ "res://.import/sprite.png-e28cedc69371816a3468e6325b327ece.stex" ] dest_files=[ "res://.import/object.png-105b8788e1883723a96438fd97d5db23.stex" ]
[params] [params]

View File

Before

Width:  |  Height:  |  Size: 103 B

After

Width:  |  Height:  |  Size: 103 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/obstacle.png-bd15bb10c9507019dfb2cad5661bca49.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://grid_movement/grid/tiles/obstacle.png"
dest_files=[ "res://.import/obstacle.png-bd15bb10c9507019dfb2cad5661bca49.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@@ -1,4 +1,4 @@
extends "Pawn.gd" extends Pawn
onready var Grid = get_parent() onready var Grid = get_parent()
var lost = false var lost = false

View File

@@ -1,83 +0,0 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://grid_movement/pawns/Actor.gd" type="Script" id=1]
[ext_resource path="res://grid_movement/pawns/character.png" type="Texture" id=2]
[sub_resource type="Animation" id=1]
resource_name = "bump"
length = 0.1
step = 0.01
tracks/0/type = "value"
tracks/0/path = NodePath("Pivot/Sprite:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.02, 0.04, 0.06, 0.08, 0.1 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( -1.5, -9 ), Vector2( 6.5, 2.5 ), Vector2( -11.5, 8.5 ), Vector2( 4, -5 ), Vector2( 0, 0 ) ]
}
[sub_resource type="Animation" id=2]
resource_name = "walk"
length = 0.25
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("Pivot/Sprite:self_modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = false
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.25 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 0.9375, 0, 1 ), Color( 1, 1, 1, 1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Pivot/Sprite:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.1, 0.15, 0.25 ),
"transitions": PoolRealArray( 1, 0.303143, 2.61003, 1 ),
"update": 0,
"values": [ Vector2( 1.43051e-06, -1.90735e-06 ), Vector2( 1.43051e-06, -1.90735e-06 ), Vector2( 0, -20 ), Vector2( 1.43051e-06, -1.90735e-06 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Pivot/Sprite:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.05, 0.15, 0.25 ),
"transitions": PoolRealArray( 1, 0.354553, 1, 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ), Vector2( 1.20007, 0.917384 ), Vector2( 0.916712, 1.13495 ), Vector2( 1, 1 ) ]
}
[node name="Actor" type="Node2D"]
position = Vector2( 32, 32 )
z_index = 1
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/bump = SubResource( 1 )
anims/walk = SubResource( 2 )
[node name="Tween" type="Tween" parent="."]
[node name="Pivot" type="Position2D" parent="."]
[node name="Sprite" type="Sprite" parent="Pivot"]
texture = ExtResource( 2 )
centered = false
offset = Vector2( -32, -32 )

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=2] [gd_scene load_steps=5 format=2]
[ext_resource path="res://grid_movement/pawns/Walker.gd" type="Script" id=1] [ext_resource path="res://grid_movement/pawns/Walker.gd" type="Script" id=1]
[ext_resource path="res://grid_movement/pawns/sprite.png" type="Texture" id=2] [ext_resource path="res://grid_movement/pawns/character.png" type="Texture" id=2]
[sub_resource type="Animation" id=1] [sub_resource type="Animation" id=1]
resource_name = "bump" resource_name = "bump"
@@ -61,7 +61,7 @@ tracks/2/keys = {
"values": [ Vector2( 1, 1 ), Vector2( 1.20007, 0.917384 ), Vector2( 0.916712, 1.13495 ), Vector2( 1, 1 ) ] "values": [ Vector2( 1, 1 ), Vector2( 1.20007, 0.917384 ), Vector2( 0.916712, 1.13495 ), Vector2( 1, 1 ) ]
} }
[node name="Actor" type="Node2D"] [node name="Character" type="Node2D"]
position = Vector2( 32, 32 ) position = Vector2( 32, 32 )
z_index = 1 z_index = 1
script = ExtResource( 1 ) script = ExtResource( 1 )

View File

@@ -1,8 +0,0 @@
extends "Actor.gd"
func _ready():
set_process(false)
func get_input_direction():
return Vector2.ZERO

View File

@@ -1,4 +1,4 @@
extends "Pawn.gd" extends Pawn
#warning-ignore:unused_class_variable #warning-ignore:unused_class_variable
export(PackedScene) var combat_actor export(PackedScene) var combat_actor

View File

@@ -1,3 +1,4 @@
class_name Pawn
extends Node2D extends Node2D
enum CellType { ACTOR, OBSTACLE, OBJECT } enum CellType { ACTOR, OBSTACLE, OBJECT }

View File

@@ -1,16 +0,0 @@
extends "Actor.gd"
const DIRECTIONS = [-1, 1]
func get_input_direction():
if not active:
return Vector2()
var random_x = DIRECTIONS[randi() % DIRECTIONS.size()]
var random_y = DIRECTIONS[randi() % DIRECTIONS.size()]
var random_axis = randi() % 2
if random_axis > 0:
random_x = 0
else:
random_y = 0
return Vector2(random_x, random_y)

View File

@@ -1,6 +1,6 @@
extends "Pawn.gd" extends Pawn
onready var Grid = get_parent() onready var parent = get_parent()
#warning-ignore:unused_class_variable #warning-ignore:unused_class_variable
export(PackedScene) var combat_actor export(PackedScene) var combat_actor
#warning-ignore:unused_class_variable #warning-ignore:unused_class_variable
@@ -16,7 +16,7 @@ func _process(_delta):
return return
update_look_direction(input_direction) update_look_direction(input_direction)
var target_position = Grid.request_move(self, input_direction) var target_position = parent.request_move(self, input_direction)
if target_position: if target_position:
move_to(target_position) move_to(target_position)
$Tween.start() $Tween.start()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 B

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/grid_lines.png-151c8a0e38dd3f92e569d4b4f869a28e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://grid_movement/tilesets/grid_lines/grid_lines.png"
dest_files=[ "res://.import/grid_lines.png-151c8a0e38dd3f92e569d4b4f869a28e.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -8,6 +8,22 @@
config_version=4 config_version=4
_global_script_classes=[ {
"base": "Node",
"class": "Combatant",
"language": "GDScript",
"path": "res://combat/combatants/Combatant.gd"
}, {
"base": "Node2D",
"class": "Pawn",
"language": "GDScript",
"path": "res://grid_movement/pawns/Pawn.gd"
} ]
_global_script_class_icons={
"Combatant": "",
"Pawn": ""
}
[application] [application]
config/name="JRPG Demo" config/name="JRPG Demo"

View File

@@ -1,14 +0,0 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://turn_combat/combatants/Combatant.gd" type="Script" id=1]
[ext_resource path="res://turn_combat/combatants/health/Health.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/combat/actors/sprites/Sprite.tscn" type="PackedScene" id=3]
[node name="Actor" type="Node2D"]
script = ExtResource( 1 )
damage = 2
[node name="Health" parent="." instance=ExtResource( 2 )]
life = 10
[node name="Sprite" parent="." instance=ExtResource( 3 )]

View File

@@ -1,39 +0,0 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://screens/combat/actors/Actor.tscn" type="PackedScene" id=1]
[ext_resource path="res://screens/combat/actors/sprites/green.png" type="Texture" id=2]
[sub_resource type="GDScript" id=1]
script/source = "extends \"res://turn_combat/combatants/Combatant.gd\"
func set_active(value):
.set_active(value)
if not active:
return
$Timer.start()
yield($Timer, \"timeout\")
var target
for actor in get_parent().get_children():
if not actor == self:
target = actor
break
attack(target)"
[node name="Opponent" instance=ExtResource( 1 )]
script = SubResource( 1 )
damage = 3
defense = 0
[node name="Health" parent="." index="0"]
life = 7
max_life = 7
[node name="Body" parent="Sprite/Pivot" index="1"]
texture = ExtResource( 2 )
[node name="Timer" type="Timer" parent="." index="2"]
wait_time = 0.25
one_shot = true
[editable path="Sprite"]

View File

@@ -1,6 +0,0 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://screens/combat/actors/Actor.tscn" type="PackedScene" id=1]
[node name="Player" instance=ExtResource( 1 )]
defense = 2

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/shadow.png-3c36ca984d4b9e8eba8c422537f5ca42.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://screens/combat/actors/sprites/shadow.png"
dest_files=[ "res://.import/shadow.png-3c36ca984d4b9e8eba8c422537f5ca42.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@@ -1,36 +0,0 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://theme/labels/Title.tscn" type="PackedScene" id=1]
[node name="ActorInfo" type="PanelContainer"]
margin_right = 409.0
margin_bottom = 239.0
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_left = 7.0
margin_top = 7.0
margin_right = 402.0
margin_bottom = 232.0
[node name="Name" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_right = 395.0
margin_bottom = 110.0
size_flags_horizontal = 3
size_flags_vertical = 7
text = "{name}"
[node name="Health" type="ProgressBar" parent="VBoxContainer"]
margin_top = 168.0
margin_right = 395.0
margin_bottom = 170.0
size_flags_vertical = 6
max_value = 10.0
step = 1.0
value = 5.0
rounded = true
percent_visible = false

View File

@@ -1,104 +0,0 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://theme/theme.tres" type="Theme" id=1]
[ext_resource path="res://theme/labels/Title.tscn" type="PackedScene" id=2]
[ext_resource path="res://theme/fonts/montserrat_extra_bold_24.tres" type="DynamicFont" id=3]
[ext_resource path="res://theme/progressbar/foreground_stylebox_red.tres" type="StyleBox" id=4]
[ext_resource path="res://theme/progressbar/foreground_stylebox_blue.tres" type="StyleBox" id=5]
[sub_resource type="GDScript" id=1]
script/source = "extends VBoxContainer
func _ready():
set_process(false)
func _process(delta):
for p in get_children():
$ProgressBarBlue.value += 10 * delta
$ProgressBarRed.value += 10 * delta
func _on_Button_button_down():
set_process(true)
func _on_Button_button_up():
set_process(false)
"
[node name="Control" type="Control"]
margin_right = 1024.0
margin_bottom = 600.0
theme = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Panel" type="Panel" parent="."]
margin_left = 128.0
margin_top = 64.0
margin_right = 896.0
margin_bottom = 536.0
[node name="Title" parent="Panel" instance=ExtResource( 2 )]
margin_right = 767.0
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
margin_left = 128.0
margin_top = 180.0
margin_right = 524.0
margin_bottom = 424.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 5
script = SubResource( 1 )
[node name="Speed" type="Label" parent="Panel/VBoxContainer"]
margin_right = 396.0
margin_bottom = 40.0
custom_fonts/font = ExtResource( 3 )
text = "Speed"
[node name="ProgressBarRed" type="ProgressBar" parent="Panel/VBoxContainer"]
margin_top = 45.0
margin_right = 396.0
margin_bottom = 85.0
custom_styles/fg = ExtResource( 4 )
step = 1.0
percent_visible = false
[node name="BlankSpace" type="ReferenceRect" parent="Panel/VBoxContainer"]
margin_top = 90.0
margin_right = 396.0
margin_bottom = 154.0
rect_min_size = Vector2( 0, 16 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Acceleration" type="Label" parent="Panel/VBoxContainer"]
margin_top = 159.0
margin_right = 396.0
margin_bottom = 199.0
custom_fonts/font = ExtResource( 3 )
text = "Acceleration"
[node name="ProgressBarBlue" type="ProgressBar" parent="Panel/VBoxContainer"]
margin_top = 204.0
margin_right = 396.0
margin_bottom = 244.0
custom_styles/fg = ExtResource( 5 )
step = 1.0
percent_visible = false
[node name="Button" type="Button" parent="Panel"]
margin_left = 531.0
margin_top = 258.0
margin_right = 664.0
margin_bottom = 377.0
size_flags_horizontal = 2
size_flags_vertical = 4
size_flags_stretch_ratio = 0.0
text = "Add"
[connection signal="button_down" from="Panel/Button" to="Panel/VBoxContainer" method="_on_Button_button_down"]
[connection signal="button_up" from="Panel/Button" to="Panel/VBoxContainer" method="_on_Button_button_up"]

View File

@@ -0,0 +1,11 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
[ext_resource path="res://theme/images/foreground_blue.png" type="Texture" id=1]
[resource]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 64, 64 )
margin_left = 18.0
margin_right = 18.0
margin_top = 18.0
margin_bottom = 18.0

View File

@@ -0,0 +1,11 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
[ext_resource path="res://theme/images/foreground_red.png" type="Texture" id=1]
[resource]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 64, 64 )
margin_left = 18.0
margin_right = 18.0
margin_top = 20.0
margin_bottom = 20.0

View File

Before

Width:  |  Height:  |  Size: 973 B

After

Width:  |  Height:  |  Size: 973 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/background.png-18a7ab092343a1a2d858e1a344411242.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://theme/images/background.png"
dest_files=[ "res://.import/background.png-18a7ab092343a1a2d858e1a344411242.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/button_rect.png-50631b7139a07837e9f4856772433e8e.stex" path="res://.import/button_rect.png-b2c41a1b80f4932c0e158cb00f0366e3.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://theme/button/button_rect.png" source_file="res://theme/images/button_rect.png"
dest_files=[ "res://.import/button_rect.png-50631b7139a07837e9f4856772433e8e.stex" ] dest_files=[ "res://.import/button_rect.png-b2c41a1b80f4932c0e158cb00f0366e3.stex" ]
[params] [params]

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/button_rect_pressed.png-e5e25d3b6005d4ba5edf4354beb6dc06.stex" path="res://.import/button_rect_pressed.png-412a6dd553cfc471e5f96826ccf6d434.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://theme/button/button_rect_pressed.png" source_file="res://theme/images/button_rect_pressed.png"
dest_files=[ "res://.import/button_rect_pressed.png-e5e25d3b6005d4ba5edf4354beb6dc06.stex" ] dest_files=[ "res://.import/button_rect_pressed.png-412a6dd553cfc471e5f96826ccf6d434.stex" ]
[params] [params]

View File

Before

Width:  |  Height:  |  Size: 993 B

After

Width:  |  Height:  |  Size: 993 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/foreground_blue.png-35d7e9646fc1e18e8f56dc08539244f0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://theme/images/foreground_blue.png"
dest_files=[ "res://.import/foreground_blue.png-35d7e9646fc1e18e8f56dc08539244f0.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/foreground_red.png-c23ba55805336ffe255b2be9b971baee.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://theme/images/foreground_red.png"
dest_files=[ "res://.import/foreground_red.png-c23ba55805336ffe255b2be9b971baee.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/panel_rect.png-52b8de43da3f3ba3a0682eb789a33286.stex" path="res://.import/panel_rect.png-eef2ae28539c58e6b551075147d16b2a.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://theme/panel/panel_rect.png" source_file="res://theme/images/panel_rect.png"
dest_files=[ "res://.import/panel_rect.png-52b8de43da3f3ba3a0682eb789a33286.stex" ] dest_files=[ "res://.import/panel_rect.png-eef2ae28539c58e6b551075147d16b2a.stex" ]
[params] [params]

View File

@@ -1,18 +0,0 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://theme/fonts/montserrat_extra_bold_48.tres" type="DynamicFont" id=1]
[node name="Title" type="Label"]
margin_right = 113.0
margin_bottom = 60.0
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_colors/font_color_shadow = Color( 1, 0.596078, 0, 1 )
custom_constants/shadow_offset_y = 5
text = "Title"
align = 1
autowrap = true
clip_text = true
__meta__ = {
"_edit_use_anchors_": false
}

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/background.png-db91f961480760b8bfa082076dc72dbd.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://theme/progressbar/background.png"
dest_files=[ "res://.import/background.png-db91f961480760b8bfa082076dc72dbd.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/foreground_blue.png-1208ba20a94923d82a7b0eacc6914552.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://theme/progressbar/foreground_blue.png"
dest_files=[ "res://.import/foreground_blue.png-1208ba20a94923d82a7b0eacc6914552.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/foreground_red.png-60d00de182b78bd324a56c9f03008a15.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://theme/progressbar/foreground_red.png"
dest_files=[ "res://.import/foreground_red.png-60d00de182b78bd324a56c9f03008a15.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@@ -1,25 +0,0 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
[ext_resource path="res://theme/progressbar/foreground_blue.png" type="Texture" id=1]
[resource]
content_margin_left = -1.0
content_margin_right = -1.0
content_margin_top = -1.0
content_margin_bottom = -1.0
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 64, 64 )
margin_left = 18.0
margin_right = 18.0
margin_top = 18.0
margin_bottom = 18.0
expand_margin_left = 0.0
expand_margin_right = 0.0
expand_margin_top = 0.0
expand_margin_bottom = 0.0
modulate_color = Color( 1, 1, 1, 1 )
draw_center = true
_sections_unfolded = [ "Margin" ]

View File

@@ -1,25 +0,0 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
[ext_resource path="res://theme/progressbar/foreground_red.png" type="Texture" id=1]
[resource]
content_margin_left = -1.0
content_margin_right = -1.0
content_margin_top = -1.0
content_margin_bottom = -1.0
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 64, 64 )
margin_left = 18.0
margin_right = 18.0
margin_top = 20.0
margin_bottom = 20.0
expand_margin_left = 0.0
expand_margin_right = 0.0
expand_margin_top = 0.0
expand_margin_bottom = 0.0
modulate_color = Color( 1, 1, 1, 1 )
draw_center = true
_sections_unfolded = [ "Margin" ]

View File

@@ -1,12 +1,12 @@
[gd_resource type="Theme" load_steps=14 format=2] [gd_resource type="Theme" load_steps=14 format=2]
[ext_resource path="res://theme/fonts/montserrat_extra_bold_32.tres" type="DynamicFont" id=1] [ext_resource path="res://theme/fonts/montserrat_extra_bold_32.tres" type="DynamicFont" id=1]
[ext_resource path="res://theme/button/button_rect.png" type="Texture" id=2] [ext_resource path="res://theme/images/button_rect.png" type="Texture" id=2]
[ext_resource path="res://theme/button/button_rect_pressed.png" type="Texture" id=3] [ext_resource path="res://theme/images/button_rect_pressed.png" type="Texture" id=3]
[ext_resource path="res://theme/fonts/montserrat_extra_bold_24.tres" type="DynamicFont" id=4] [ext_resource path="res://theme/fonts/montserrat_extra_bold_24.tres" type="DynamicFont" id=4]
[ext_resource path="res://theme/panel/panel_rect.png" type="Texture" id=5] [ext_resource path="res://theme/images/panel_rect.png" type="Texture" id=5]
[ext_resource path="res://theme/progressbar/background.png" type="Texture" id=6] [ext_resource path="res://theme/images/background.png" type="Texture" id=6]
[ext_resource path="res://theme/progressbar/foreground_stylebox_red.tres" type="StyleBox" id=7] [ext_resource path="res://theme/foreground_stylebox_red.tres" type="StyleBox" id=7]
[sub_resource type="StyleBoxEmpty" id=1] [sub_resource type="StyleBoxEmpty" id=1]
resource_name = "button_focus_style" resource_name = "button_focus_style"

View File

@@ -1,14 +0,0 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://turn_combat/combatants/Combatant.gd" type="Script" id=1]
[ext_resource path="res://turn_combat/combatants/health/Health.tscn" type="PackedScene" id=2]
[ext_resource path="res://turn_combat/combatants/sprites/Sprite.tscn" type="PackedScene" id=3]
[node name="Combatant" type="Node2D"]
script = ExtResource( 1 )
damage = 2
[node name="Health" parent="." instance=ExtResource( 2 )]
life = 10
[node name="Sprite" parent="." instance=ExtResource( 3 )]

View File

@@ -1,38 +0,0 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://turn_combat/combatants/sprites/shadow.png" type="Texture" id=1]
[ext_resource path="res://turn_combat/combatants/sprites/blue.png" type="Texture" id=2]
[sub_resource type="Animation" id=1]
resource_name = "take_damage"
length = 0.2
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("Pivot/Body:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 3, 0.253906, 0.253906, 1 ), Color( 1, 1, 1, 1 ), Color( 3, 0.253906, 0.253906, 1 ), Color( 1, 1, 1, 1 ) ]
}
[node name="Sprite" type="Node2D"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/take_damage = SubResource( 1 )
[node name="Tween" type="Tween" parent="."]
[node name="Pivot" type="Position2D" parent="."]
[node name="Shadow" type="Sprite" parent="Pivot"]
position = Vector2( 0, -15 )
texture = ExtResource( 1 )
[node name="Body" type="Sprite" parent="Pivot"]
position = Vector2( 0, -76 )
texture = ExtResource( 2 )

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/blue.png-1646430371c0817627bfbad8bb1bf0ab.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://turn_combat/combatants/sprites/blue.png"
dest_files=[ "res://.import/blue.png-1646430371c0817627bfbad8bb1bf0ab.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/green.png-0c539b10234a7340c6135a5edb21b0e1.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://turn_combat/combatants/sprites/green.png"
dest_files=[ "res://.import/green.png-0c539b10234a7340c6135a5edb21b0e1.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 741 B

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/shadow.png-0d089e013d2449a666ec492b25e627fe.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://turn_combat/combatants/sprites/shadow.png"
dest_files=[ "res://.import/shadow.png-0d089e013d2449a666ec492b25e627fe.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@@ -1,6 +0,0 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://turn_combat/turn_queue/TurnQueue.gd" type="Script" id=1]
[node name="TurnQueue" type="Node"]
script = ExtResource( 1 )

View File

@@ -24,8 +24,6 @@ public class Viewport25D : Control
public async override void _Ready() public async override void _Ready()
{ {
// Give Godot a chance to fully load the scene. Should take two frames. // Give Godot a chance to fully load the scene. Should take two frames.
//yield(get_tree(), "idle_frame");
//yield(get_tree(), "idle_frame");
await ToSignal(GetTree(), "idle_frame"); await ToSignal(GetTree(), "idle_frame");
await ToSignal(GetTree(), "idle_frame"); await ToSignal(GetTree(), "idle_frame");
var editedSceneRoot = GetTree().EditedSceneRoot; var editedSceneRoot = GetTree().EditedSceneRoot;