diff --git a/demo.py b/demo.py new file mode 100644 index 0000000..d12aad6 --- /dev/null +++ b/demo.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 + +from map import * +from render import * + +def main(): + textures = [] + textures.append(Texture("char", "#", "hash")) + textures.append(Texture("mchar", "simple", "simple")) + + for i in textures: + i.load() + + tiles = [] + + for i in range(10, 20): + for j in range(2, 8): + t = Tile([i, j], "placeholder") + t.addTexture(textures[0]) + tiles.append(t) + + t = Tile([23, 2], "placeholder") + t.addTexture(textures[1]) + tiles.append(t) + + render = Renderer() + [render.addTile(i) for i in tiles] + + render.finalRender() + +if __name__ == "__main__": + main()