Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
18 changes: 2 additions & 16 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <algorithm>
#include <csignal>
#include <cstdlib>
#include <fstream>
#include <string>

// Color and formatting macros for terminal output
#define RESET "\033[0m"
Expand Down Expand Up @@ -68,20 +66,14 @@ int main() {
return 1;
}

std::cout << "\033[?25l" << std::flush; // Hide cursor

long long highscore = load_highscore();
long long initialHighscore = highscore;
long long score = 0;
bool hardMode = false;
char input;

long long highscore = 0;
std::ifstream infile("highscore.txt");
if (infile.is_open()) {
infile >> highscore;
infile.close();
}

long long score = 0; bool hardMode = false; char input;
std::cout << CLR_CTRL << "==========================\n SPEED CLICKER\n==========================\n" << CLR_RESET;

if (highscore > 0) {
Expand Down Expand Up @@ -153,12 +145,6 @@ int main() {
}
}

if (score > highscore) {
std::ofstream outfile("highscore.txt");
if (outfile.is_open()) {
outfile << score;
outfile.close();
}
if (score > initialHighscore) {
save_highscore(score);
}
Expand Down