The small-questions-not-worth-dedicated-topics topic
Posted: Thu Mar 12, 2020 3:31 pm
Hi
I am trying to learn how to use SGDK while also learning how to work with plain C. So everything is a struggle. I don't want to clog the forum nor hijack the discord channel too much so I decided to make a topic to dump all my questions, anyone interested in asking their questions here is also welcome!
Here is my first one. I understand we use const to save data to the rom. But if I need to have a writable version of it in runtime, is there a proper way of doing things or do I just create a new variable and copy the values from a to b?
On the same topic. I am trying to code the basic structure of a level loader. SGDK already has some useful tools, like the map stuff, but that's only the visual part. My idea is to define the level as a struct, with all the info needed in it, including arrays of game-related structs like "platform", "block", "enemy x". Now, for sake of simplicity I would do the visual part like this as well; define the tiles in it. BUT I'm afraid whatever I come up with won't make efficient use of memory. I assume sgdk's map function does have some kind of compression system. How are you guys doing this? something like what I'm describing?
I am trying to learn how to use SGDK while also learning how to work with plain C. So everything is a struggle. I don't want to clog the forum nor hijack the discord channel too much so I decided to make a topic to dump all my questions, anyone interested in asking their questions here is also welcome!
Here is my first one. I understand we use const to save data to the rom. But if I need to have a writable version of it in runtime, is there a proper way of doing things or do I just create a new variable and copy the values from a to b?
On the same topic. I am trying to code the basic structure of a level loader. SGDK already has some useful tools, like the map stuff, but that's only the visual part. My idea is to define the level as a struct, with all the info needed in it, including arrays of game-related structs like "platform", "block", "enemy x". Now, for sake of simplicity I would do the visual part like this as well; define the tiles in it. BUT I'm afraid whatever I come up with won't make efficient use of memory. I assume sgdk's map function does have some kind of compression system. How are you guys doing this? something like what I'm describing?