Hola mis amigos, he hecho un simple juego de plataformas usando SDL en PC, y me gustaría poder portarlo para la Dreamcast. Sin embargo mucha gente dice que SDL en Dreamcast no es bueno ... Pero después de investigar vi un juego de Zelda para Dreamcast funcionando muy bien que utiliza SDL. Así es SDL tan malo como todo el mundo dice?
¿Cómo puedo iniciar mi puerto SDL juego de PC para Dreamcast? Ya tengo KOS en mi pc.
(Sorry for my bad Spanish haha).
Editado por
NeoSnk en 20-09-2016 03:04,
7 year haceSDl is not as bad as it seems! Works fairly nice, and you only have to know some basic things to get it working :)
Start looking at some source codes of SDL games, from this websiter or another. You will see how to init SDL, which lib does it use (I think latest KOS has SDL 1.2.15 already in kos-ports), etc etc.
Man, I got the SDL working thank you so much!!! Now I'm starting to port my game from PC to DC, however only one thing is not working now. Everytime I use the delete or the new operator, i get a linker error such as "undefined reference to `operator delete(void*)".
I'm not sure, but I think my MakeFile is pointing to the C Compiler instead of pointing to the C++ one, am I right?
So I tried to add this:
main.elf: $(OBJS)
$(KOS_CC) $(KOS_CFLAGS) $(KOS_CPPFLAGS) $(KOS_LDFLAGS) -o $@ $(KOS_START) $^ -lSDL -lm $(KOS_LIBS)
But I get the same error, should I change it in another place?
Nope, just add the C++ library to link!!: -lstdc++
Man I'm really impressed how DC handles SDL. It's the same thing of creating a game for PC :O:O:O
Thank you so much, do you have some recommendation? or something I shouldn't do? For now I don't have any problems! Everything works perfectly and smooth.
Editado por
NeoSnk en 23-09-2016 06:45,
7 year haceNow I have just one problem... When I try to map my Joystick I have this error:
undefined reference to 'SDL_DC_MapKey', I realized the games from this website use -lSDL_129 instead of -lSDL . However the 129 version is the one made by Chui right? and I think it is a old version... is there a similar function for the most recent version or should I use the Chui's one?
SDL_DC_Mapkey is only available in Chui's SDL version, so you won't find it in the KOS one. -lSDL_129 is from the Chui's version, right.
You can try to read using joystick buttons instead of PC keyboard keys, so you won't need this function.
Hey Indiket, my last question for you man hahahahaha!!!
I followed all the examples and I'm using the resolution 320x240. It's working really great and fast!! (I've tried 640x480 but it hasn't the same performance) . However when the Dreamcast get it and transform in Full-screen the images get a little bit fuzzy. Something that doesn't happen with the other games.
It's like the DC is set for 640x480 and it gets my game in 320x240 and stretch it to fill the screen.
So, my question is... Is there some way to set the DC to work in 320x240 instead of its native resolution? or is there some trick to get the images better like the other games?
Thank you bro!
I think I found the problem. I was testing using VGA Mode, when I test using normal mode it doesn't get fuzzy hehe! Tks man.
puede ver todos los hilos de discusión en este foro.
puede iniciar un nuevo hilo de discusión en este foro.
no puede responder en este hilo de discusión.
no puede empezar en una encuesta en este foro.
puede cargar archivos adjuntos en este foro.
no puede descargar archivos adjuntos en este foro.