All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mmb.menu.world.FPSCounter Maven / Gradle / Ivy

Go to download

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<

The newest version!
/**
 * 
 */
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy