Skip to content

Commit 471b813

Browse files
committed
Fix typos and add missing end lines JRPG demo
1 parent 2709dde commit 471b813

File tree

12 files changed

+14
-16
lines changed

12 files changed

+14
-16
lines changed

2d/role_playing_game/dialog_system/dialog_player/DialogPlayer.tscn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[gd_scene load_steps=2 format=2]
22

3-
[ext_resource path="res://dialog_system/dialog_player/dialog_player.gd" type="Script" id=1]
3+
[ext_resource path="res://dialog_system/dialog_player/DialogPlayer.gd" type="Script" id=1]
4+
45

56

67
[node name="DialogPlayer" type="Node"]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dialog_1" : {"name": "Unknown", "text": "Hey, it's a good time to have a JRPG fight, right?"},
3-
"dialog_2" : {"name": "Unknown", "text": "Let me present myself, I'm Opponent"},
4-
"dialog_3" : {"name": "Opponent", "text": "Enough talk, let's fight!"},
3+
"dialog_2" : {"name": "Unknown", "text": "Let me introduce myself, I'm the OPPONENT"},
4+
"dialog_3" : {"name": "Opponent", "text": "Enough talking. Let's fight!"},
55
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
22
"dialog_1" : {"name": "Opponent", "text": "Aha! I won, maybe you can try again next time"},
3-
"dialog_2" : {"name": "Opponent", "text": "Now let me wonder around again..."},
43
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
22
"dialog_1" : {"name": "Opponent", "text": "Congratulations, you won!"},
3-
"dialog_2" : {"name": "Opponent", "text": "Now let me wonder around again..."},
43
}

2d/role_playing_game/grid_movement/grid/grid.gd

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ func _ready():
77
for child in get_children():
88
set_cellv(world_to_map(child.position), child.type)
99

10-
1110
func get_cell_pawn(cell, type = ACTOR):
1211
for node in get_children():
1312
if node.type != type:
1413
continue
1514
if world_to_map(node.position) == cell:
1615
return(node)
1716

18-
1917
func request_move(pawn, direction):
2018
var cell_start = world_to_map(pawn.position)
2119
var cell_target = cell_start + direction
@@ -33,4 +31,3 @@ func request_move(pawn, direction):
3331
if not target_pawn.has_node("DialogPlayer"):
3432
return
3533
get_node(dialog_ui).show_dialog(pawn, target_pawn.get_node("DialogPlayer"))
36-

2d/role_playing_game/screens/combat/Combat.tscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func add_actor(actor):
5050
actor.position.x += 200 * get_child_count()
5151
add_child(actor)"
5252
53-
[node name="Combat" type="Node2D"]
53+
[node name="Combat" type="Node2D" index="0"]
5454
5555
script = SubResource( 1 )
5656

2d/role_playing_game/screens/exploration/Exploration.tscn

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
[ext_resource path="res://grid_movement/tilesets/grid_lines/grid_lines_tileset.tres" type="TileSet" id=1]
44
[ext_resource path="res://grid_movement/tilesets/grid/grid_tileset.tres" type="TileSet" id=2]
5-
[ext_resource path="res://grid_movement/grid/grid.gd" type="Script" id=3]
5+
[ext_resource path="res://grid_movement/grid/Grid.gd" type="Script" id=3]
66
[ext_resource path="res://grid_movement/pawns/Actor.tscn" type="PackedScene" id=4]
77
[ext_resource path="res://screens/combat/actors/Player.tscn" type="PackedScene" id=5]
8-
[ext_resource path="res://grid_movement/pawns/idle_actor.gd" type="Script" id=6]
8+
[ext_resource path="res://grid_movement/pawns/IdleActor.gd" type="Script" id=6]
99
[ext_resource path="res://screens/combat/actors/Opponent.tscn" type="PackedScene" id=7]
1010
[ext_resource path="res://dialog_system/dialog_player/DialogPlayer.tscn" type="PackedScene" id=8]
1111
[ext_resource path="res://grid_movement/pawns/pawn.gd" type="Script" id=9]
1212
[ext_resource path="res://dialog_system/interface/DialogUI.tscn" type="PackedScene" id=10]
1313

14+
15+
1416
[node name="Exploration" type="Node2D"]
1517

1618
[node name="Grass" type="TileMap" parent="." index="0"]

0 commit comments

Comments
 (0)