Skip to content

Commit

Permalink
Added prompt to init/deinit ghost piece at game start, lighted the hu…
Browse files Browse the repository at this point in the history
…e of orange used by the L piece
  • Loading branch information
cSquaerd committed Dec 19, 2019
1 parent 32ba712 commit 1a7841d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions cursatetra.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,18 +303,28 @@ def writeHighScores():
while k < 0x30 or k > 0x39:
k = wBoard.getch()
difficulty = k - 0x30
# Confirm difficulty
# Show difficulty
wBoard.addstr(7, 1, "YOU CHOSE DIFF. " + str(difficulty))
wBoard.addstr(8, 1, "AND RANDOMIZER " + chr(r).upper())
wBoard.addstr(9, 1, "ARE YOU SURE? [Y/N]")
# Initialize the ghost piece (or don't)
wBoard.addstr(9, 1, "DO YOU WANT TO USE")
wBoard.addstr(10, 1, "THE GHOST PIECE?")
wBoard.addstr(11, 1, "[Y/N]")
wBoard.refresh()
k = 0
while k not in yesnoCodes:
k = wBoard.getch()
doGhost[0] = k in yesCodes
# Confirm settings
wBoard.addstr(12, 1, "ARE YOU ALL SET? Y/N")
wBoard.refresh()
k = 0
while k not in yesnoCodes:
k = wBoard.getch()
# Proceed to game start
if k in yesCodes:
sure = True
wBoard.addstr(10, 1, "OKAY, GET READY!")
wBoard.addstr(13, 1, "OKAY, GET READY!")
wBoard.refresh()
crs.napms(500)
# Retry difficulty selection
Expand Down Expand Up @@ -585,7 +595,8 @@ def writeHighScores():
crs.init_color(4, 0, 0, 1000)
crs.init_color(5, 1000, 500, 1000)
crs.init_color(6, 500, 500, 1000)
crs.init_color(7, 1000, 750, 0)
crs.init_color(7, 1000, 750, 325)

crs.init_pair(1, -1, 1)
crs.init_pair(2, -1, 2)
crs.init_pair(3, -1, 3)
Expand Down

0 comments on commit 1a7841d

Please sign in to comment.