Search found 9 matches

by diegzumillo
Mon Apr 27, 2020 8:16 pm
Forum: SGDK
Topic: Workflow to import extra data into the project
Replies: 2
Views: 262

Re: Workflow to import extra data into the project

Thanks for clarifying!
by diegzumillo
Mon Apr 27, 2020 1:42 am
Forum: SGDK
Topic: Workflow to import extra data into the project
Replies: 2
Views: 262

Workflow to import extra data into the project

Hi all A while ago I made a python script that takes as input Tiled json files and outputs a sequence of C lines of code I can paste in a header of my project, for example: const ROMEntity ALLENTITIES [2] ={ {3, 0, 0, 0, 0, TRUE, 2, 1, 4, 1}, {5, 2, 1, 0, 0, TRUE, 2, 1, 15, 1} }; const Room ALLROOMS...
by diegzumillo
Sat Mar 28, 2020 8:40 pm
Forum: SGDK
Topic: RESCOMP and individual nametable entries?
Replies: 15
Views: 3625

Re: RESCOMP and individual nametable entries?

Do you have more details how to set priority bit with aseprite? Just choose the colors from the palette! they are ordered. You want to repeat the first 16 colors at 128th position. I wrote an Aseprite script that makes my life easier a little. I work in two layers, one is background the other is fo...
by diegzumillo
Wed Mar 25, 2020 3:22 pm
Forum: SGDK
Topic: RESCOMP and individual nametable entries?
Replies: 15
Views: 3625

Re: RESCOMP and individual nametable entries?

In retro dev "not an easy way of doing it" is the norm. SGDK is the one spoiling us with convenience :lol: Anyway, my first instinct was to immediately try to index the colors in aseprite (pixel editor). But rescomp did not appreciate that "pixel at [56,0] reference a different priority." EDIT: oops...
by diegzumillo
Wed Mar 25, 2020 5:03 am
Forum: SGDK
Topic: RESCOMP and individual nametable entries?
Replies: 15
Views: 3625

Re: RESCOMP and individual nametable entries?

No unfortunately you can't encode priority inside the image so rescomp can decode it. The way to do is to have 2 images, one for low priority and one for high priority then you combine both images map. You generate a new map out of it by using : if (*mapHigh) *map = *mapHigh | TILE_ATTR_PRIORITY_MA...
by diegzumillo
Wed Mar 25, 2020 12:01 am
Forum: SGDK
Topic: The small-questions-not-worth-dedicated-topics topic
Replies: 5
Views: 1132

Re: The small-questions-not-worth-dedicated-topics topic

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? Don't do that, you're making it worst. Use "const" for data t...
by diegzumillo
Tue Mar 24, 2020 10:40 pm
Forum: SGDK
Topic: The small-questions-not-worth-dedicated-topics topic
Replies: 5
Views: 1132

Re: The small-questions-not-worth-dedicated-topics topic

Oh shoot! I didn't get a notification and just assumed no one replied. Thank you for taking the time to explain these things to me. I'm happy to say I have learned quite a bit since I made that original post! I do have more questions though :D Although it's not "too small to have a dedicated post" I...
by diegzumillo
Thu Mar 12, 2020 3:31 pm
Forum: SGDK
Topic: The small-questions-not-worth-dedicated-topics topic
Replies: 5
Views: 1132

The small-questions-not-worth-dedicated-topics topic

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 we...
by diegzumillo
Tue Feb 18, 2020 8:08 pm
Forum: SGDK
Topic: Gendev getting started help
Replies: 1
Views: 2387

Gendev getting started help

Hi all Every now and then I like to play around with SGDK, as it's the perfect light weight kind of project that my laptop can handle. I would, however, like to move completely to linux. My laptop has dual boot but I would prefer to stay on linux. However, setting up gendev is proving to be harder t...