don't use the bad star import system
This commit is contained in:
parent
1130d6d703
commit
72f9fd1539
18
demo.py
18
demo.py
|
@ -1,12 +1,12 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from map import *
|
import map
|
||||||
from render import *
|
import render
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
textures = []
|
textures = []
|
||||||
textures.append(Texture("char", "#", "hash"))
|
textures.append(map.Texture("char", "#", "hash"))
|
||||||
textures.append(Texture("mchar", "simple", "simple"))
|
textures.append(map.Texture("mchar", "simple", "simple"))
|
||||||
|
|
||||||
for i in textures:
|
for i in textures:
|
||||||
i.load()
|
i.load()
|
||||||
|
@ -15,18 +15,18 @@ def main():
|
||||||
|
|
||||||
for i in range(10, 20):
|
for i in range(10, 20):
|
||||||
for j in range(2, 8):
|
for j in range(2, 8):
|
||||||
t = Tile([i, j], "placeholder")
|
t = map.Tile([i, j], "placeholder")
|
||||||
t.addTexture(textures[0])
|
t.addTexture(textures[0])
|
||||||
tiles.append(t)
|
tiles.append(t)
|
||||||
|
|
||||||
t = Tile([23, 2], "placeholder")
|
t = map.Tile([23, 2], "placeholder")
|
||||||
t.addTexture(textures[1])
|
t.addTexture(textures[1])
|
||||||
tiles.append(t)
|
tiles.append(t)
|
||||||
|
|
||||||
render = Renderer()
|
renderer = render.Renderer()
|
||||||
[render.addTile(i) for i in tiles]
|
[renderer.addTile(i) for i in tiles]
|
||||||
|
|
||||||
render.finalRender()
|
renderer.finalRender()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue