You can support the development on the Github Sponsors page.


Tech > TEXTRIWORM


using textri with a flexible object
made by Popolon
uploaded by Popolon
added:
updated:
download cartridge
- CLICK TO PLAY -

11


Using textri for a several part and flexible sprite, part of the body are made randomly at each start.
* use left/right arrow keys to move the worm left/right and around the circle
* use up/down to move the worm up/down and grow/reduce circle
* A button Display/hide construction vectors of tiles, center of rotation of the circle of the rotation
* B button regenerate a random body length and motif

Update 2020.12.26:
* Add more precision on external side of curves by dividing by 3 tri instead of 2 in this case. This make shape more rounded
* Show more construction lines/points after press A
* Use sin=math.sin cos=math.cos to simplify/compact code

Comments


TylerDurden

Now, that's cool and disgusting at the same time

Popolon

Thank you for this double compliment :).

jaded_puma

I found out when using textri() that if you leave a 1px buffer when making the sprite, adjacent pixels don't show when you do rotations.

Popolon

That what I noticed and done on other TIC-80 programs, as on Koinobori, etc. Thankyou to say spread the information.


Post comment