1
Programming / Re: BearLibTerminal: a pseudo-terminal window library for roguelike
« on: February 26, 2017, 01:16:46 AM »
If someone could hand me their roguelike code I would be happy! (Using only bearlib)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
And all I want is a simple roguelike base so I can work around it...
def addchar():
char = '@'
x,y = 0,0
terminal.refresh()
terminal.put(x, y, char)
keymove = terminal.read()
if keymove == terminal.TK_UP:
x -= 1
elif keymove == terminal.TK_DOWN:
x += 1
elif keymove == terminal.TK_LEFT:
y -= 1
elif keymove == terminal.TK_RIGHT:
y += 1
return;