This commit is contained in:
moganda12 2024-12-10 02:01:23 +00:00
parent 76f26fe2cc
commit 4be33cb285
2 changed files with 25 additions and 15 deletions

View File

@ -1168,10 +1168,15 @@ int main() {
bool exited = false;
bool skipped = false;
while(!exited) {
if(!skipped)
std::cout << BOLDBLUE << name << ' ' << BOLDGREEN << version << RESET << "\n\n";
skipped = true;
str action;
std::cout << BOLDYELLOW << "Actions:\n\n";
@ -1187,7 +1192,7 @@ int main() {
getline(std::cin, action);
if(action == "n") {
if(action == "n") {
gameState = {0, 0, 0, 0, 0, 0, 0, 0, false, false, false, false, false};
naming:
@ -1221,7 +1226,7 @@ naming:
indexFileWrite << index.dump(4) << std::flush;
std::cout << index.dump(4);
} else if (action == "l") {
} else if(action == "l") {
std::ifstream indexFile("save/saveindex.json");
json index = json::parse(indexFile);
@ -1471,11 +1476,12 @@ select:
CMD::kill(gameThread);
//
clearTempGameState();
}
skipped = false;
rerun:
int useless = 0;
int useless = 0;
}
return 0;

View File

@ -1,25 +1,29 @@
TODOLIST
# TODOLIST
0.0.2 [ ]
[x] refactoring {
[ ] refactoring {
- [x] move the upgrade and acheivement lists out of save
- [x] rename save to something better
- [x] redo the list command
- [x] move the upgrade and acheivement lists out of save
- [x] rename save to something better
- [x] redo the list command
- [ ] section off code into regions
}
[ ] make intermideate interface {
[x] make main menu {
- [x] make game restart on termination
- [x] add game intermideate interface
- [x] add the meat
- [x] remove load command
- [x] index saves
- [ ] add save renaming and copy
- [x] add save renaming and copy
}
[ ] acheivements {
- [x] add interface functions
- [ ] add getcheck triggers
- [ ] add display subcommands
- [x] add interface functions
- [ ] add display subcommands
- [ ] add test acheivment and test
- [ ] add the rest
- [ ] make acheivements save
}