Tile Demo

9

nathanielbabiak 2022-07-12 04:54 (Edited)

This is a demo for use with a tutorial I haven't published yet. It requires a tool available here.

[A] and [B] adjust the window size

[PAUSE] adjusts the cell size (the refresh speed is extra slow for the tutorial)

The tile map is from 1986's Legend of Zelda.

The tile map has a resolution of 4096x1408 pixels when using the most "zoomed in" view, but requires only 5828 bytes for the tile map. It's stored in ROM(10).

tile demo.nx | Open in app
2022-07-12 04:54

G-9 2022-07-12 09:24

wow


SP4CEBAR 2022-07-12 13:20

Nice, diagonal movement is working smoothly too!


McPepic 2022-07-13 14:35

This is really cool! The map on the first Zelda game was really massive. I’m just wondering how you would store meta data for the tiles, like entrances, items, etc.


nathanielbabiak 2022-07-13 15:35 (Edited)

Each screen in Zelda was limited to having one cave entrance, one border palette, and one center palette. So that data was stored once per-screen, rather than per-tile.

The cave entrance information was stored as a coordinate-pair.

But, it wasn't merely data to indicate a "special" tile. This coordinate-pair was a memory pointer to some code that would run each frame. So it could show special items, moving rock tiles, statues becoming alive as enemies, etc.


nathanielbabiak 2022-07-13 15:56 (Edited)

What sucks is, I don't want to take this demo too far because Nintendo is litigious. So the tutorial will include what I wrote above, and some ideas for implementation (since this console doesn't have function pointers), but ultimately it'll be left as an "exercise to the reader".

I'm worried that if I take the demo much further, it won't be bona-fide educational, and Nintendo's lawyers would make Timo take it down, ya know?


Timo 2022-07-15 12:46

I wouldn’t worry too much about Nintendo. Yes, they shut down all the bigger fan projects, but I don’t think they care or will even notice little tech demos using their graphics.


Meticulac 2024-11-30 20:44 (Edited)

I do tend to suspect that Nintendo tends to be a little forgiving with educational demonstrations, and I wasn't sure if that was a legal thing or due to it offering the prestige of being associated with educational material without having to make and sell official edutainment products.

Anyway, I guess there's no reason why this couldn't be remixed with a different map and tileset. I can check if there's already anything on Open Game Art that fits the color pallet requirements, but making one could be a nice exercise.

Edit: Though also, I guess Timo does already did exactly what I was thinking of by making The Legend of Lowria a few years before even this demo was posted, so I guess you could built on that.


Log in to reply.