Search found 71 matches
- Fri Oct 02, 2020 1:36 am
- Forum: Programming Discussion
- Topic: Ogg Vorbis
- Replies: 1
- Views: 932
Ogg Vorbis
Using kos-2.10, every time I try a new ogg file in my game it's a pain, most of the time it just crashes. I tried different encoding settings but I can't figure out the right one, sometimes it just works, most of the times it does not. The code is basically playing the file and looping waiting for i...
- Fri Aug 14, 2020 11:36 am
- Forum: Programming Discussion
- Topic: snd_sfx_load and unload, garbled sfx
- Replies: 3
- Views: 405
Re: snd_sfx_load and unload, garbled sfx
In my personal opinion it is not a good idea to unload sfx continuously. Just load all the files upfront and depending on the value of 'c', play the correct sfx. Yep that's how I fixed it, my concern is that we have less than 2Mb of memory to work with and I'd like to streamline the memory usage. T...
- Fri Aug 14, 2020 12:40 am
- Forum: Programming Discussion
- Topic: snd_sfx_load and unload, garbled sfx
- Replies: 3
- Views: 405
snd_sfx_load and unload, garbled sfx
My code looks like this (simplified): int sfx; int c = 1; main() { while (1) { if (c==1) sfx = snd_sfx_load("/rd/1.wav") else if (c==2) sfx = snd_sfx_load("/rd/2.wav") else if (c==3) sfx = snd_sfx_load("/rd/3.wav") c=playgame(); snd_sfx_unload(sfx); } } int playgame() {...
- Thu Aug 13, 2020 1:33 am
- Forum: Programming Discussion
- Topic: libparallax and special characters
- Replies: 8
- Views: 1017
Re: libparallax and special characters
I can confirm it works using the plx_fcxt_draw_wide and fat_utf8_to_ucs2 from ucs.c! Thank you so much!
- Fri Jul 24, 2020 8:07 pm
- Forum: Programming Discussion
- Topic: libparallax and special characters
- Replies: 8
- Views: 1017
Re: libparallax and special characters
You're right, I will double check my font. But I don't see this function in my local kos source...I just downloaded kos-2.0.0-src.tar.gz again and I don't see it in there, am I getting it from the wrong place maybe? (https://sourceforge.net/projects/cadcdev/)
- Fri Jul 24, 2020 2:33 pm
- Forum: Programming Discussion
- Topic: libparallax and special characters
- Replies: 8
- Views: 1017
Re: libparallax and special characters
I am using Arial, I am pretty positive it has all the glyphs. It seems like your function might work but I am having a hard time dealing with the strings in my code after converting them from utf8 to UCS-2 (or UTF16). It breaks all my str functions. I wonder if I can use SDL instead of libparallax t...
- Thu Jul 23, 2020 7:17 pm
- Forum: Programming Discussion
- Topic: libparallax and special characters
- Replies: 8
- Views: 1017
libparallax and special characters
I'm using libparallax to write text to the screen but I get an empty space in place of ?!éà and characters like that. The source text is encoded using utf-8, I wonder if that may be the problem? Ideas?
- Fri Nov 19, 2004 1:53 pm
- Forum: Programming Discussion
- Topic: Question regarding 0GDTEX.PVR
- Replies: 10
- Views: 832
- Wed Aug 25, 2004 1:50 pm
- Forum: Programming Discussion
- Topic: Would this be legal?
- Replies: 7
- Views: 514
- Wed Aug 25, 2004 8:44 am
- Forum: Programming Discussion
- Topic: Would this be legal?
- Replies: 7
- Views: 514
- Tue Aug 24, 2004 10:50 am
- Forum: Programming Discussion
- Topic: Would this be legal?
- Replies: 7
- Views: 514
Would this be legal?
If we create a lib based on the flash player, to use it on KOS games/apps, would it be legal for comercial KOS games? or do we need a license from Macromedia to use flash on comercial products?
- Tue Aug 17, 2004 3:40 pm
- Forum: Programming Discussion
- Topic: Linux distro just for DC deving?
- Replies: 37
- Views: 2898
Another very nice IDE is Anjuta http://anjuta.sourceforge.net/
But you will need the Gnome libs for it...
But you will need the Gnome libs for it...
- Wed Jun 30, 2004 9:35 pm
- Forum: Programming Discussion
- Topic: Keyboard examples PLEASE!
- Replies: 2
- Views: 193
This is more or less what I'm using on my game (a simplier version):
PD
Code: Select all
uint8 mkb;
int k;
mkb = maple_first_kb();
if (!mkb) printf("No keyboard found\n");
if ((k = kbd_get_key()) != -1) // if a key is pressed on the kb
{
printf("%c\n", k); // print the key
}
PD
- Tue Jun 29, 2004 8:48 am
- Forum: Programming Discussion
- Topic: Linux distro just for DC deving?
- Replies: 37
- Views: 2898
Very funny, I was just thinking on this some days ago. My dev PC is a Linux box, and I was thinking in building a setup like that. I even started to build a knoppix clone... But I forgot it because I thought no one would care... If there's enough interest I could re-start the project, what do you th...
- Mon Jun 28, 2004 12:07 pm
- Forum: Homebrew Software and Indie Games Discussion
- Topic: Dream On Magazine needs a name change: need name suggestions
- Replies: 223
- Views: 19435
- Mon May 24, 2004 12:31 pm
- Forum: Programming Discussion
- Topic: How woould you like to own this?
- Replies: 7
- Views: 566
- Mon May 24, 2004 10:02 am
- Forum: Programming Discussion
- Topic: romdisk
- Replies: 24
- Views: 1625
- Mon May 24, 2004 9:56 am
- Forum: Programming Discussion
- Topic: Structs and pointers
- Replies: 6
- Views: 420
Yes, I'm.
On the code above, the first printf works, the second one don't
Code: Select all
strcpy(vmuq.right,"blah blah");
printf("%s\n", vmuq.right);
salva_questoes_vmu(vmuq);
void salva_questoes_vmu(list_type *tmpvmuq) {
printf("%s\n", tmpvmuq->right);
}
- Mon May 24, 2004 12:17 am
- Forum: Programming Discussion
- Topic: romdisk
- Replies: 24
- Views: 1625
- Sun May 23, 2004 10:57 pm
- Forum: Programming Discussion
- Topic: Structs and pointers
- Replies: 6
- Views: 420