Minor graphical updates and code cleaning.

- Padded game score display, and always display 2 digits in front of the decimal (e.g. 00.00% instead of 0.00%).
- Keep map progress circle at a fixed location instead of basing it off the score length.
- Moved some track resets (pause + restart at preview) to trigger upon loading the song menu.  Fixes weird behaviors when leaving the game state.
- Cleaned up trailing whitespace and added missing overrides.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-01-16 15:44:13 -05:00
parent be1ec64f28
commit 31a97fbc5d
19 changed files with 95 additions and 60 deletions

View File

@@ -98,7 +98,7 @@ public class Utils {
* Last cursor coordinates.
*/
private static int lastX = -1, lastY = -1;
/**
* Stores all previous cursor locations to display a trail.
*/
@@ -293,7 +293,7 @@ public class Utils {
/**
* Loads the cursor images.
* @throws SlickException
* @throws SlickException
*/
public static void loadCursor() throws SlickException {
// destroy old cursors, if they exist
@@ -428,7 +428,7 @@ public class Utils {
int dx2 = (dx << 1); // point
int ix = x1 < x2 ? 1 : -1; // increment direction
int iy = y1 < y2 ? 1 : -1;
int k = 5; // sample size
if (dy <= dx) {
for (int i = 0; ; i++) {