mmb.menu.world.FPSCounter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world.
THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<
/**
*
*/
package mmb.menu.world;
/**
* @author oskar
*
*/
public class FPSCounter {
private int frameCounter;
private int FPS;
public void count() {
frameCounter++;
}
public int reset() {
FPS = frameCounter;
frameCounter = 0;
return FPS;
}
public int get() {
return FPS;
}
}