nesdev.com
http://forums.nesdev.com/

Update to my tutorial in C
http://forums.nesdev.com/viewtopic.php?f=2&t=17752
Page 2 of 2

Author:  dougeff [ Thu Sep 20, 2018 4:20 pm ]
Post subject:  Re: Update to my tutorial in C

Does anyone think I should increase the # of metatiles? Currently my code can use up to 51 (5 bytes each). But with a slight modification, that could be 102.

In my mind (before) you could swap metatile definitions for each type of level. I thought 51 should be enough.

Just wondering what other people think.

Author:  Banshaku [ Thu Sep 20, 2018 5:28 pm ]
Post subject:  Re: Update to my tutorial in C

Since it's a tutorial for learning about the nes, yes, it should be fine. Once the user know enough to do things on their own, they can update the code and add those extra metatile they are missing. It should be part of the learning process anyway, to extend to make it work the way you want :)

Author:  na_th_an [ Fri Sep 21, 2018 12:58 am ]
Post subject:  Re: Update to my tutorial in C

Most of my games use 16 or 32 as per "section", I think it's more than enough.

Author:  gauauu [ Fri Sep 21, 2018 7:08 am ]
Post subject:  Re: Update to my tutorial in C

Banshaku wrote:
Since it's a tutorial for learning about the nes, yes, it should be fine. Once the user know enough to do things on their own, they can update the code and add those extra metatile they are missing. It should be part of the learning process anyway, to extend to make it work the way you want :)


Agreed. It's a tutorial, not an all-purpose framework. Arbitrary limitations are fine. People following your tutorials are eventually going to have to learn to do things themselves.

Author:  dougeff [ Fri Sep 21, 2018 10:38 am ]
Post subject:  Re: Update to my tutorial in C

True. Just trying to anticipate "how do I expand your code to do X" questions.

Author:  dougeff [ Tue Dec 11, 2018 6:55 am ]
Post subject:  Re: Update to my tutorial in C

I wrote a function for changing song speed manually (a while back).

It occurred to me today, as I was working on music code, that you could have greater flexibility over song speed, AND not interfere with Fxx effects if you instead adjusted the FT_TEMPO_STEP_L and FT_TEMPO_STEP_H.

Bigger for faster.

I might edit my code... later (I'm busy).

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/