Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite_Demo #16

Open
BambooEngineer opened this issue Apr 2, 2021 · 5 comments
Open

Sprite_Demo #16

BambooEngineer opened this issue Apr 2, 2021 · 5 comments
Assignees

Comments

@BambooEngineer
Copy link

I know the floating head sprites are arrays of char hex but i cant find an image converter that seems to work. When i replace the original sprite hex with something i get from any converters i do find, nothing appears. Not even a few pixels ! Im not a great coder but i wanna display my own sprites atleast. I have been successful with changing everything but the sprite itself like speed, position, bg color

@kilograham
Copy link
Contributor

@Wren6991 what did u use to create the data?

@Wren6991
Copy link

Wren6991 commented Apr 6, 2021

With the packtiles script, also in this repo:

https://github.com/raspberrypi/pico-playground/blob/master/scanvideo/flash_stream/img/packtiles

E.g. packtiles -sdmf bgar5515 raspberry.png raspberry_bgar5515.h will convert a single image into the format expected by that sprite demo:

  • Single image (-s)
  • Dithered for better colour reproduction at low bit depth (-d)
  • With opacity metadata included for faster alpha blitting (-m)
  • To format BGAR5515, 3x5 colour bits and one alpha bit in BGAR order from MSB to LSB (-f bgar5515)

@Wren6991
Copy link

Wren6991 commented Apr 6, 2021

You'll need python3 and PIL installed to run the script

@BambooEngineer
Copy link
Author

Nice i will try it out, 8 bit kick made a bgar5515 converter that outputs on the java console but only a few lines of my image showed up. Like the image was a face and all i got on screen where the eyes.

@BambooEngineer
Copy link
Author

the packtiles script launched and gave me data but it just did not work out on screen. I finally found a script that works created by boochow. Now i can use the example code from demo1 to do sprite movement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants