Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34503

Issue with seeded map generation

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <frednotbob@hotmail.ca>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.106
X-Spam-Level *
X-Spam-Evidence '*H*': 0.79; '*S*': 0.00; 'function,': 0.07; 'next,': 0.07; '(everything': 0.16; 'subject:generation': 0.16; 'subject:Issue': 0.17; 'to:name:python-list@python.org': 0.20; "i'd": 0.22; 'player': 0.23; "i've": 0.23; 'pickle': 0.29; '(and': 0.32; 'to:addr:python-list': 0.33; 'project': 0.34; 'locations': 0.35; 'something': 0.35; 'add': 0.36; 'but': 0.36; 'success.': 0.36; 'subject:with': 0.36; 'should': 0.36; 'level': 0.37; 'drop': 0.37; 'item': 0.37; 'previous': 0.37; 'quite': 0.37; 'to:addr:python.org': 0.39; 'received:65.55.90': 0.62; 'received:snt0.hotmail.com': 0.62; 'back': 0.62; '(that': 0.62; 'positions': 0.68; 'hey,': 0.72; 'all!': 0.84
X-Originating-IP [207.6.153.42]
X-EIP [IYxGLJuK8e3MWmgP8oqDmPpGiTMztAiR]
X-Originating-Email [frednotbob@hotmail.ca]
Content-Type multipart/alternative; boundary="_48f2cfa8-14eb-42c2-bfc6-d01d78bdad9e_"
From Graham Fielding <frednotbob@hotmail.ca>
To "python-list@python.org" <python-list@python.org>
Subject Issue with seeded map generation
Date Sat, 8 Dec 2012 13:32:22 -0800
Importance Normal
MIME-Version 1.0
X-OriginalArrivalTime 08 Dec 2012 21:32:22.0330 (UTC) FILETIME=[821691A0:01CDD58B]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.633.1355002410.29569.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355002410 news.xs4all.nl 6939 [2001:888:2000:d::a6]:59499
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34503

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw



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 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 soemthing in make_map? 		 	   		  

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Issue with seeded map generation Graham Fielding <frednotbob@hotmail.ca> - 2012-12-08 13:32 -0800
  Re: Issue with seeded map generation Hans Mulder <hansmu@xs4all.nl> - 2012-12-08 23:53 +0100

csiph-web