Documentation
Stopped using depreciated method
This commit is contained in:
@@ -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.
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user