david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
15 stars 6 forks source link

Text sprite vertical alignment problem #35

Open david-pfx opened 6 months ago

david-pfx commented 6 months ago

(Mathgod) when I set sprite size to 32, I need to translate the text sprite down by 2 grids manually so that it is aligned middle vertically, I wonder is it the default setting

david-pfx commented 4 months ago

2 'grids'? Can you provide some sample code?

angilbert commented 4 months ago

This is a good example of the vertical alignment problem: https://david-pfx.github.io/PuzzleScriptNext/src/editor.html?hack=4b74cf076c6531b45168a55fb336f4ab. If that blue 'b' was (by default) central in the grid cell then it would fully address this particular issue...

Screenshot 2024-07-17 at 15 37 51