aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/sowgro/npehero/gameplay/Timer.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2024-08-31 21:39:29 -0400
committersowgro <tpoke.ferrari@gmail.com>2024-08-31 21:39:29 -0400
commite026f360ca7777fe72ec1b3bd86045f7d94aa834 (patch)
treefaedd4ea64e444063d804d6d81a16a64dd1bdfef /src/main/java/net/sowgro/npehero/gameplay/Timer.java
parent2dd291f259734564b8d507a10b29602ef3a4e462 (diff)
downloadNPEhero-e026f360ca7777fe72ec1b3bd86045f7d94aa834.tar.gz
NPEhero-e026f360ca7777fe72ec1b3bd86045f7d94aa834.tar.bz2
NPEhero-e026f360ca7777fe72ec1b3bd86045f7d94aa834.zip
finish SongPlayer rewrite
- move from gameloop to timeline - significant code clean up - change design of blocks and targets
Diffstat (limited to 'src/main/java/net/sowgro/npehero/gameplay/Timer.java')
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/gameplay/Timer.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/main/java/net/sowgro/npehero/gameplay/Timer.java b/src/main/java/net/sowgro/npehero/gameplay/Timer.java
deleted file mode 100755
index eada237..0000000
--- a/src/main/java/net/sowgro/npehero/gameplay/Timer.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*Name: Guitar Hero Project
- *Description: Contains the method used to determine how long the user has been playing,
- * used to determine when to send notes
- */
-package net.sowgro.npehero.gameplay;
-
-
-public class Timer
-{
- private long timeStart = System.currentTimeMillis();
- private double bpm;
-
- public Timer(double newBpm) {
- bpm = newBpm;
- }
-
- public Timer() {
- bpm = 60000;
- }
-
- public double time() {
- return ((double)(System.currentTimeMillis()-timeStart)-2000)*(bpm/60000.0);
- }
-
- public String toString() {
- return ""+((Math.round(10*(((double)(System.currentTimeMillis()-timeStart))*(bpm/60000.0))))/10.0);
- }
-}