gopxl / pixel

A hand-crafted 2D game library in Go.
MIT License
242 stars 10 forks source link

Pixel - Enhancement Wishlist #94

Open dusk125 opened 2 months ago

dusk125 commented 2 months ago

All of the following is up for discussion.

Reworks

func V[U, V constraints.Float|constraints.Integer](x U, y V) Vec {
    return Vec{float64(x), float64(y)}
}

Features

duysqubix commented 2 months ago

Are these a collection of thoughts an ideas for enhancements or are they all related?

dusk125 commented 2 months ago

Collection of thoughts, originally meant for v3, but some/most of them will likely be able to be done with the need for a major release. Could think of this as an Epic if you want :D

bhperry commented 2 months ago

Make Anchor more intuitive

The current rationale is that pixel.BottomLeft will anchor text/whatever such that it appears to the bottom-left of the anchor. Or in other words... it is anchored to the top right. image

The original design from the PR that introduced anchoring was the opposite, but they switched it before the final merge. This seems far more intuitive to me though. The anchor should describe the point at which the text is anchored, not the direction in which the text will flow. image

Original PR https://github.com/faiface/pixel/pull/252