Re: [Alephmodular-devel] Detangling/de-Mac-ifying
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2005-05-17 22:02:01
|
On May 17, 2005, at 4:56 PM, Timothy Collett wrote: > So, having gotten myself into this with a (perhaps ill-advised) > bold declaration of support and checked AM out from CVS again... > > Where should I start? > > Which files should I be looking in for this, and can you give me a > quick rundown of what (if anything) you *have* managed to decipher, > so I don't have to reinvent the wheel? > > Thanks. > > Timothy Collett I was going through and removing direct calls to Mac-specific things. At the heart of the program is an event loop. Figure out what the user is doing to the computer, then have the computer update the state of the game-world. And finally display the result on the screen with sound. In the case of AM, this is, I believe, in shell.cpp. However, as a further snarl. I don't think going with a straight up abstraction, like I did with some other areas of the code, necessarily gets what we need out of it. The process of updating the state of the world and rendering it happens in this event loop. So I want to add a thread in here. But I don't know enough about threads to get my brain too well around them either. -Jeremy Parsons http://alephmodular.sourceforge.net/ |