[Game]Pokittris

That’s sad😢
Maybe someone could help?
(I used the bin file provided above)

Is there an up-to-date set of source code to hand?

1 Like

https://os.mbed.com/users/spinal/code/Pokittris/

[edit] I think I modified pokittolib to update a region of the screen to speed up rendering, not 100% sure though.

2 Likes

I will debug if needed. Some things only come up with a HW debugger

2 Likes

Thanks! Would be really nice to add that to the sd collection. I love the colors!

1 Like

@spinal

The problem is the PALETTE_SIZE. When you made the Mode13 you (I think it was you) changed that to 256. Its hanging in the following loop:

void Display::load565Palette(const uint16_t* p) {
    for (int i=0;i<PALETTE_SIZE;i++) palette[i] = p[i];
    paletteptr = palette;
}

Yep that was it. I will now fix the music.

@spinal : your song name was “pokittris.raw”

Guess what’s wrong with that? In FAT32 it becomes pokitt~1.raw because of the long filename (9 letters)

That was the problem.

Did I not say already that odd numbers are evil and that 8 is the divine number? :wink:

1 Like

Wow, it’s been a while! Do you need anything from me for the above fixes? I assume a simple screen mode check when loading a palette would sort that part, and changing the filename for the music perhaps?

1 Like

No it will be soon fixed. Massive new gamedisk (50+ games) coming up soon.

2 Likes

Actually, the music sampling rate is not correct. Could you send me the original somehow?

1 Like

Actually. The music you have is super tiring. Can I suggest something else?

1 Like

Sure, use whatever you like :sunglasses:

A spiced version sent for your approval for the upcoming gamedisk v7

1 Like