Quellcode durchsuchen

CellMap can now print out an array of its values for use elsewhere, rather than just a visual representation of the map

master
Noëlle Anthony vor 7 Jahren
Ursprung
Commit
712840bfec
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6
    0
      CellMap.py

+ 6
- 0
CellMap.py Datei anzeigen

@@ -234,6 +234,12 @@ class CellMap:
img.save('maps/{}.png'.format(fn))
print("Saved maps/{}.png".format(fn))

def printArray(self):
print("[",end="\n")
for line in self.genmap:
print("\t{},".format(line))
print("]")


def filename():
hexes = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]

Laden…
Abbrechen
Speichern