Browse Source

Pretty much everything plus a bug fix

master
Jared Dunbar 5 years ago
parent
commit
aa26e3f7ae
  1. 12
      main.py

12
main.py

@ -149,7 +149,7 @@ def game():
# Player stats
points = 1
points = 1.0
weapon = 1
message = ""
px = 0
@ -221,20 +221,28 @@ def game():
# a97, w119, s115, d100, up259, down258, left260, right261
elif action == 97:
if px > 0: px-=1
points-=0.1
elif action == 260:
if px > 0: px-=1
points-=0.1
elif action == 100:
if px < 60: px+=1
points-=0.1
elif action == 261:
if px < 60: px+=1
points-=0.1
elif action == 119:
if py > 0: py-=1
points-=0.1
elif action == 259:
if py > 0: py-=1
points-=0.1
elif action == 115:
if py < 4: py+=1
points-=0.1
elif action == 258:
if py < 4: py+=1
points-=0.1
else:
os.system("espeak \"" + str(action) + "\" 2>/dev/null")
pass
@ -274,8 +282,6 @@ def game():
term.refresh()
curses.napms(5000)
points-=0.1
st1 = threading.Thread(target=soundOne)
st2 = threading.Thread(target=soundTwo)

Loading…
Cancel
Save