|
|
scott wrote:
>> The hard part is figuring out how to draw the graphics on screen
>
> Choose a language / IDE / API that gives you easy access to graphics?
Does one exist?
>> Usually you have to mutilate your program to fit the window manager's
>> event loop...
>
> Don't see how, if you have written functions like:
> MouseClicked(int xpixel , int ypixel)
> RedrawScreen()
> etc.
Typically you have to register callbacks with the GUI system, and then
call a "main loop" function which calls your callbacks when it feels
like it. Which is great if you just want something to happen when the
user presses a button, but becomes problematic if you want things to
happen while the user isn't pressing anything. (E.g., if you wanted to
do something compute-bound, now the GUI stops responding until the
compute task finishes.)
> BTW why don't you just do a text based version?
Because that wouldn't be very exciting?
What I'd really like to have a go at is Mahjong... but that would be
absurdly hard.
Post a reply to this message
|
|