-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
712 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[gd_resource type="Resource" script_class="Entity" load_steps=13 format=3 uid="uid://wm7jwgulk3qw"] | ||
|
||
[ext_resource type="Script" path="res://src/Entity/Component/component.gd" id="1_i4e47"] | ||
[ext_resource type="Script" path="res://src/Entity/entity.gd" id="2_5wqww"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/DrawableComponent/DrawableEffects/drawable_effect.gd" id="2_akf0l"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/DrawableComponent/drawable_component.gd" id="3_nhg5v"] | ||
[ext_resource type="Script" path="res://src/Entity/entity_template.gd" id="3_rin70"] | ||
[ext_resource type="Texture2D" uid="uid://cl5u3naxm2fy" path="res://assets/urizen_onebit_tileset__v1d0.png" id="4_iubcv"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/rememberable_component.gd" id="5_rnsd8"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/stairs_component.gd" id="6_slrol"] | ||
|
||
[sub_resource type="AtlasTexture" id="AtlasTexture_eotiq"] | ||
atlas = ExtResource("4_iubcv") | ||
region = Rect2(300, 14, 12, 12) | ||
|
||
[sub_resource type="Resource" id="Resource_i53o7"] | ||
script = ExtResource("3_nhg5v") | ||
texture = SubResource("AtlasTexture_eotiq") | ||
render_order = 2 | ||
color = Color(1, 1, 1, 1) | ||
modulate = Color(1, 1, 1, 1) | ||
visible = true | ||
position = Vector2i(0, 0) | ||
drawable_effects = Array[ExtResource("2_akf0l")]([]) | ||
_active_drawable_effects = {} | ||
|
||
[sub_resource type="Resource" id="Resource_ljg01"] | ||
script = ExtResource("5_rnsd8") | ||
not_in_view_color = Color(1, 1, 1, 1) | ||
|
||
[sub_resource type="Resource" id="Resource_vuvas"] | ||
script = ExtResource("6_slrol") | ||
target_map_index = 0 | ||
use_verb = "descends" | ||
|
||
[resource] | ||
script = ExtResource("2_5wqww") | ||
name = "Stairs (Down)" | ||
is_proper_name = false | ||
templates = Array[ExtResource("3_rin70")]([]) | ||
initial_components = Array[ExtResource("1_i4e47")]([SubResource("Resource_i53o7"), SubResource("Resource_ljg01"), SubResource("Resource_vuvas")]) | ||
_components = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[gd_resource type="Resource" script_class="Entity" load_steps=13 format=3 uid="uid://mk0fsop75a3g"] | ||
|
||
[ext_resource type="Script" path="res://src/Entity/Component/component.gd" id="1_mawj2"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/DrawableComponent/DrawableEffects/drawable_effect.gd" id="2_vv4yp"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/DrawableComponent/drawable_component.gd" id="3_s0b70"] | ||
[ext_resource type="Texture2D" uid="uid://cl5u3naxm2fy" path="res://assets/urizen_onebit_tileset__v1d0.png" id="4_1iwii"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/rememberable_component.gd" id="5_etnwx"] | ||
[ext_resource type="Script" path="res://src/Entity/Component/stairs_component.gd" id="6_8vshh"] | ||
[ext_resource type="Script" path="res://src/Entity/entity.gd" id="7_0xedi"] | ||
[ext_resource type="Script" path="res://src/Entity/entity_template.gd" id="8_uu8ya"] | ||
|
||
[sub_resource type="AtlasTexture" id="AtlasTexture_hxywt"] | ||
atlas = ExtResource("4_1iwii") | ||
region = Rect2(313, 14, 12, 12) | ||
|
||
[sub_resource type="Resource" id="Resource_7uarv"] | ||
script = ExtResource("3_s0b70") | ||
texture = SubResource("AtlasTexture_hxywt") | ||
render_order = 0 | ||
color = Color(1, 1, 1, 1) | ||
modulate = Color(1, 1, 1, 1) | ||
visible = true | ||
position = Vector2i(0, 0) | ||
drawable_effects = Array[ExtResource("2_vv4yp")]([]) | ||
_active_drawable_effects = {} | ||
|
||
[sub_resource type="Resource" id="Resource_eumk6"] | ||
script = ExtResource("5_etnwx") | ||
not_in_view_color = Color(1, 1, 1, 1) | ||
|
||
[sub_resource type="Resource" id="Resource_nm6ar"] | ||
script = ExtResource("6_8vshh") | ||
target_map_index = 0 | ||
use_verb = "climbss" | ||
|
||
[resource] | ||
script = ExtResource("7_0xedi") | ||
name = "Stairs (Up)" | ||
is_proper_name = false | ||
templates = Array[ExtResource("8_uu8ya")]([]) | ||
initial_components = Array[ExtResource("1_mawj2")]([SubResource("Resource_7uarv"), SubResource("Resource_eumk6"), SubResource("Resource_nm6ar")]) | ||
_components = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[gd_resource type="Resource" script_class="WorldConfig" load_steps=6 format=3 uid="uid://crh05juyhbrvy"] | ||
|
||
[ext_resource type="Script" path="res://src/Map/map_config.gd" id="1_nsr08"] | ||
[ext_resource type="Resource" uid="uid://c3pn25g7s1xse" path="res://resources/Tiles/Variations/dungeon_floor_variation.tres" id="2_klk6a"] | ||
[ext_resource type="Script" path="res://src/Map/World/WorldGenerator/world_config.gd" id="2_toqqe"] | ||
[ext_resource type="Resource" uid="uid://bueuip5l015ph" path="res://resources/Tiles/Variations/dungeon_wall_variation.tres" id="3_h53sn"] | ||
|
||
[sub_resource type="Resource" id="Resource_2jf63"] | ||
script = ExtResource("1_nsr08") | ||
map_width = 100 | ||
map_height = 100 | ||
max_rooms = 20 | ||
max_tries = 1000 | ||
max_enemies_per_room = 2 | ||
max_items_per_room = 1 | ||
floor_variation = ExtResource("2_klk6a") | ||
wall_variation = ExtResource("3_h53sn") | ||
map_type = 0 | ||
room_pack = "dungeon" | ||
|
||
[resource] | ||
script = ExtResource("2_toqqe") | ||
map_configs = Array[ExtResource("1_nsr08")]([SubResource("Resource_2jf63"), SubResource("Resource_2jf63"), SubResource("Resource_2jf63")]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -277,6 +277,7 @@ quiet | |
realistic | ||
reassuring | ||
reclusive | ||
relentless | ||
reliable | ||
reluctant | ||
resentful | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class_name StairsAction | ||
extends Action | ||
|
||
func perform() -> Result: | ||
var is_player := _performing_entity.has_component(Component.Type.Player) | ||
assert(_performing_entity.has_component(Component.Type.Player)) | ||
var position := PositionComponent.get_entity_position(_performing_entity) | ||
var stairs_array := _performing_entity.map_data.get_entities_at(position).filter( | ||
func(e: Entity) -> bool: return e.has_component(Component.Type.Stairs) | ||
) | ||
if stairs_array.is_empty(): | ||
if is_player: | ||
Log.send_log( | ||
"There are not stairs at %s's position" % _performing_entity.get_entity_name(), | ||
Log.COLOR_IMPOSSIBLE | ||
) | ||
return Action.Result.NoAction | ||
var stairs: Entity = stairs_array.front() | ||
var stairs_component: StairsComponent = stairs.get_component(Component.Type.Stairs) | ||
WorldManager.get_world().move_player_to_map(_performing_entity, stairs_component.target_map_index) | ||
if is_player: | ||
Log.send_log( | ||
"%s %s %s" % [ | ||
_performing_entity.get_entity_name(), | ||
stairs_component.use_verb, | ||
stairs.get_entity_name() | ||
] | ||
) | ||
return Action.Result.FreeAction | ||
|
||
|
||
func can_use_stairs() -> bool: | ||
return true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.