Re: [DM-dev] I've got it: the best of both models...
Brought to you by:
acdalton,
henningsen
From: Stephan B. <ste...@ei...> - 2001-07-02 06:38:04
|
On Sunday 01 July 2001 17:01, Henningsen wrote: > >addRoom( x,y,w,h, doorSide, doorX=3D-1, doorY=3D-1, doorWidth=3D2 > >) > >// doorSide =3D N/S/E/W > >// (-1 =3D=3D try to center it based off of the doorSide) > > Will this work when we e.g. want to make a room with 2 doors of > different sizes? Or must that be done with multiple calls to addArea? Ah, multiple doors I hadn't thought about.=20 I've got a funny story to tell you (well, I have to think it's funny or=20 else I'll think it's sad, and then I'll cry). I was playing with the=20 new shared memory support in Linux, where you can use memory like=20 dynamically-resizable ramdisk. I wanted to see how quickly I could=20 build dungeonmaker from RAM, instead of on disk: stephan@jareth:~/cvs/dungeonmaker > cp -R * /dev/shm stephan@jareth:~/cvs/dungeonmaker > cd /dev/shm stephan@jareth:/dev/shm > make =2E.. (took about 2 seconds longer than normal, actually) (okay, not clean up and move the compiled stuff back...) stephan@jareth:/dev/shm > rm -R * ~/cvs/dungeonmaker I know "cp" and "rm" aren't anywhere near each other on the keyboard,=20 so I'm not quite sure how my fingers managed it, but they did. I nuked=20 all my changed to DM. Talk about being pissed off at myself. I didn't=20 lose too much work, but enough to piss me off. > Will there be a (text) file that saves dungeon layout, and that can > be hand edited by users? Once one is familiar with the program, hand > editing is probably faster than interactive (plus intercative will > not be part of Dungeonmaker itself, so... hand editing is very > desirable). That's my plan. I wouldn't be happy if it couldn't load from a file.=20 The difference from my earlier approach is that it will render as it=20 reads, instead of building a list and rendering it later. ----- stephan Generic Universal Computer Guy st...@ei... - http://www.einsurance.de Office: +49 (89) 552 92 862 Handy: +49 (179) 211 97 67 "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |