diff --git a/src/blessfrey-gdd/achievements b/src/blessfrey-gdd/achievements new file mode 100644 index 0000000..de96b47 --- /dev/null +++ b/src/blessfrey-gdd/achievements @@ -0,0 +1,11 @@ +

description

+


+
+

challenges/known issues

+

 

+
+

works for...

+ diff --git a/src/blessfrey-gdd/controls b/src/blessfrey-gdd/controls new file mode 100644 index 0000000..9491183 --- /dev/null +++ b/src/blessfrey-gdd/controls @@ -0,0 +1,16 @@ +

description

+

pushing buttons and stuff

+
+

list of default controls

+

+
+

challenges/known issues

+

 

+
+

works for...

+ diff --git a/src/blessfrey-gdd/inspect b/src/blessfrey-gdd/inspect index fde9b43..312f9d7 100644 --- a/src/blessfrey-gdd/inspect +++ b/src/blessfrey-gdd/inspect @@ -20,8 +20,6 @@

Tangibles and inventory items both have inspect menus, but their code has to be separate. They are too different from each other.


-

I intend for the player to be able to pick up an item through the inspect menu without changing his current target. For now, InspectMenu.gd/set_subject(subject) sets the player target. MoveToDestination.gd/handle_moved_result tracks the user's current target using character/find_distance_to_target(). Instead, it would need to receive the relevant subject from the inspect menu or skill or attack target from the character and pass it through character/find_distance_to(target).

-

It doesn't close the inspect menu if pickup is chosen while item out of range, even after item is picked up.


works for...

diff --git a/src/blessfrey-gdd/inventory b/src/blessfrey-gdd/inventory new file mode 100644 index 0000000..a98439d --- /dev/null +++ b/src/blessfrey-gdd/inventory @@ -0,0 +1,27 @@ +

description

+

The programmatic element facilitates picking up, collecting, and dropping items. The control element displays and offers relevant options.

+
+

pickup: floor item -> inventory item

+

Item pickup is initiated by MoveToDestination.gd/_on_item_arrived(floor_item) -> floor_item.pick_up().pick_up(). The base item's pick_up initiates character/pickup(base_item) and publishes "item_picked_up" and itself to the MessageBus.

+
+

character.gd/pickup(base_item) calls (programmatic)Inventory.gd/pickup and _pickup(base_item) which updates the phone inv app if it's currently open.

+
+

Inventory.gd/pickup(base_item) published "item_obtained" and the base item to the MessageBus then calls reverse_pickpocket(base_item).

+
+

Inventory.gd/reverse_pickpocket(base_item) appends the base item to the inventory and connects the depleted and dropped signals.

+
+

opening the inventory app

+

If you press the inventory key (I), UI/open_window(UI.open_inv_scene(),"inventory", Vector2(100,150)) is called. It opens a window at the Vector2, assigns "inventory" as its key, and fills it with the given scene. The UI will call open_app and provide the inventory app scene.

+
+

If you bring up the smartphone and tap the inventory app from the home screen, the inventory button is connected to 'open_app" on "pressed", sending the associated app.

+
+

Smartphone.gd/open_app(scene) sets is_open to true, the current_app to the scene, +
+

challenges/known issues

+

 

+
+

works for...

+ diff --git a/src/blessfrey-gdd/item b/src/blessfrey-gdd/item index 237889c..935afdc 100644 --- a/src/blessfrey-gdd/item +++ b/src/blessfrey-gdd/item @@ -1,3 +1,4 @@ +

description

Items are objects that may be picked up, purchased, used, equipped, dropped, or sold. They include currency, quest items, equipment, consumables, readables, upgrades, keys, and trinkets.


four representations

@@ -11,7 +12,7 @@

Merchandise appears in store windows.


-

item pickup

+

move to pick up item

Items can only be picked up by the player. They can be picked up via item targeting or through selecting 'pick up' on the inspect menu.


Item pickup is triggered when a floor item is targeted, that is, a 'target' (left-click) triggers a $Item/Body/Sprite/Sprite.gd/_on_input_event. If 'no_move_to_target' (shift) is held while targeting, the item will be targeted without initiating pickup. Otherwise, floor_item.gd/target_event(viewport,event,shape_idx) is called to set the target and handle the input before prompting the player to consider pickup.

@@ -22,10 +23,11 @@

If the item is within the player's intimate distance, the character will be prompted to pick up the item.
-

Otherwise, pathfinding begins towards the floor item. Upon arrival, it calls item.pick_up().pick_up().

+

Otherwise, pathfinding begins towards the floor item. Upon arrival, it calls floor_item.pick_up().pick_up(). The floor item's pick_up removes itself from the room and returns the base item, then the inventory system takes care of the rest.

+

challenges/known issues

-

I intend for the player to be able to pick up an item through the inspect menu without changing his current target. For now, InspectMenu.gd/set_subject(subject) sets the player target. MoveToDestination.gd/handle_moved_result tracks the user's current target using character/find_distance_to_target(). Instead, it would need to receive the relevant subject from the inspect menu or skill or attack target from the character and pass it through character/find_distance_to(target).

+



works for...