Re: Audiogame Map with Python

2016-04-01 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Audiogame Map with Python This did it. Thank you magurp244. I also found an error in my north section. I have path to be spoken under the else statement rather than wall. It is working perfectly now. Thanks again. URL: http://forum.audiogames.net/viewtopic.php?pid=255657#p255657

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Audiogame Map with Python Hm, there's seems to be a typo in the "Moving West" code segment, instead of subtracting currentPosition[1] your subtracting currentPosition[0], so:# Moving west if event.key == pyg

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Audiogame Map with Python Hm, there's seems to be a typo in your "Moving West" code segment, instead of subtracting currentPosition[1] your subtracting currentPosition[0], so:# Moving west if event.key == pyg

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Audiogame Map with Python So, that makes sense to me. I changed all of my directions to that format, but it is still not working correctly. The counter currentPosition is just not staying in the bounds of the map. perhaps I made a mistake when editing my code? I am not sure. It looks

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Audiogame Map with Python The problem may be the order in which your doing your checks, for example if you try and check if the current position in maplist + 1 is "w" without first checking if thats in bounds of the map, it will throw a list index out of range exception. T

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Audiogame Map with Python The problem may be the order in which your doing your checks, for example if you try and check if the current position in maplist - 1 is "w" without first checking if thats in bounds of the map, it will throw a list index out of range exception. T

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Audiogame Map with Python The problem may be the order in which your doing your checks, for example if you try and check if the current position in maplist - 1 is "w" without first checking if thats in bounds of the map, it will throw a list index out of range exception. T

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Audiogame Map with Python The problem may be the order in which your doing your checks, for example if you try and check if the current position in maplist - 1 is "w" without first checking if thats in bounds of the map, it will throw a list index out of range exception. T

Re: Audiogame Map with Python

2016-03-31 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Audiogame Map with Python So I have built a map, but I can't get it to work the way I want it to. the currentPosition variable is keeping track of where the player is, and I use conditionals to try and make sure that the currentPosition does not stray ouside the index range for the 2d

Re: Audiogame Map with Python

2016-03-30 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Audiogame Map with Python Thank you so much. this was very helpful. 3d arrays are a little confusing, but I am not going to deal with them right now. URL: http://forum.audiogames.net/viewtopic.php?pid=255538#p255538 ___ Audiogames

Re: Audiogame Map with Python

2016-03-30 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Audiogame Map with Python A number of my own games including my Audio RTS Demo use similar 2D array's for registering tile types, objects, and collision detection. For adding additional objects just add a symbolic number, so if 0 is open ground and 1 are walls, then 2 could be a power

Re: Audiogame Map with Python

2016-03-29 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Audiogame Map with Python Can you give an example of both of these? I understand creating a two dementional array, which would create a 2d map, how would you create a 3d map this way? Also can you explain a little more what you mean by a list? URL: http://forum.audiogames.net

Re: Audiogame Map with Python

2016-03-21 Thread AudioGames . net Forum — Developers room : Victorious via Audiogames-reflector
Re: Audiogame Map with Python One way as you've discovered is explicitly storing the 2d (or 3d) grid. You could have say, arrays of arrays of cell objects, and these cell objects could in turn be filled with whatever you wanted to occupy that square. Another approach which is more suitable

Audiogame Map with Python

2016-03-21 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Audiogame Map with Python Hi, I have been slowly working on building an audio game in python 3.4. I am currently using accessible_output2 and pygame. I have been working on trying to create a map, but I wanted to see what the best way to build the map is. I set the project down a while ago