mirror of
https://github.com/moganda12/transistor-clicker.git
synced 2025-01-07 21:46:23 -05:00
polish
This commit is contained in:
parent
76f26fe2cc
commit
4be33cb285
14
src/main.cpp
14
src/main.cpp
@ -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;
|
||||
|
26
todo.txt
26
todo.txt
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user