Skip to content

Commit

Permalink
Concept arts integrated into the combat system
Browse files Browse the repository at this point in the history
The only "missing" point is converting the game from 720p to 1080p. For
what I can tell, it's already 1080p, but it's being tested as 720p.

I had to downscale the sprites for the battlers, they were occuping the
whole screen.

For the platforms, I decided to only hide the sprite:
- The platforms might be used in a different area theme in the future
- The characters already have their own shadow
- Shadows have different sizes depending on what battler is "casting" it

Closes gdquest-demos#53
  • Loading branch information
guilhermehto committed Nov 26, 2018
1 parent aa3595b commit f3e19d8
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

[ext_resource path="res://animation/BattlerAnim.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/sprites/battlers/shadow.png" type="Texture" id=2]
[ext_resource path="res://assets/sprites/battlers/character_green.png" type="Texture" id=3]
[ext_resource path="res://assets/sprites/battlers/godette.png" type="Texture" id=3]

[node name="DanAnim" instance=ExtResource( 1 )]
[node name="GodetteAnim" instance=ExtResource( 1 )]

[node name="shadow" type="Sprite" parent="." index="0"]
position = Vector2( 0, -1 )
position = Vector2( 0.278992, -1 )
scale = Vector2( 0.442015, 1 )
texture = ExtResource( 2 )
_sections_unfolded = [ "Transform" ]

[node name="body" type="Sprite" parent="." index="1"]
position = Vector2( 0, -60 )
position = Vector2( 0, -88 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 3 )
_sections_unfolded = [ "Transform" ]

13 changes: 6 additions & 7 deletions godot/animation/PorcupineAnim.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

[ext_resource path="res://animation/BattlerAnim.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/sprites/battlers/shadow.png" type="Texture" id=2]
[ext_resource path="res://assets/sprites/monsters/porcupine.png" type="Texture" id=3]
[ext_resource path="res://assets/sprites/battlers/porcupine.png" type="Texture" id=3]

[node name="PorcupineAnim" index="0" instance=ExtResource( 1 )]
[node name="PorcupineAnim" instance=ExtResource( 1 )]

[node name="shadow" type="Sprite" parent="." index="0"]
position = Vector2( -2.18341, -7.19193 )
scale = Vector2( 0.944015, 0.77886 )
position = Vector2( -2.09242, -7.19193 )
scale = Vector2( 0.762035, 0.77886 )
texture = ExtResource( 2 )
_sections_unfolded = [ "Transform" ]

[node name="body" type="Sprite" parent="." index="1"]
position = Vector2( 11.4993, -57.4964 )
position = Vector2( 11.4993, -54.4964 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 3 )
_sections_unfolded = [ "Transform" ]

12 changes: 6 additions & 6 deletions godot/animation/BlueAnim.tscn → godot/animation/RobiAnim.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

[ext_resource path="res://animation/BattlerAnim.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/sprites/battlers/shadow.png" type="Texture" id=2]
[ext_resource path="res://assets/sprites/battlers/character_blue.png" type="Texture" id=3]
[ext_resource path="res://assets/sprites/battlers/robi.png" type="Texture" id=3]

[node name="BlueAnim" index="0" instance=ExtResource( 1 )]
[node name="RobiAnim" instance=ExtResource( 1 )]

[node name="shadow" type="Sprite" parent="." index="0"]
position = Vector2( 0, -1 )
position = Vector2( 0.274139, -1 )
scale = Vector2( 0.451718, 1 )
texture = ExtResource( 2 )
_sections_unfolded = [ "Transform" ]

[node name="body" type="Sprite" parent="." index="1"]
position = Vector2( 0, -60 )
position = Vector2( 0, -78 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 3 )
_sections_unfolded = [ "Transform" ]

7 changes: 6 additions & 1 deletion godot/combat/CombatArena.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=9 format=2]

[ext_resource path="res://combat/CombatArena.gd" type="Script" id=1]
[ext_resource path="res://combat/turn_queue/TurnQueue.tscn" type="PackedScene" id=2]
Expand All @@ -7,6 +7,7 @@
[ext_resource path="res://interface/default.theme" type="Theme" id=5]
[ext_resource path="res://combat/interface/bars/BattlersBarsBuilder.tscn" type="PackedScene" id=6]
[ext_resource path="res://combat/Rewards.gd" type="Script" id=7]
[ext_resource path="res://combat/background/Grasslands.tscn" type="PackedScene" id=8]

[node name="CombatArena" type="Node2D"]
script = ExtResource( 1 )
Expand Down Expand Up @@ -39,6 +40,7 @@ script = ExtResource( 3 )
[node name="SelectArrow" parent="CombatInterface" instance=ExtResource( 4 )]

[node name="OldSchoolUI" type="Control" parent="CombatInterface"]
editor/display_folded = true
anchor_left = 0.0
anchor_top = 1.0
anchor_right = 1.0
Expand Down Expand Up @@ -196,6 +198,7 @@ size_flags_vertical = 1
[node name="BattlersBarsBuilder" parent="CombatInterface" instance=ExtResource( 6 )]

[node name="Rewards" type="CanvasLayer" parent="."]
editor/display_folded = true
layer = 1
offset = Vector2( 0, 0 )
rotation = 0.0
Expand Down Expand Up @@ -238,4 +241,6 @@ percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="Grasslands" parent="." instance=ExtResource( 8 )]

[connection signal="item_activated" from="CombatInterface/OldSchoolUI/Row/MonstersPanel/ActionSelector/ItemList" to="CombatInterface" method="_on_ItemList_item_activated"]
11 changes: 11 additions & 0 deletions godot/combat/background/ArenaTheme.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[gd_scene format=2]

[node name="ArenaTheme" type="Node2D"]

[node name="Background" type="Sprite" parent="."]
position = Vector2( 960, 540 )
z_index = -1

[node name="ForegroundElements" type="Node2D" parent="."]
z_index = 1

24 changes: 24 additions & 0 deletions godot/combat/background/Grasslands.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[gd_scene load_steps=5 format=2]

[ext_resource path="res://combat/background/ArenaTheme.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/sprites/background/grasslands/grasslands.png" type="Texture" id=2]
[ext_resource path="res://assets/sprites/background/grasslands/reek_1.png" type="Texture" id=3]
[ext_resource path="res://assets/sprites/background/grasslands/reek_2.png" type="Texture" id=4]

[node name="Grasslands" instance=ExtResource( 1 )]

[node name="Background" parent="." index="0"]
texture = ExtResource( 2 )

[node name="Reek" type="Sprite" parent="ForegroundElements" index="0"]
position = Vector2( 0, 940 )
texture = ExtResource( 3 )

[node name="Reek3" type="Sprite" parent="ForegroundElements" index="1"]
position = Vector2( 1670, 990 )
texture = ExtResource( 3 )

[node name="Reek2" type="Sprite" parent="ForegroundElements" index="2"]
position = Vector2( 1860, 940 )
texture = ExtResource( 4 )

1 change: 1 addition & 0 deletions godot/combat/background/StonePlatform.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[node name="StonePlatform" type="Position2D"]

[node name="sprite" type="Sprite" parent="."]
visible = false
position = Vector2( 0, 43 )
texture = ExtResource( 1 )

4 changes: 2 additions & 2 deletions godot/combat/battlers/Battler.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -100.0
margin_top = 70.0
margin_top = 8.0
margin_right = 100.0
margin_bottom = 90.0
margin_bottom = 28.0
rect_min_size = Vector2( 200, 20 )
rect_pivot_offset = Vector2( 100, 10 )
rect_clip_content = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_resource type="Resource" load_steps=5 format=2]

[ext_resource path="res://animation/DanAnim.tscn" type="PackedScene" id=1]
[ext_resource path="res://animation/GodetteAnim.tscn" type="PackedScene" id=1]
[ext_resource path="res://combat/battlers/BattlerTemplate.gd" type="Script" id=2]
[ext_resource path="res://combat/battlers/skills/Slash.tres" type="Resource" id=3]
[ext_resource path="res://combat/battlers/jobs/Fighter.tres" type="Resource" id=4]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_resource type="Resource" load_steps=5 format=2]

[ext_resource path="res://animation/BlueAnim.tscn" type="PackedScene" id=1]
[ext_resource path="res://animation/RobiAnim.tscn" type="PackedScene" id=1]
[ext_resource path="res://combat/battlers/BattlerTemplate.gd" type="Script" id=2]
[ext_resource path="res://combat/battlers/skills/Slash.tres" type="Resource" id=3]
[ext_resource path="res://combat/battlers/jobs/Fighter.tres" type="Resource" id=4]
Expand Down
6 changes: 3 additions & 3 deletions godot/combat/battlers/formations/PorcupineFormation001.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ platform_template = ExtResource( 2 )
background_image = null

[node name="Porcupine" parent="." instance=ExtResource( 3 )]
position = Vector2( 615.574, 266.879 )
position = Vector2( 369.233, 566.37 )
combat_template = ExtResource( 4 )

[node name="Porcupine3" parent="." instance=ExtResource( 3 )]
position = Vector2( 204.542, 488.953 )
position = Vector2( 204.542, 698.953 )
combat_template = ExtResource( 5 )

[node name="Porcupine2" parent="." instance=ExtResource( 3 )]
position = Vector2( 498.693, 693.495 )
position = Vector2( 455.643, 817.395 )
combat_template = ExtResource( 4 )

8 changes: 4 additions & 4 deletions godot/party/Party.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

[ext_resource path="res://party/Party.gd" type="Script" id=1]
[ext_resource path="res://combat/battlers/characters/PartyMember.tscn" type="PackedScene" id=2]
[ext_resource path="res://combat/battlers/characters/Blue.tres" type="Resource" id=3]
[ext_resource path="res://combat/battlers/characters/Dan.tres" type="Resource" id=4]
[ext_resource path="res://combat/battlers/characters/Godette.tres" type="Resource" id=3]
[ext_resource path="res://combat/battlers/characters/Robi.tres" type="Resource" id=4]

[node name="Party" type="Node2D"]
visible = false
script = ExtResource( 1 )

[node name="Blue" parent="." instance=ExtResource( 2 )]
[node name="Godette" parent="." instance=ExtResource( 2 )]
combat_template = ExtResource( 3 )

[node name="Dan" parent="." instance=ExtResource( 2 )]
[node name="Robi" parent="." instance=ExtResource( 2 )]
combat_template = ExtResource( 4 )

0 comments on commit f3e19d8

Please sign in to comment.