diff --git a/dungeonbattle/display/test.py b/dungeonbattle/display/test.py deleted file mode 100644 index a01ae15..0000000 --- a/dungeonbattle/display/test.py +++ /dev/null @@ -1,17 +0,0 @@ -import curses -import time - -def main(screen) : - pad = curses.newpad(curses.LINES, curses.COLS) - with open("ascii_art.txt", "r") as file: - title = file.read().split("\n") - - width = len(title[0]) - for i in range(len(title)) : - pad.addstr(4+i,curses.COLS//2-width//2-1,title[i]) - pad.refresh(0,0,0,0,curses.LINES,curses.COLS) - time.sleep(1) - - - -curses.wrapper(main) diff --git a/dungeonbattle/test_display.py b/dungeonbattle/test_display.py deleted file mode 100644 index 1225fc6..0000000 --- a/dungeonbattle/test_display.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python -from dungeonbattle.interfaces import Map -from dungeonbattle.display.mapdisplay import MapDisplay -from dungeonbattle.display.statsdisplay import StatsDisplay -from dungeonbattle.settings import Settings -from dungeonbattle.display.texturepack import TexturePack -from dungeonbattle.entities.player import Player -import curses -import time - -def test(screen) : - s = Settings() - s.load_settings() - s.write_settings() - p = Player() - p.y = 1 - p.x = 6 - p.health = 15 - p.intelligence = 4 - p.charisma = 2 - p.dexterity = 3 - p.constitution = 4 - m = Map.load("example_map2.txt") - MD = MapDisplay(m, TexturePack.ASCII_PACK, curses.LINES * 4//5, curses.COLS) - MD.display(p.y,p.x) - SD = StatsDisplay(p,curses.LINES * 1//5, curses.COLS, 0, curses.LINES * 4//5) - SD.refresh() - time.sleep(6)