[Ohrrpgce] Plan for LineSlice

Ralph Versteegen teeemcee at gmail.com
Sat May 27 01:40:22 PDT 2017


On 27 May 2017 at 02:00, James Paige <Bob at hamsterrepublic.com> wrote:

> Oh! Right! All the slices will need attention for negative sizes. But I
> will start with RectSlice.
>

The one that I didn't mention in the thread was text slices. A wrapping
text slice with 0 or negative width wraps at the right edge of the screen
instead. Zero width should stay like that for backcompat, but now I think
negative width could also be treated by taking the absolute value of the
width, and drawing the text from the left edge of the bounding box. Since
that is how all like other slice types act, and width 0 text slices are
just a strange anomaly.


> The LineSlice project and the A* Pathfinding project are actually totally
> unconnected. The idea of using lines to display path debugging info did
> cross my mind, but I discarded it quickly.
>

Oh, I didn't mean to suggest that this was connected to A*, just as an
example of the use of thick and styled lines.


>
> For debugging, fuzzy rects with numbers with numbers will easier and more
> useful.
>
> For in-game display, it would be vastly easier and better to come up with
> a sprite-based solution. I don't expect to try adding anything like that as
> a built-in feature before whenever plotscripting gains support for arrays.
>

Do you mean you won't yet add a scripting interface to compute a path (as
you had previously considered here (a thread I happened upon recently):
https://www.slimesalad.com/forum/viewtopic.php?p=98521#98521 )


>
>
>
>
>
> On Wed, May 24, 2017 at 11:15 AM, James Paige <Bob at hamsterrepublic.com>
> wrote:
>
>> Here I am going to talk out LineSlice before I actually start
>> implementing it
>>
>> I think I have a pretty realistic chance of having time to do it sometime
>> soon.
>>
>> I'm going to go with a simple slice.
>>
>> It will draw a line from corner to corner
>>
>> I figure I can have a toggle for whether it draws from 0,0 <->
>> width,height or 0, height <-> width,0
>>
>> I plan to also test it will negative width and height, although I think
>> we have an unresolved issue of inside-out-slices sizes being off-by-one,
>> and we have to decided how to resolve that.
>>
>> I would like to be able to do horizontal lines without having to care if
>> height is 1 or 0, and vertical lines without caring if width is 1 or 0.
>>
>> Should there be a toggle for making zero-width / zero height lineslices
>> invisible?
>>
>> I will definitely be implementing convenience functions to set a line's
>> position relative to screen points on other slices.
>>
>> I also really like the idea of being able to adjust line thickness, but I
>> don't know the best way to go about that, especially regarding corners.
>>
>> Maybe we need some kind of function allmodex function to paint a thick
>> line... maybe even a styled line using a 1xwidth sprite?
>>
>> I am not worried about thick lines or styled lines in the first
>> implementation, I just want to think about it enough to avoid any blunders
>> that would make adding those later more difficult.
>>
>
>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20170527/d8628884/attachment.htm>


More information about the Ohrrpgce mailing list