TinyCircuits Forum

TinyCircuits Products => Thumby => Topic started by: acedent on September 28, 2022, 01:11:39 PM

Title: Background art resources
Post by: acedent on September 28, 2022, 01:11:39 PM
Hi!

I'm just adding Thumby support to a collection of 'retro' 8x8px fill patterns.
e.g. https://github.com/ace-dent/8x8.me#11-symbols

The idea is to make it easy to copy& paste code to get the artwork.
I've crafted the `# BITMAP...` comment to support importing into the web based IDE / bitmap editor.

I would appreciate any feedback.
Thanks :-)
Title: Re: Background art resources
Post by: Jason on September 28, 2022, 06:11:50 PM
This is really cool! Once you're in a good spot we should add a link to this in the documentation, or something like that.

You should link this in the Discord: https://discord.gg/nkwR3WBBXD
Title: Re: Background art resources
Post by: acedent on September 28, 2022, 06:32:40 PM
Thanks Jason.
I'm new to Python and Thumby... does the generated code look reasonable?
I'd like to refine it to 100%, before converting hundreds of images!  ;D
Title: Re: Background art resources
Post by: Jason on September 29, 2022, 10:41:48 AM
Thanks Jason.
I'm new to Python and Thumby... does the generated code look reasonable?
I'd like to refine it to 100%, before converting hundreds of images!  ;D

Yup, looks good enough.

I also tested it on Thumby and the emulator and it works. Importing the comment string into the bitmap builder is also functional.
Title: Re: Background art resources
Post by: acedent on September 29, 2022, 11:46:38 AM
@Jason - I appreciate the testing and review.

Currently assigning the bitmap to a Sprite class is commented out as default.  I figured this wasted RAM (/ program memory?) if the user chooses another blitting method or if the sprite is never used...?
Is that a fair assumption?
Might the API be extended in the future, with other blitting classes? (e.g. simple non-masked bitmap, or a screen pattern fill, etc.)
Title: Re: Background art resources
Post by: Jason on September 29, 2022, 12:54:43 PM
@Jason - I appreciate the testing and review.

Currently assigning the bitmap to a Sprite class is commented out as default.  I figured this wasted RAM (/ program memory?) if the user chooses another blitting method or if the sprite is never used...?
Is that a fair assumption?
Might the API be extended in the future, with other blitting classes? (e.g. simple non-masked bitmap, or a screen pattern fill, etc.)

Commenting the sprite by default seems like a good idea. As you said, it would use ram.

The Thumby API is always open to being extended. I think a pattern fill function would be great!

Right now, the Thumby API lives here: https://github.com/TinyCircuits/TinyCircuits-Thumby-Code-Editor/tree/master/ThumbyGames
Title: Re: Background art resources
Post by: acedent on October 01, 2022, 05:08:16 PM
I've changed the formatting style to better match my tastes...
e.g. https://github.com/ace-dent/8x8.me/blob/main/01-Dots/Dots.thumby.py#L18-L29

Hopefully moving the big comment block inside the byte array won't offend people!?
Title: Re: Background art resources
Post by: acedent on May 29, 2023, 07:54:10 AM
Hi,

I finished up my asset pack of 'retro' 8x8px repeating tile patterns:
http://8x8.me

Public Domain - free to use.

The Thumby code snippets encode the image as a bytearray (and sprite), and original png images are provided.

Appreciate any feedback; hope it's useful :-)

(http://)
Title: Re: Background art resources
Post by: acedent on October 31, 2023, 08:57:37 AM
💀 ℌ𝔞𝔭𝔭𝔶 ℌ𝔞𝔩𝔩𝔬𝔴𝔢𝔢𝔫! 💀

Title: Re: Background art resources
Post by: acedent on December 06, 2023, 12:31:29 PM
~ 𝒮𝑒𝒶𝓈𝑜𝓃𝓈 𝒢𝓇𝑒𝑒𝓉𝒾𝓃𝑔𝓈 ~  ❄️👾❄️ 

invaders (https://github.com/ace-dent/8x8.me/blob/main/14-Symbols/README.md)) x
Title: Re: Background art resources
Post by: nojeg58409 on January 17, 2024, 03:27:30 AM
Hello, I'm new and want to stay here to learn more. I'm new to Python and I find it really complicated