You are not logged in.

#1 2010-01-15 00:57:41

Anikom15
Banned
From: United States
Registered: 2009-04-30
Posts: 836
Website

Tiling.

http://www.learningpython.com/2006/03/1 … g-a-level/

I'm making a game. Using a tiling method similar to above.

if I have a list:

list = [[0, 1, 8],
        [0, 4, 5],
etc

What do I do if I need more than 10 different tiles? It seems I can use numbers like 10, 11, 12, but it would mess up the rows and make it harder to decipher the list. So what should I do?


Personally, I'd rather be back in Hobbiton.

Offline

#2 2010-01-15 01:32:37

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: Tiling.

Maybe I'm missing something...

list = [[ 1,  2,  3],
        ...,
        [11, 12, 13]]

M*cr*s*ft: Who needs quality when you have marketing?

Offline

#3 2010-01-16 01:28:40

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Tiling.

You can use letters too, if you like. For easiest reading and editing, use a wider variety of characters and read them in from a text file to get rid of all the comma garbage in between. It's a good thing to know how to do, and it shouldn't take long to write.

Offline

Board footer

Powered by FluxBB