Skip to content

Commit 2bf76a6

Browse files
committed
Merge branch 'aside'
2 parents 149af12 + 6838ce5 commit 2bf76a6

File tree

6 files changed

+28
-2
lines changed

6 files changed

+28
-2
lines changed

res/music/yoshi song.mp3

-1.8 MB
Binary file not shown.

src/com/redomar/game/InputHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class InputHandler implements KeyListener {
1515

1616
public InputHandler(Game game) {
1717
InputContext context = InputContext.getInstance();
18-
// Important to know wether the keyboard is in Azerty or Qwerty.
18+
// Important to know whether the keyboard is in Azerty or Qwerty.
1919
// Azerty countries used QZSD instead of WASD keys.
2020
isAzertyCountry = context.getLocale().getCountry().equals("BE")
2121
|| context.getLocale().getCountry().equals("FR");

src/com/redomar/game/level/tiles/AnimatedTile.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ public class AnimatedTile extends BasicTile {
77
private long lastIterationTime;
88
private int animationSwitchDelay;
99

10+
/**
11+
*
12+
* @param id Unique ID for the Tile
13+
* @param animationCoords A 2D array of all x,y-coordinates in Integers.
14+
* @param tileColour Colours from the SpriteSheet.
15+
* @param levelColour Colours to be displayed in the Game World.
16+
* @param animationSwitchDelay Length of time to be delayed to the next frame from the 2D array.
17+
*/
1018
public AnimatedTile(int id, int[][] animationCoords, int tileColour,
1119
int levelColour, int animationSwitchDelay) {
1220
super(id, animationCoords[0][0], animationCoords[0][1], tileColour,

src/com/redomar/game/level/tiles/BasicSolidTile.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
public class BasicSolidTile extends BasicTile {
44

5+
/**
6+
* This is a solid tile, but does not emit any light. This tile does not have any animations.
7+
*
8+
* @param id Unique ID for the Tile
9+
* @param x Specifies the x-coordinate from the SpriteSheet, measured in 8 pixels. Must be 0 - 31
10+
* @param y Specifies the y-coordinate from the SpriteSheet, measured in 8 pixels. Must be 0 - 31
11+
* @param tileColour Colours from the SpriteSheet.
12+
* @param levelColour Colours to be displayed in the Game World.
13+
*/
514
public BasicSolidTile(int id, int x, int y, int tileColour, int levelColour) {
615
super(id, x, y, tileColour, levelColour);
716
this.solid = true;

src/com/redomar/game/level/tiles/BasicTile.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ public class BasicTile extends Tile {
88
protected int tileId;
99
protected int tileColour;
1010

11+
/**
12+
* This is a tile that does not emit light, nor is sold. This tile does not have any animations.
13+
*
14+
* @param id Unique ID for the Tile
15+
* @param x Specifies the x-coordinate from the SpriteSheet, measured in 8 pixels. Must be 0 - 31
16+
* @param y Specifies the y-coordinate from the SpriteSheet, measured in 8 pixels. Must be 0 - 31
17+
* @param tileColour Colours from the SpriteSheet.
18+
* @param levelColour Colours to be displayed in the Game World.
19+
*/
1120
public BasicTile(int id, int x, int y, int tileColour, int levelColour) {
1221
super(id, false, false, levelColour);
1322

src/com/redomar/game/lib/Music.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Music implements Runnable {
1313

1414
private InputStream file;
1515
private Player musicPlayer;
16-
private static String songName[] = { "/music/yoshi song.mp3",
16+
private static String songName[] = { "/music/Towards The End.mp3",
1717
"/music/Towards The End.mp3", "/music/Towards The End.mp3" };
1818
private static int songNumber;
1919
private Printing print = new Printing();

0 commit comments

Comments
 (0)