GeorgRottensteiner / C64Studio

C64Studio is a .NET based IDE specializing in game development for the C64 in assembler and BASIC
Other
260 stars 38 forks source link

Commander X16 - Sprite colors seem to be wrong. #112

Closed jakebullet70 closed 5 months ago

jakebullet70 commented 5 months ago

In creating sprites for a Commander X16 program the colors do not seem to be correct.

In the C64Studio image

I save the file as Binary. It ends up looking like this. Sprite is loading fine but the colors seem to be off. Am I missing something? image

SUSPECT2.zip

GeorgRottensteiner commented 5 months ago

From a glance it looks like you're using Palette Offset 1 (3rd parameter of SPRITE, which equals to 16), but in C64Studio you're set to 0. Palette colors 16 to 31 are a gray scale.

jakebullet70 commented 5 months ago

YEP!!!!!!!!!!!!!!!

X16 docs are not clear.

palette offset is the palette offset for the sprite. Range is 0-15 inclusive. This value is multiplied by 16 to determine the starting palette index.

0 x 16 = 0 I will file a bug in the DOCS for the X16 program.

Closing. Thanks!!!

jakebullet70 commented 5 months ago

Now that I think about it.... 0 is a number!!!!

GeorgRottensteiner commented 5 months ago

Glad to be of service. This issue lead me to finding lots of bugs in my CommanderX16 sample project. And I found that the BASIC dialect file is missing a few new commands.

jakebullet70 commented 5 months ago

I have switched over to using BASLOAD style for programming. (a lot X16 of programmers have) If you do not know what it is its sort of a transpiler that converts line number less ASCII BASIC v2 code into Line numbered PET style. Its built into the ROM now. The thought is to use the X16 built in EDIT command and write this style of code and run BASLOAD on it. That creates the line numbered CBM style of code you can run.

It looks like this. image

For me the Biggest thing is long var names and line labels!

My project is here if you want more of a look see. https://github.com/jakebullet70/X16INSPECTOR

FYI: Your sprte editor was the only working sprite editor I could find for the X16

Thanks again!

GeorgRottensteiner commented 5 months ago

Nice :)

C64Studio also has a line number less mode, but I haven't checked in for Commander X16 for quite a while.