Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Issue with seeded map generation

Reply
Thread Tools

Issue with seeded map generation

 
 
Graham Fielding
Guest
Posts: n/a
 
      12-08-2012




Hey, all! I've managed to get my project to a semi-playable state (everything functions, if not precisely the way I'd like it to). One small issue is that when the player movs from one level to the next, the items and monsters in the previous level all 'reset' and return to the positions theyhad when the level was seeded. I've puzzled over (and attempted) quite a few workarounds, and had no success. I don't want to pickle the entire level (that would be overkill for what I need), but I want to update the item/monster locations so the player can drop an item and come back to it later. Should I add something to the 'drop_item' function, or call soemthingin make_map?
 
Reply With Quote
 
 
 
 
Hans Mulder
Guest
Posts: n/a
 
      12-08-2012
On 8/12/12 22:32:22, Graham Fielding wrote:
> Hey, all!
>
> I've managed to get my project to a semi-playable state (everything
> functions, if not precisely the way I'd like it to). One small issue is
> that when the player moves from one level to the next, the items and
> monsters in the previous level all 'reset' and return to the positions
> they had when the level was seeded.
>
> I've puzzled over (and attempted) quite a few workarounds, and had no
> success. I don't want to pickle the entire level (that would be
> overkill for what I need), but I want to update the item/monster
> locations so the player can drop an item and come back to it later.
>
> Should I add something to the 'drop_item' function, or call something
> in make_map?


I think pickling the entire level would be the sensible thing to do.

The alternative would be to keep track of everything that changed
on the level and redo all those changes of the player returns to
the level. That's a lot of work. Moreover, everytime you add a
feature to the game, you'd have to extend your keep_track() and
redo() functions, so they can redo the new thing, too.


Hope this helps,

-- HansM


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Issue with seeded map generation Ian Kelly Python 0 12-09-2012 01:03 AM
Re: Issue with seeded map generation Mitya Sirenef Python 0 12-08-2012 10:27 PM
Suggestions for a well seeded torrent to test bittorrent performance? Mark C NZ Computing 1 04-13-2006 12:06 AM
Suggestions for a well seeded torrent to test bittorrent performance? Mark C NZ Computing 0 04-12-2006 11:52 PM
Random numbers seeded with System.currentTimeMillis Roedy Green Java 8 03-09-2006 10:59 PM



Advertisments