Documentation

Stopped using depreciated method
This commit is contained in:
2018-03-21 18:42:53 +01:00
parent 781f893226
commit 4b5c9f4f97
3 changed files with 11 additions and 6 deletions

View File

@@ -7,11 +7,11 @@ public class AppInfo {
/**
* Your application name.
*/
public static final String APP_NAME = "Rogue-101";
public static final String APP_NAME = "Not Really Rogue";
/**
* Your name.
*/
public static final String APP_DEVELOPER = "kkn015";
public static final String APP_DEVELOPER = "Kristian Knarvik (kkn015)";
/**
* A short description.
*/
@@ -20,7 +20,8 @@ public class AppInfo {
* List of extra credits (e.g. for media sources)
*/
public static final List<String> APP_EXTRA_CREDITS = Arrays.asList(
"Sounds by Mike Koenig, Stephan Schutze and Mark DiAngelo"
"Sounds by Mike Koenig, Stephan Schutze and Mark DiAngelo",
"Thanks to Stian Johannesen Husum and Henning Berge for exchanging ideas"
);
/**
* Help text. Could be used for an in-game help page, perhaps.

View File

@@ -125,7 +125,11 @@ public class Player implements IPlayer {
game.displayMessage("Please enter your name: " + text);
}
} else if (key != KeyCode.ENTER) {
text += key.impl_getChar(); //Deprecated, but kind of necessary
if (key == KeyCode.SPACE) {
text += " ";
} else {
text += key.getName();
}
game.displayMessage("Please enter your name: " + text);
} else {
name = text.toLowerCase();