Drop some tests
This commit is contained in:
parent
5c95bf11e7
commit
9b925672ca
@ -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)
|
@ -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)
|
Loading…
Reference in New Issue
Block a user