don't use the bad star import system

This commit is contained in:
randomuser 2022-04-29 11:33:31 -05:00
parent 1130d6d703
commit 72f9fd1539
1 changed files with 9 additions and 9 deletions

18
demo.py
View File

@ -1,12 +1,12 @@
#!/usr/bin/env python3
from map import *
from render import *
import map
import render
def main():
textures = []
textures.append(Texture("char", "#", "hash"))
textures.append(Texture("mchar", "simple", "simple"))
textures.append(map.Texture("char", "#", "hash"))
textures.append(map.Texture("mchar", "simple", "simple"))
for i in textures:
i.load()
@ -15,18 +15,18 @@ def main():
for i in range(10, 20):
for j in range(2, 8):
t = Tile([i, j], "placeholder")
t = map.Tile([i, j], "placeholder")
t.addTexture(textures[0])
tiles.append(t)
t = Tile([23, 2], "placeholder")
t = map.Tile([23, 2], "placeholder")
t.addTexture(textures[1])
tiles.append(t)
render = Renderer()
[render.addTile(i) for i in tiles]
renderer = render.Renderer()
[renderer.addTile(i) for i in tiles]
render.finalRender()
renderer.finalRender()
if __name__ == "__main__":
main()