2022-11-27 20:02:47 +00:00
|
|
|
import curses
|
2022-11-04 11:21:32 +00:00
|
|
|
|
2022-11-30 12:57:18 +00:00
|
|
|
import maze.menu
|
|
|
|
|
|
|
|
|
2022-11-02 20:55:36 +00:00
|
|
|
def about(screen):
|
2022-11-30 15:57:28 +00:00
|
|
|
"""Displays the about screen"""
|
2022-11-02 20:55:36 +00:00
|
|
|
y, x = screen.getmaxyx()
|
|
|
|
screen.clear()
|
|
|
|
screen.refresh()
|
2022-11-04 19:22:19 +00:00
|
|
|
screen.border()
|
2022-11-27 20:02:47 +00:00
|
|
|
screen.addstr(1, x // 2 - 2, "ABOUT US", curses.color_pair(3) | curses.A_BOLD)
|
2022-11-04 11:21:32 +00:00
|
|
|
screen.addstr(
|
|
|
|
3,
|
|
|
|
5,
|
|
|
|
"This game which you have played was developed as a Computer Science Project by",
|
|
|
|
)
|
2022-11-27 20:02:47 +00:00
|
|
|
screen.addstr(5, 5, "B. Adithya\t\t\t - XII - C - Roll no: 3", curses.A_BOLD)
|
|
|
|
screen.addstr(6, 5, "V. Kirthivaasan\t\t - XII - C - Roll no: 17", curses.A_BOLD)
|
|
|
|
screen.addstr(7, 5, "R. Manwanthakrishnan\t - XII - C - Roll no: 22", curses.A_BOLD)
|
2022-11-04 11:21:32 +00:00
|
|
|
screen.addstr(
|
|
|
|
9,
|
|
|
|
5,
|
2022-11-27 20:02:47 +00:00
|
|
|
"There are a series of retro games namely the maze, pong, snake and wordle.",
|
2022-11-04 11:21:32 +00:00
|
|
|
)
|
|
|
|
screen.addstr(
|
2022-11-30 12:57:18 +00:00
|
|
|
10,
|
|
|
|
5,
|
|
|
|
"The maze is generated which always has a path towards the right bottom corner by using ",
|
|
|
|
)
|
|
|
|
screen.addstr(
|
|
|
|
11, 5, "a famous generation algorithm named Depth First Search (DFS)."
|
2022-11-04 11:21:32 +00:00
|
|
|
)
|
|
|
|
screen.addstr(
|
2022-11-27 20:02:47 +00:00
|
|
|
13,
|
2022-11-04 11:21:32 +00:00
|
|
|
5,
|
2022-11-27 20:02:47 +00:00
|
|
|
"This game makes use of the 'curses' module which runs on any operating system in the native terminal.",
|
2022-11-04 11:21:32 +00:00
|
|
|
)
|
|
|
|
screen.addstr(
|
2022-11-27 20:02:47 +00:00
|
|
|
14,
|
2022-11-04 11:21:32 +00:00
|
|
|
5,
|
|
|
|
"It makes use of SQL tables to store login details and maintain a leaderboard.",
|
|
|
|
)
|
|
|
|
screen.addstr(
|
2022-11-27 20:02:47 +00:00
|
|
|
15,
|
2022-11-05 06:37:23 +00:00
|
|
|
5,
|
2022-11-27 20:02:47 +00:00
|
|
|
"It also makes use of binary files to save and load mazes and other credentials necessary.",
|
2022-11-05 06:37:23 +00:00
|
|
|
)
|
2022-11-27 20:02:47 +00:00
|
|
|
screen.addstr(17, 5, "This project has been an absolute blast to make.")
|
2022-11-05 06:37:23 +00:00
|
|
|
screen.addstr(
|
2022-11-27 20:02:47 +00:00
|
|
|
18, 5, "We thank you for playing this! Hope you liked it as much as we did!"
|
2022-11-04 11:21:32 +00:00
|
|
|
)
|
2022-11-27 20:02:47 +00:00
|
|
|
screen.addstr(21, 5, "Signing off,")
|
|
|
|
screen.addstr(22, 5, "The Labyrinth")
|
2022-11-24 07:46:04 +00:00
|
|
|
screen.addstr(y - 2, x - 31, "Press Esc to exit this screen.")
|
2022-11-02 20:55:36 +00:00
|
|
|
screen.refresh()
|
|
|
|
while True:
|
|
|
|
key = screen.getch()
|
2022-11-24 07:46:04 +00:00
|
|
|
if key == 27:
|
2022-11-02 20:55:36 +00:00
|
|
|
break
|
2022-11-24 07:46:04 +00:00
|
|
|
maze.menu.menu(screen)
|
2022-11-03 17:51:55 +00:00
|
|
|
return
|