Re: user-writable content in games

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "w" == wart  <wart@xxxxxxxxxx> writes:

w> The first game, njam, has an in-game editor for users to create new
w> levels.  The directory where user-levels are saved is
w> /usr/share/njam/levels.

If you really want to support something like this, (and I'd argue that
it isn't worth it) here are a couple of ideas:

Save in a known place in the user's home directory and set read
permission.  Of course, to load a level, you need to know what user
made it.

Somehow pass the data to a small program that has the appropriate 
privileges that does nothing but move the data into place.  

w> The second game, hack (part of bsd-games), creates 'bones' files
w> when a character dies.  These bones files are later loaded and
w> removed when other players start a game to create ghosts and
w> treasure piles.

Ugh; it is really not possible to determine the name of the bones file
early in the process?  Is there some reason it can't just be some
random string?

 - J<


[Index of Archives]     [Fedora Music]     [Fedora Extras]     [Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [CentOS]     [Gimp]     [Yosemite News]     [Yosemite Camping]

  Powered by Linux