working on graphics, gdd inspect menu
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<p>The vision for Blessfrey <br></p>
|
||||
<br>
|
||||
<ul>
|
||||
% for i in [["art direction","blessfrey-art"],["characters","blessfrey-cast"],["credits","blessfrey-credits"],["game mechanics","blessfrey-mechanics"],["jobs","blessfrey-jobs"],["keywords","blessfrey-keywords"],["milestones","blessfrey-milestones"],["setting","blessfrey-setting"],["skills","blessfrey-skills"],["sound","blessfrey-sound"],["story","blessfrey-story"],["style guide","style-guide"],["terms","blessfrey-terms"],["tweaks","tweaks"],["vibe","blessfrey-vibe"]]
|
||||
% for i in [["art direction","blessfrey-art"],["characters","blessfrey-cast"],["credits","blessfrey-credits"],["game mechanics","blessfrey-mechanics"],["IDs","blessfrey-ids"],["jobs","blessfrey-jobs"],["keywords","blessfrey-keywords"],["milestones","blessfrey-milestones"],["setting","blessfrey-setting"],["skills","blessfrey-skills"],["sound","blessfrey-sound"],["story","blessfrey-story"],["style guide","style-guide"],["terms","blessfrey-terms"],["tweaks","tweaks"],["vibe","blessfrey-vibe"]]
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<a href=/{{i[1]}}>{{i[0]}}</a></li>
|
||||
% end
|
||||
</ul>
|
||||
|
||||
@@ -5,10 +5,19 @@
|
||||
<p>Right-click on an tangible entity or inventory item to open a popup inspect menu with all relevant inspect options. Selecting one will execute a method. Examples are 'follow Chloe' (pathfind after Chloe wherever she moves until action is cancelled), 'pick up clover' (item pickup), and 'examine button' (write a descriptive line about her in Helia's thought bubble) <br></p>
|
||||
<br>
|
||||
<h2>structure </h2>
|
||||
<p>Every tangible entity has an exported array of inspect_options. {'english_tr_key': 'method', 'tr_pick up':'pickup','tr_examine':'examine_surprise'}. Every tangible has at least 'examine.' <br></p>
|
||||
<p>Every tangible entity has an exported dictionary of inspect_options: {index: ['tr_key', 'method']}. For example, {0:['tr_pick up','pickup'],1:['tr_extinguish','extinguish']}. Every tangible appends 'examine' at ready. <br></p>
|
||||
<br>
|
||||
<p>The Clickable has a _ready input event signal looking for "right-click." <br></p>
|
||||
<br>
|
||||
<p>The inspect menu ("res://UI/InspectMenu/InspectMenu.tscn") is instanced at declaration and added as a child at ready in the UI singleton. <br></p>
|
||||
<br>
|
||||
<h2>logic </h2>
|
||||
<p>When tangible entity is right-clicked, the inspect menu adds a UI option for each inspect option. <br></p>
|
||||
<br>When a selection is made,
|
||||
<p>When tangible entity is right-clicked (@ $Body/Sprite/Clickable), the UI enters InspectMenu with its subject set. The "id_pressed" signal is reset for each subject. InspectMenu connects "about_to_show" the first time it's needed and keeps it forever. Before popup(), it resets, adds a label at an offset with the subject's display name, then adds a UI option for each inspect option. <br></p>
|
||||
<br>
|
||||
<p>When a selection is made, the "id_pressed" signal calls "id_pressed" on the subject, which calls the method at its inspect_options[pressed_id][1]. So 'examine' calls 'examine,' which is in tangible.gd. Most related methods are on tangible.gd, though they may be at a more specific script. <br></p>
|
||||
<br>
|
||||
<h2>challenges/known issues </h2>
|
||||
<p>It's not obvious how to get popupmenus to appear at specific coordinates. I get it to appear at the subject's current location by setting <code>rect_global_position = get_global_mouse_position()</code> the line immediately after <code>popup()</code>. <br></p>
|
||||
<br>
|
||||
<p>The inspect menu retains the largest ever size going forward. I reset the size to 20,20 when clearing previous options. <br></p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -83,5 +83,12 @@ license: Public Domain<br>
|
||||
font: pixel sparrow<br>
|
||||
chimchooree<br>
|
||||
license: Public Domain<br>
|
||||
<br>
|
||||
<h2>website </h3>
|
||||
business card texture (dev page) <br>
|
||||
photo: Free Texture Image <br>
|
||||
Pawel Czerwinski <br>
|
||||
https://unsplash.com/photos/dgJT71cXlC4 <br>
|
||||
license : https://unsplash.com/license <br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<br>
|
||||
<p>Focus and finish the game! <br></p>
|
||||
<br>
|
||||
<p>Legend: <span class=mundane>nothing at all</span>, <span class=common>designed</span>, <span class=unusual>basic implementation</span>, <span class=rare>intentionally designed, tested, documented</span>, <span class=unique>more or less finalized</span>
|
||||
<p>Legend: <span class=mundane>nothing at all</span>, <span class=common>designed</span>, <span class=unusual>basic implementation</span>, <span class=rare>intentionally designed, documented, but with known issues</span>, <span class=unique>ironed out and polished</span>
|
||||
<h2><span class=unique>0.0 - first</span> </h2>
|
||||
<ul>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>feature: export, embed</span> </li>
|
||||
@@ -34,7 +34,7 @@
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>containers</span> </li>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>travel between rooms</span> </li>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>drop items</span> </li>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>inspect</span> </li>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=rare>inspect</span> </li>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>spawnpoints</span> </li>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>XP, levels</span> </li>
|
||||
<li class="latest">{{random.choice(['.','•','☆','★'])}}	<span class=unusual>skillbar - drag & drop, enforces deckbuilding rules</span> </li>
|
||||
Reference in New Issue
Block a user