Search found 18 matches
- Fri Nov 23, 2018 8:20 pm
- Forum: SGDK
- Topic: General SGDK questions
- Replies: 14
- Views: 8568
Re: General SGDK questions
Stef, thanks for the ballpark numbers. Miquel, my (very) tentative plan is a top-down RPG, so functionally there will only be maybe four or so tile types (non-solid, solid, water, and maybe one-way blocks? Not sure yet), but aesthetically several tiles per category (very rough order of magnitude, ma...
- Mon Nov 19, 2018 11:03 pm
- Forum: SGDK
- Topic: General SGDK questions
- Replies: 14
- Views: 8568
Re: General SGDK questions
I have a rough map-loading strategy that works well enough (for my tests at least), I was just wondering roughly what kind of efficiency I might expect for rescomp's "IMAGE" structure. I understand that it will be map-dependant, but rough order of magnitude, are we talking 5-10%? 25-50%? 10-90%? My ...
- Sun Nov 18, 2018 10:38 pm
- Forum: SGDK
- Topic: General SGDK questions
- Replies: 14
- Views: 8568
Re: General SGDK questions
So I'm experimenting with using very large scrolling maps. I've got a rough system in place to load the map on the fly as the player moves, but the problem I encountered is the limit of how large of a map can be unpacked to RAM (some trial & error testing put the approximate maximum at two maps (FG ...
- Tue Oct 30, 2018 12:39 am
- Forum: SGDK
- Topic: General SGDK questions
- Replies: 14
- Views: 8568
Re: General SGDK questions
No, I understand the palette structure. My mistake was assuming the "PAL1" used for the "pal" parameter of VDP_setPalette() was a full palette structure; I didn't realize PAL1 was just a defined constant (u16) 1. My experiment was going to be passing the "pal" parameter a value from a 2D array, wher...
- Mon Oct 29, 2018 3:08 pm
- Forum: SGDK
- Topic: General SGDK questions
- Replies: 14
- Views: 8568
Re: General SGDK questions
Hah I see, this is a silly mistake on my part. I just spotted the constant definitions for "PAL1" (and the others) in vdp.h, so they're not actual palette structures that need a pointer. All I would need for this experiment is a u16 array of numbers 0-3. Thank you!
- Sun Oct 28, 2018 1:04 am
- Forum: SGDK
- Topic: General SGDK questions
- Replies: 14
- Views: 8568
Re: General SGDK questions
Hi, thanks for the reply! So I don't fully understand how SGDK handles the palettes (PAL0 thru PAL3), they seem to come pre-declared? Take the moon tutorial for example: #include "moon.h" int main( ) { // get the palette data of moon VDP_setPalette(PAL1, moon.palette->data); // load bitmap data of m...
- Sat Oct 27, 2018 4:52 am
- Forum: SGDK
- Topic: General SGDK questions
- Replies: 14
- Views: 8568
General SGDK questions
So I don't end up flooding this forum with individual threads per question, I figured it'd be better to add them all to one general thread as I learn. I've been experimenting with different methods of loading the map on the fly as the player moves (for maps bigger than the VDP limit), and I had the ...
- Mon Oct 22, 2018 3:58 pm
- Forum: SGDK
- Topic: Question about VDP_showFPS
- Replies: 6
- Views: 5278
Re: Question about VDP_showFPS
Ah, I see. Was a little confused why mixing types wasn't throwing a warning in the compiler. That makes sense, thanks
- Sun Oct 21, 2018 6:38 pm
- Forum: SGDK
- Topic: Question about VDP_showFPS
- Replies: 6
- Views: 5278
Re: Question about VDP_showFPS
Should I not be using them? The only reason I ask is I've seen bool types used in other functions (TILE_ATTR_FULL, for instance).
- Sat Oct 20, 2018 9:43 pm
- Forum: SGDK
- Topic: Question about VDP_showFPS
- Replies: 6
- Views: 5278
Re: Question about VDP_showFPS
Ah, thank you! The coordinates aren't as important (I was just curious), but for testing it's easier for my project to disable the background scrolling (plane B) to keep the FPS on screen.
Also on a side note, the "float_display" parameter should kind of be a bool instead of an int, shouldn't it?
Also on a side note, the "float_display" parameter should kind of be a bool instead of an int, shouldn't it?
- Thu Oct 18, 2018 11:07 pm
- Forum: SGDK
- Topic: Question about VDP_showFPS
- Replies: 6
- Views: 5278
Question about VDP_showFPS
Hello, I have a quick question about the VDP_showFPS command. Is there any way to make VDP_showFPS draw to plane B instead of A? Or to set the coordinates?
Thank you for your help.
Thank you for your help.
- Mon Sep 24, 2018 11:43 pm
- Forum: SGDK
- Topic: Tutorial sample file problem
- Replies: 8
- Views: 6176
Re: Tutorial sample file problem
Previous post deleted, I found the unpackMap command and have it working now. Thank you!
- Sun Sep 23, 2018 4:15 pm
- Forum: SGDK
- Topic: Tutorial sample file problem
- Replies: 8
- Views: 6176
Re: Tutorial sample file problem
I understand IMAGE contains a tilemap, so what I'm trying to do is modify kcowolf's scrolling demo to use images instead of the hard-coded map/tiles. Looking at this example project, kcowolf passes an array (containing the tilemap) directly to a MAP structure, and then the rest of the code handles d...
- Wed Sep 19, 2018 6:17 pm
- Forum: SGDK
- Topic: Tutorial sample file problem
- Replies: 8
- Views: 6176
Re: Tutorial sample file problem
Hello, I have another question about rescomp. The list of structures says that maps are not yet supported: https://github.com/Stephane-D/SGDK/blob/master/bin/rescomp.txt MAP --- NOT YET SUPPORTED ! Take an map file as input and transform it in SGDK Map structure. Map is used to define background pla...
- Fri Sep 14, 2018 6:23 pm
- Forum: SGDK
- Topic: Help with basic sprite control
- Replies: 2
- Views: 3143
Re: Help with basic sprite control
Ah, rookie mistake, trying to do math with dissimilar variable types. Obvious in hindsight! Just need to get used to the new int/float types, thank you!