Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/Maescool/Catacomb-Snatch in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
Marlinc committed Feb 23, 2012
2 parents 89722fc + 7417171 commit 17c3f28
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 24 deletions.
18 changes: 11 additions & 7 deletions res/properties/texts.properties
@@ -1,10 +1,14 @@
titlemenu.start=Start
titlemenu.host=Host
titlemenu.join=Join
titlemenu.help=How to play
titlemenu.options=Options
titlemenu.exit=Exit
back=back
titlemenu.start = Start
titlemenu.host = Host
titlemenu.join = Join
titlemenu.help = How to play
titlemenu.options = Options
titlemenu.exit = Exit
back= back

pausemenu.help = Help
pausemenu.backtomain = Main
pausemenu.resume = Resume

options.on=On
options.off=Off
Expand Down
18 changes: 11 additions & 7 deletions res/properties/texts_de.properties
@@ -1,10 +1,14 @@
titlemenu.start=Starten
titlemenu.host=Host
titlemenu.join=Beitreten
titlemenu.help=Anleitung
titlemenu.options=Optionen
titlemenu.exit=Schliessen
back=Zurueck
titlemenu.start = Starten
titlemenu.host = Host
titlemenu.join = Beitreten
titlemenu.help = Anleitung
titlemenu.options = Optionen
titlemenu.exit = Schliessen
back = Zurueck

pausemenu.help = Hilfe
pausemenu.backtomain = Hauptmenue
pausemenu.resume = Fortsetzen

options.on=An
options.off=Aus
Expand Down
7 changes: 4 additions & 3 deletions src/com/mojang/mojam/gui/PauseMenu.java
Expand Up @@ -2,6 +2,7 @@

import java.awt.event.KeyEvent;

import com.mojang.mojam.MojamComponent;
import com.mojang.mojam.screen.Art;
import com.mojang.mojam.screen.Screen;

Expand All @@ -16,10 +17,10 @@ public PauseMenu(int gameWidth, int gameHeight) {
this.gameWidth = gameWidth;

resumeButton = (Button) addButton(new Button(TitleMenu.RETURN_ID,
"Resume", (gameWidth - 128) / 2, 200));
addButton(new Button(TitleMenu.HOW_TO_PLAY, "Help menu",
MojamComponent.texts.getStatic("pausemenu.resume"), (gameWidth - 128) / 2, 200));
addButton(new Button(TitleMenu.HOW_TO_PLAY, MojamComponent.texts.getStatic("pausemenu.help"),
(gameWidth - 128) / 2, 230));
addButton(new Button(TitleMenu.RETURN_TO_TITLESCREEN, "Main menu",
addButton(new Button(TitleMenu.RETURN_TO_TITLESCREEN, MojamComponent.texts.getStatic("pausemenu.backtomain"),
(gameWidth - 128) / 2, 260));
}

Expand Down
5 changes: 0 additions & 5 deletions src/com/mojang/mojam/level/tile/FloorTile.java
Expand Up @@ -7,7 +7,6 @@

public class FloorTile extends Tile {

private int orgImg;
// Binary West|North|East
static final int[] shadowImages = new int[] { -1, // 000
3, // 001
Expand All @@ -22,7 +21,6 @@ public class FloorTile extends Tile {
public void init(Level level, int x, int y) {
super.init(level, x, y);
neighbourChanged(null);
orgImg = img;
}

public void render(Screen screen) {
Expand All @@ -42,7 +40,6 @@ public void neighbourChanged(Tile tile) {
if (e != null && e.castShadow())
index |= 0x1;

img = orgImg;
if (n instanceof SandTile) {
img = 4 + 8;
index = 0;
Expand All @@ -59,8 +56,6 @@ public void neighbourChanged(Tile tile) {
else
// Row 2, first 4 columns
img = 2 * Art.floorTiles.length + (imageIndex & 3);
} else {
img = TurnSynchronizer.synchedRandom.nextInt(4);
}
minimapColor = Art.floorTileColors[img & 7][img / 8];
}
Expand Down
4 changes: 2 additions & 2 deletions src/com/mojang/mojam/level/tile/Tile.java
Expand Up @@ -17,14 +17,14 @@ public class Tile implements BBOwner {

public Level level;
public int x, y;
public int img;
public int img = -1; // no image set yet
public int minimapColor;

public void init(Level level, int x, int y) {
this.level = level;
this.x = x;
this.y = y;
img = TurnSynchronizer.synchedRandom.nextInt(4);
if (img == -1) img = TurnSynchronizer.synchedRandom.nextInt(4);
minimapColor = Art.floorTileColors[img & 7][img / 8];
}

Expand Down

0 comments on commit 17c3f28

Please sign in to comment.