view lamertetris/sources/hiscore_linux.h @ 14:49dd434149cd

README.md immposiblerush
author prymula <prymula76@outlook.com>
date Sat, 10 Feb 2024 20:40:34 +0100
parents 2787f5e749ae
children
line wrap: on
line source

/*
 * Lamer Tetris - moja implementacja kultowej gry
 * new version: 06-VIII-2021
 * Przemysław R. Pietraszczyk
 * Licencja: Public Domain
 * Powered by: Geany
*/

#ifndef HISCORE_H
#define HISCORE_H

#include <SDL2/SDL.h>
#include <SDL_ttf.h>
#include <cstdio>
#include <iostream>
#include <unistd.h>  // sleep  access



class HiScore {
public:
    HiScore();
    ~HiScore();
    SDL_bool file_exist();
	void save_hiscore(int hi_score);
	int load_hiscore();
private:
	std::string FILE_NAME = "/.lamertetris.txt";
	std::string HOME = "HOME";

};
#endif //HISCORE_H