Freedom Fighter scrolling technique article finally here!

Página 2/2
1 |

Por smx

Resident (52)

Imagen del smx

02-05-2022, 09:17

Hi, I wanted to understand something. You say you need to triple the tile set for the 3 screen sections.
But it seems to me that there is the possibility of having a single 256-character tileset for the whole screen, or am I wrong?

Por thegeps

Paragon (1031)

Imagen del thegeps

02-05-2022, 10:01

It is possible, using an hybrid mode. But works only on pure tms9918 family (toshiba clone doesn't support it). And even if doing so, you will be able to use only first 8 sprites, because all the other ones will be mirrored in the other block (this "feature" could be used to show more than 32 sprites in some demo, but it's a mess for coding games...)
On tms9918 family (so.not on clones) you can set a single color table (so you can avoid to update it trice) without affecting sprites. But as I said it works only on Texas Instruments VDPs

Por santiontanon

Paragon (1639)

Imagen del santiontanon

02-05-2022, 16:46

Very interesting read thegeps!! I don't know how common this technique is, but at least I find this technique quite original! The more common approach is to have all the tiles precalculated already uploaded to the VDP, but then often you are limited to 4-pixel or 2-pixel scroll, since you can only have 256 characters at a time. But your technique is quite nice to work around this problem! Thanks for sharing!!

Por thegeps

Paragon (1031)

Imagen del thegeps

05-05-2022, 00:10

Thank you Santi Smile
Indeed, with the help of a good gfx artist (and developing in megarom format) it is possible to switch between several tilesets (instead of 2 as I did on Freedom Fighter) and have a really nice and varied gfx. Soon I'll share on github the source too.
I've ended to add comments just before starting to write the article, and now it is a mix of old and new comments. Doing so I noticed a lot of things that I would/could/should do on different way. I suppose it is how you see your first code attempting after a while...
But still I can feel the fun, the effort and the love I'be put in this game <3

Página 2/2
1 |