ScratchData LogoScratchData
Back to sly_i's profile

Less Simple PTE

SLsly_i•Created July 4, 2023
Less Simple PTE
3
2
33 views
View on Scratch

Instructions

Basic backpack-able Pen Text Engine (PTE) 1. Copy the red A sprite to your backpack 2. Use the addText method in your sprite 3. Call broadcast(þ_A_Draw) to render NB: Don't change the name of the backpacked A2Z sprite It reasonably fast at ~4k characters a second (CPS) or 300 text blocks a second. Tap the cat for a sloppy speedtest. No line wrapping support planned.

Description

I love @awesome-llama Pixel Perfect PTE and path parser. This remix added crude kerning, lowercase paths (took a few of hours), rotation, case detection support using custom sprite name, and Y offset for letter with descender's below baseline. llama path parser uses single digit XY points in a 6x10 grid. Remix uses a global list named þ_A to send input to Text draw from broadcast. The global list always appears as the last list item to separate from regular user lists. The example erases and redraws all text 30 times a sec. 200 blocks (excluding speedtest) VS llama's original 90 blocks. I cheated on the m and w characters as they have a width of 7 but the crude kerning accommodates for that. His newer method is twice as fast but I prefer his original elegant string data structure for readability. Case detection method is based on @gor-dee & @Rodrigo_Rodrigues https://scratch.mit.edu/projects/71670894

Project Details

Project ID871815817
CreatedJuly 4, 2023
Last ModifiedAugust 12, 2023
SharedJuly 5, 2023
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root