Categories
Uncategorized

C64 and X16 Sprites

Currently in the holidays I made a hack for exporting tiles as C64 sprites. At the same time I also worked on a “C64 CONSOLE” where you can test out the sprites by copy-pasting them there as a “Basic” program. I am currently wondering if there is interest in such a feature, and should I add it to the main branch of the program, or not?
Please comment if you have an opinion on this.

Edit: Currently I am also expanding the export so it also is able to export data for a Commander X16 basic program.

So what is next? maybe Amiga sprites / bobs? Maybe assembly exports, or c data structure exports.

Test it out here

6 replies on “C64 and X16 Sprites”

Hi there, I’m just playing with X16 sprites and trying to reproduce what you did in “HyperPyxel: Exporting Sprites to use in BASIC on the Commander X16” on Youtube. The first thing I notice is that the circle drawing tool requires us to first click the center and then drag the radius => the diameter can then only be an odd number. Drawing that circle (and ellipses as well) using the diagonal of the outer Square (or rectangle) offers more possibilities (radius can be any integer) as MS Paint does.

Besides, for some reason, your circle is not left-right symmetrical. Not a problem with PacMan but strange anyway.

Great work nonetheless !

Hi and thanks for pointing this out.

The circle tool and the ellipse tool have a different GUI approach. That was done on purpose. the middle point made most sense to me for a circular figure,
and for ellipse, it made more sense to me to allow x and y freedom. But yeah, they have a different feel. Maybe I’ll add some preference where you can choose that the circle tool behaves as the ellipse tool.

Regarding only being able to do odd numbers on the circle, that sounds like a bug. It also sounds like a bug that the circle is not symmetrical. I’ll address these bugs in the next coding session for Hyper Pyxel. (I’m a bit distracted right now, working on a PETSCII drawing program, so it may not be immediately).

Thanks again for the feedback, cool to hear someone else may be using the software then just myself.
Also if you find other things, feel free to point them out to me, I am sorely lacking a tester on the project 🙂

Have fun!
Cheers
/CK&J

Odd numbers diameter is not a bug : if I click and release, dia. is 1, if I click, drag 1 px and release, dia. is 3. It is 5 if 2 px dragging… because diameter is twice the radius.

The next thing I noticed is that (BASIC) line numbering starts at x0000. What if I want to add a REM statement to describe the data content ? Maybe you could add a “Include REM statement” checkbox somewhere or let the user type “Start value” and “Step” by hand…
5000 REM Insert your data description here
5010 DATA …

Hi,

I just had some time to look at your issues and bugs, and added a “comment” option to the export.
Checkboxes are not yet implemented, just as “free text”, so this was the simplest way to get the feature
without needing to wait for the gui enhancements, which will take a bit more time to do.

Let me know if it works fine for you.
If you don’t see the new feature, it is probably your browser cache, which you need to clean.
Thanks for all the feedback
/CK&J

Fix preview

Although I cleared the cache (F12 followed by right click on Refresh), the entry “Export Tile as Code” isn’t in the “File” menu anymore.

Leave a Reply