level = [
"----------------------------------",
"- s s -",
"- c s c -- -",
"- s w c -",
"- -- -",
"- c w s -",
"-- w c -",
"- s s -",
"- ---- --- -",
"- w s ----- -",
"-- ----- -",
"- c c -",
"- c --- -",
"- s -",
"- c -",
"- --- -",
"- ----- -",
"- ------- ---- -",
"- -",
"- - -",
"- c -- -",
"- -",
"- -",
"----------------------------------"]
# добавляем объекты с карты в список
x = 0
y = 0
for row in level:
for col in row:
if col == "-":
pf = Platform(x, y)
entities.add(pf)
platforms.add(pf)
if col == "s":
entities.add(Stone(x, y))
if col == "w":
water = Water(x, y)
entities.add(water)
platforms.add(water)
if col == "c":
coin = Coin(x, y)
entities.add(coin)
coins.add(coin)
x += PLATFORM_WIDTH
y += PLATFORM_HEIGHT
x = 0