Search found 2760 matches

by Stef
Tue Aug 07, 2018 7:33 am
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

You can use VDP_setEnable(..) method to quickly disabled / enabled display :)
by Stef
Mon Jul 23, 2018 11:49 am
Forum: SGDK
Topic: Setup SGDK under Wine + VSCode project template
Replies: 3
Views: 126

Re: Setup SGDK under Wine + VSCode project template

Cool, thanks :)
by Stef
Mon Jul 23, 2018 8:17 am
Forum: SGDK
Topic: Setup SGDK under Wine + VSCode project template
Replies: 3
Views: 126

Re: Setup SGDK under Wine + VSCode project template

Thanks a lot for your tutorial, more choice offered to user, the best :p
I included it in the SGDK readme file if you don't mind about it :)
by Stef
Thu Jul 19, 2018 7:43 am
Forum: Demos
Topic: Mangangá
Replies: 9
Views: 702

Re: Mangangá

Look really nice and colorful (similar to C64 color style) :)
The BEX version was already quite advanced, why did you changed to SGDK ?
by Stef
Mon Jul 16, 2018 2:49 pm
Forum: Cartridge
Topic: Size limits
Replies: 11
Views: 532

Re: Size limits

Ok so it was indeed 6 bit :p
by Stef
Mon Jul 16, 2018 7:59 am
Forum: Cartridge
Topic: Size limits
Replies: 11
Views: 532

Re: Size limits

As far i remember the Sega mapper allow to remap bank of 512 KB with a register of 6 or 7 bit wide (it was in an official doc) so it means 64 or 128 banks of 512KB (so 32 MB or 64 MB at max).
by Stef
Sun Jul 15, 2018 9:13 pm
Forum: Demos
Topic: Mega Man X
Replies: 10
Views: 1292

Re: Mega Man X

Wow ! didn't expected that :D It looks really good and even better than the original on some aspect (it feels more reactive / more dynamic). Also the graphics are very nice, very good arts conversion. I really hope you get it complete (just need a proper intro / menu screen and probably some other s...
by Stef
Fri Jul 13, 2018 9:49 am
Forum: Tools
Topic: Beehive - a Mega Drive tile and map editor
Replies: 26
Views: 8209

Re: Beehive - a Mega Drive tile and map editor

As you you have 8bpp or 4bpp indexed images (BMP or PNG) then rescomp (and so SGDK) should accept them.
Again, you can look at the "sprite" sample include in SGDK to see how to use these image resource easily :
https://github.com/Stephane-D/SGDK/tree ... ple/sprite
by Stef
Tue Jul 10, 2018 12:25 pm
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

Oh yeah indeed this is the compression used for your images :) For sprite it's recommended to set to NONE (no compression) or FAST (fast compression) if you plan to use dynamic VRAM upload (mean it will unpack and upload tiles on the fly), for static VRAM allocation you can use BEST compression as i...
by Stef
Mon Jul 09, 2018 9:50 am
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

Oh 16 sprites, indeed you were probably quickly reaching the limit then ;) Glad you fixed it =)
by Stef
Sat Jul 07, 2018 1:47 pm
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

Well done ! To delete / remove a sprite you need to use SPR_releaseSprite(..) method :) Here you were just hiding it, it was always allocated internally (still that doesn't really explain the crash).
by Stef
Wed Jul 04, 2018 4:34 pm
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

I meant a beginning with SGDK ;)
SGDK provides already many useful methods and tools, the key is to know how to use them efficiently, it's also why i told you to look over the sprite example as mimicking what you used to do in BEX is far from being optimal when you use SGDK.
by Stef
Wed Jul 04, 2018 2:50 pm
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

That looks already quite nice for a beginning :)
Don't hesitate to use the "sprite" sample provided in SGDK, it really helps understanding all basic methods =)
by Stef
Wed Jul 04, 2018 12:27 pm
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

Outch ! Oh well you definitely need to understand how variable and scope work in C ;) Here you are declaring some local variables and you try to use them globally, so the first thing to do is to put them global at least. Here's a modified / fixed version of the code, still that is not the best appro...
by Stef
Tue Jul 03, 2018 12:21 pm
Forum: SGDK
Topic: dealing with matrices (arrays)
Replies: 28
Views: 917

Re: dealing with matrices (arrays)

You have "rescomp" which is an embedded resource compiler for SGDK. You can look into the included "sprite" sample to see how resource are declared (.res file). Basically you can use a big PNG image file (in 4bpp ideally but 8bpp is also supported) then rescomp will convert it to "Image" structure w...