[…]
Hi, i need to code a Domino game, using plain C and some API, i
chose SDL thinking it could make my life easier, but i’m not quite
sure now, i need to set some variables for configuration (menu for
the user)
Use sliders or “spinners” (two buttons and display) for values and
things where you’d normally use a combobox or similar… Text input
(player names and the like) is probably the hardest part, but even
that is rather trivial, as long as you stay away from selections,
clipboard, internationalization etc. (Though some of that is actually
handled by most of the SDL add-on libs you would use to render text;
SFont, DFont, SDL_ttf etc.)
and probably drag and drop to place each domino,
I actually think the easiest way to do this is with your own code,
over SDL. Just learning the API of any GUI toolkit that can help with
this to any significant extent is going to take longer than hacking a
working implementation over SDL.
this is apart from the game logic and general
drawing that i’m sure i can do with SDL, can anybody tell me if it’s
worth at all to use SDL for this particular project?, i’m still
checking documentation you just pointed me to, but would like to
hear your opinion.
Frankly, I don’t think it gets much easier. Basic buttons, dragging
with snap-to-grid or snap-to-object and things like that, is trivial
compared to any serious game logic.
Besides, if you’re doing this in order to learn something, I think
it’s a good idea to try to do it using plain SDL first. It’s a good
way to learn the very basics of interactive graphics programming.
(Actually, I’d say it would be a useful experience to implement a
complete GUI toolkit in pure assembly language, to the metal, no
drivers, no APIs, no nothing - but that’s probably just because that
was about the only way to create a nice GUI and still have some CPU
time left back when I started programming. These days, there
are “real” programmers who have never written a single line of
assembly language code…! 
//David Olofson - Programmer, Composer, Open Source Advocate
.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
'-- http://www.reologica.se - Rheology instrumentation --'On Friday 12 January 2007 12:01, Ciro Iriarte wrote: