-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ihs-programming/BEeT.git
Conflicts: src/game/RhythmState.java
- Loading branch information
Showing
4 changed files
with
129 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package game; | ||
|
||
public class Beat { | ||
int x; //x position of the beat circle | ||
int y; //y position of the beat circle | ||
int time; //time, in ms, of the beat from the beginning of the song | ||
//Clip hitSound; to be used later, when sounds are added | ||
|
||
public Beat() { | ||
this.x = 0; | ||
this.y = 0; | ||
this.time = 0; | ||
} | ||
|
||
public Beat(int x, int y, int time) { | ||
this.x = x; | ||
this.y = y; | ||
this.time = time; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package game; | ||
|
||
import java.util.LinkedList; | ||
|
||
public class BeatmapParser { | ||
|
||
public LinkedList<Beat> parseBeatmap() { | ||
LinkedList<Beat> beatlist = new LinkedList<Beat>(); | ||
beatlist.add(new Beat(100,78,854)); | ||
beatlist.add(new Beat(42,276,3132)); | ||
beatlist.add(new Beat(235,324,3891)); | ||
beatlist.add(new Beat(465,104,5410)); | ||
beatlist.add(new Beat(256,192,5790)); | ||
beatlist.add(new Beat(263,259,9398)); | ||
beatlist.add(new Beat(476,172,10347)); | ||
beatlist.add(new Beat(359,44,11106)); | ||
beatlist.add(new Beat(9,68,12436)); | ||
beatlist.add(new Beat(41,308,14144)); | ||
beatlist.add(new Beat(367,364,15474)); | ||
beatlist.add(new Beat(384,114,16423)); | ||
beatlist.add(new Beat(312,43,16803)); | ||
beatlist.add(new Beat(225,92,17182)); | ||
beatlist.add(new Beat(67,248,18701)); | ||
beatlist.add(new Beat(141,314,19081)); | ||
return beatlist; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package game; | ||
|
||
public class HitObject { | ||
int x; | ||
int y; | ||
float radius; | ||
float duration; | ||
boolean clicked = false; | ||
|
||
public HitObject() { | ||
this.x = 0; | ||
this.y = 0; | ||
this.radius = 0; | ||
this.duration = 0; | ||
} | ||
|
||
public HitObject(int x, int y, float radius, float duration, boolean clicked) { | ||
this.x = x; | ||
this.y = y; | ||
this.radius = radius; | ||
this.duration = duration; | ||
this.clicked = clicked; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters