Im trying to make a simple text based rpg game, like the old dos games.
but then i need an array to move around. but i cant def the array...
the game is programed in python, like the title saids. please i hope somebody can help me .
Another thanks from 1r0l3!
Python game problem.
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
hm, Maboroshi can surely help you more, but maybe this here already helps a little: http://en.wikibooks.org/wiki/Python_Programming/Arrays
Just define your map as a two-dimensional array (list of lists). You can then access it using:1r0l3 wrote:We want to make an array with cords x,y. so you can make a walk system. so we dont got any code.
Code: Select all
map[x][y]