Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
0276d7d
first commit
Anubhav675 Nov 27, 2025
2ed39bf
change the password
Sorathor Nov 29, 2025
398da4d
add frontend
Sorathor Nov 29, 2025
707971b
core game logic and endpoint
Sorathor Nov 29, 2025
d4de2a1
add compiled bytecode
Sorathor Nov 29, 2025
21f345e
add .gitattributes for CSS and JS file detection
Sorathor Nov 29, 2025
72a2d65
update .gitattributes to enhance language detection for CSS and JS files
Sorathor Nov 29, 2025
a41e01c
restore .gitattributes for CSS and JS file detection
Sorathor Nov 29, 2025
e7afd5b
Merge pull request #1 from Sorathor/explore
Sorathor Nov 29, 2025
57f38af
change dir
Sorathor Nov 30, 2025
a43b85b
remove .gitattributes file for CSS and JS language detection
Sorathor Nov 30, 2025
b39b216
update .gitattributes to include SQL language detection
Sorathor Nov 30, 2025
4c6f5de
First commit
thapanavin83-source Dec 1, 2025
24c6409
First commit
thapanavin83-source Dec 2, 2025
4fbd848
second commit
thapanavin83-source Dec 2, 2025
4269f30
login.html
fozia2314 Dec 2, 2025
b95a462
login.c
fozia2314 Dec 2, 2025
8bf7a6c
login.c
fozia2314 Dec 2, 2025
90a8d28
change pwd
fozia2314 Dec 2, 2025
419abe5
Merge branch 'main' into login
fozia2314 Dec 2, 2025
e1c362c
Merge pull request #2 from Sorathor/login
fozia2314 Dec 2, 2025
38c40c2
exit
fozia2314 Dec 2, 2025
8caaa78
add exit.html
fozia2314 Dec 2, 2025
96e4b9b
Merge pull request #3 from Sorathor/exit
fozia2314 Dec 2, 2025
c7e7c3e
main page
mariags1 Dec 2, 2025
0c5b4d3
Merge branch 'main' into main_page
mariags1 Dec 2, 2025
2d83a3d
Merge pull request #4 from Sorathor/main_page
mariags1 Dec 2, 2025
5c574f3
update compiled Python bytecode for creature_game
Sorathor Dec 2, 2025
776eed5
change the style of the welcome page like Fozia's one
Sorathor Dec 2, 2025
7caac44
fix: correct header formatting and add exit page to index.html
Sorathor Dec 2, 2025
f66f4fd
style: refactor button styles and add exit page styles in game.css
Sorathor Dec 2, 2025
337fc23
fix: update exit button functionality and reset player data on restart
Sorathor Dec 2, 2025
1fdfab0
merge the exit page style from Fozia's exit.css
Sorathor Dec 2, 2025
06ff933
update exit button functionality to show exit page and reset player d…
Sorathor Dec 2, 2025
f76a06f
fix: correct HTML formatting and merge with exit page from Fozia's ex…
Sorathor Dec 2, 2025
644101b
exit.html revised
fozia2314 Dec 3, 2025
0fef1b4
exit.css revised
fozia2314 Dec 3, 2025
9f8e55c
login.html revised
fozia2314 Dec 3, 2025
22aa5fb
login.css revised
fozia2314 Dec 3, 2025
2943df9
Merge branch 'main' of https://github.com/Sorathor/Software2-Project
Sorathor Dec 3, 2025
2fc35d6
Merge pull request #5 from Sorathor/exit
fozia2314 Dec 3, 2025
b53f143
login background
fozia2314 Dec 3, 2025
5a828a9
exit background
fozia2314 Dec 3, 2025
0c12e4d
Merge pull request #6 from Sorathor/exit
fozia2314 Dec 3, 2025
b8637ec
Third commit
thapanavin83-source Dec 3, 2025
3f6cff6
update compiled Python bytecode for creature_game
Sorathor Dec 3, 2025
5285355
feat: refactor routing to login.html, login.js from Fozia. And add UR…
Sorathor Dec 3, 2025
8f9ffb9
refactor: change dir
Sorathor Dec 3, 2025
b470292
fix: bug fix
Sorathor Dec 3, 2025
abbbbfc
refactor: change ref for stylesheet
Sorathor Dec 3, 2025
2829d4b
refactor: remove all style in welcome page, since routing to login.html
Sorathor Dec 3, 2025
ef126b3
refactor: remove welcome page
Sorathor Dec 3, 2025
0ee0802
feat: add URLSearchParams to send the data across multiple page.
Sorathor Dec 3, 2025
9993ebb
style: make the word consistent
Sorathor Dec 3, 2025
4c10d20
feat: Add styling for explore page and popup msg.
Sorathor Dec 3, 2025
8a642d6
load habitat images and some edit functionality
Anubhav675 Dec 3, 2025
06b5044
Working Edit button
Anubhav675 Dec 4, 2025
a693fb2
Merge pull request #7 from Sorathor/navin
thapanavin83-source Dec 4, 2025
023a39d
Merge branch 'main' into Anubhav
Anubhav675 Dec 4, 2025
c862880
Merge pull request #8 from Sorathor/Anubhav
Anubhav675 Dec 4, 2025
6d5ae02
fix: Change password
Sorathor Dec 4, 2025
2ec38a8
updated menu page (main page)
mariags1 Dec 5, 2025
1a437f7
Merge remote-tracking branch 'origin/main_page' into main_page
mariags1 Dec 5, 2025
9df0be6
fix: change the dh pwd and
Sorathor Dec 5, 2025
036504c
chore: change dir
Sorathor Dec 5, 2025
0e188c1
feat: remove drafted Journal page to connect to Navin's Journal page
Sorathor Dec 5, 2025
f38a033
chore: update compiled Python bytecode for creature_game
Sorathor Dec 5, 2025
78a63ff
Revert "Merge remote-tracking branch 'origin/main_page' into main_page"
mariags1 Dec 5, 2025
a4a689e
Add file h
mariags1 Dec 5, 2025
67f6c3b
fix: change pwd
Sorathor Dec 5, 2025
3374e62
fix: syntax
Sorathor Dec 5, 2025
0a5d885
feat: remove old logic and connect to Navin's journal page
Sorathor Dec 5, 2025
1a3b8b1
Merge branch 'main_page' of https://github.com/Sorathor/Software2-Pro…
Sorathor Dec 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Project2-draft/Main-Paige.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Main Page</title>
<link rel="stylesheet" href="style.css"></link>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap" rel="stylesheet">
</head>
<body>
<h1>Main Page</h1>

<ul>
<li><button onclick="window.location.href='explore-page.html'">Explore</button></li>
<li><button onclick="window.location.href='manage.html'">Manage</button></li>
<li><button onclick="window.location.href='view-journal.html'">View Journal</button></li>
<li><button onclick="window.location.href='exit.html'">Exit</button></li>
</ul>
</body>
</html>
Binary file added Project2-draft/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Project2-draft/exit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Exit</title>
</head>
<body>
<h1>This is the Exit page</h1>
</body>
</html>
10 changes: 10 additions & 0 deletions Project2-draft/explore-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Explore</title>
</head>
<body>

</body>
</html>
10 changes: 10 additions & 0 deletions Project2-draft/front-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Front Page</title>
</head>
<body>

</body>
</html>
10 changes: 10 additions & 0 deletions Project2-draft/manage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Manage</title>
</head>
<body>

</body>
</html>
39 changes: 39 additions & 0 deletions Project2-draft/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

ul {
list-style: none;
padding: 0;
margin: 0;
}

body {
font-family: "pixelify sans", sans-serif ;
text-align: center;
color: #8b4513;
background-image: url("background.jpg");
font-size: 40px;
text-shadow: 0px 0px 10px rgba(0,0,0,0.3); /* adding shadow behind the text, to make it more visible*/

}

button {
padding: 40px 300px;
margin: 4px;
width: 200px;
height: 60px;
background-color: #7ed957;
color: #8b4513;
border: none;
border-radius: 2px;
cursor: pointer;
font-family: "Pixelify Sans", sans-serif;
font-size: 22px;
text-align: center;
white-space: nowrap;
line-height: 10px;
text-indent: -40px; /* moving the text more to the center */
}

button:hover {
background-color: darkolivegreen;
}
10 changes: 10 additions & 0 deletions Project2-draft/view-journal.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>View Journal</title>
</head>
<body>

</body>
</html>
Binary file added __pycache__/creature_game.cpython-312.pyc
Binary file not shown.
Binary file added __pycache__/creature_game.cpython-39.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions creature_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class Database:
"""Database connection handler"""

def __init__(self, host='localhost', user='root', password='', database='creature_catcher'):
def __init__(self, host='localhost', user='root', password='123456789', database='creature_catcher'):
self.connection = pymysql.connect(
host=host,
user=user,
Expand Down Expand Up @@ -659,7 +659,7 @@ def main_menu(self):
db = Database(
host='localhost',
user='root',
password='Cde3xsw2',
password='123456789',
database='creature_catcher'
)
print("✅ Connected!\n")
Expand Down
27 changes: 27 additions & 0 deletions exitpage/exit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
body{
background:url("exitbackground.jpg");
background-size:cover;
background-position:center;
background-repeat:no repeat;
font-family:pixelify sans,sans-serif;
color:#8b4513 ;
display:flex;
justify-content:center;
align-items:center;
height:100vh;
margin:0;
}
.exit-wrapper{
text-align:center;
}

.btn{
padding:10px;
background:#7ed957;
border-radius:6px;
border:none;
font-size:16px;
font-weight:bold;
cursor:pointer;

}
22 changes: 22 additions & 0 deletions exitpage/exit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Creaturecatch exit</title>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="exit.css" />
</head>
<body>

<div class="exit-wrapper">
<h1>You have successfully logged out!</h1>
<h1>Thank you for playing creature catch!</h1>
<h1>Click play to play again! </h1>
<button id="playBtn" class =btn>Play</button>

</div>
<script src="exit.js"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions exitpage/exit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const playBtn = document.getElementById(playBtn);
playBtn.addEventListener("click", () => {
window.location.href = "login.html";
});
Binary file added exitpage/exitbackground.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading