Search found 7 matches

by sendbit
Thu Apr 26, 2012 8:47 am
Forum: SGDK
Topic: Drawing multiple sprites (SGDK)
Replies: 0
Views: 8900

Drawing multiple sprites (SGDK)

Could someone please give me an full, but simple example of using multiple sprites from different locations on the tilesheet at the same time? Not tiles, but using VDP_setSprite or VDP_setSpriteP? Thanks.

Maybe using the same image as sonic.bmp from the tutorial?
by sendbit
Thu Apr 26, 2012 8:43 am
Forum: SGDK
Topic: Having trouble compiling the GenRes examples.
Replies: 7
Views: 5638

I can't remember which problem that is right now, but I have come across it in the last couple of days. Try re-compiling with the makelib.gen thing. AND make sure that no files in the res folder have characters such as " ", "(", or ")" etc... (any fancy file names). Let me know if that helps.
by sendbit
Thu Apr 26, 2012 8:38 am
Forum: SGDK
Topic: Simple code to just loop a WAV file using SGDK
Replies: 4
Views: 3998

Thanks for that additional info. Should I be using the driver that can only support one sample at a time if not using the other available sample slots?
by sendbit
Thu Apr 26, 2012 8:33 am
Forum: SGDK
Topic: Having difficulty getting 320x224 image on screen SGDK
Replies: 3
Views: 3999

Thanks, that was helpful!

P.S. :
I found that paint can export 16color pretty well by changing the first 16 colors of its palette after creating an optimized 16 indexed color with dith in GIMP.
by sendbit
Wed Apr 25, 2012 8:22 pm
Forum: SGDK
Topic: Having difficulty getting 320x224 image on screen SGDK
Replies: 3
Views: 3999

Having difficulty getting 320x224 image on screen SGDK

I cannot figure out how to make headers which could replace P1010667_pal.h and P1010667_tile.h from the WIKI page at: http://code.google.com/p/sgdk/wiki/sgdk_tile_functions . I can compile correctly when I use those given files, but I want to use my own images instead. The best I have been able to g...
by sendbit
Wed Apr 25, 2012 5:49 pm
Forum: SGDK
Topic: Simple code to just loop a WAV file using SGDK
Replies: 4
Views: 3998

Thanks anyway.
I got it:

Code: Select all

if (SND_isPlaying_4PCM(SOUND_PCM_CH4_MSK)){SND_stopPlay_4PCM(SOUND_PCM_CH4);}
SND_startPlay_4PCM(__SOME_WAV_FILE__, sizeof(__SOME_WAV_FILE__), SOUND_PCM_CH4, 1);

SGDK is awesome
by sendbit
Wed Apr 25, 2012 5:00 pm
Forum: SGDK
Topic: Simple code to just loop a WAV file using SGDK
Replies: 4
Views: 3998

Simple code to just loop a WAV file using SGDK

Hello, I was wondering if anyone had a very simple main.c example of looping a wave file using SGDK. I am not sure exactly what is the minimum required based on the sample sound file included with the toolchain. Thanks!