📄 resources.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: Resources.java
import javax.microedition.lcdui.Font;
public class Resources
{
public static int BLACK = 0;
public static int WHITE = -1;
public static int RED = 0xff0000;
public static int BLUE = 255;
public static int BACKGROUND = 0xfff568;
public static int BACKGROUND2 = 0xfbaf5d;
public static Font font1 = Font.getFont(32, 0, 8);
public static Font font2 = Font.getFont(32, 1, 8);
public static Font font3 = Font.getFont(64, 5, 8);
public static Font font4 = Font.getFont(64, 1, 16);
public static int ID_GAME_NEW = 0;
public static int ID_GAME_OPTIONS = 1;
public static int ID_GAME_HIGHSCORES = 2;
public static int ID_GAME_INSTRUCTIONS = 3;
public static int ID_GAME_ABOUT = 4;
public static int ID_GAME_CONTINUE = 5;
public static int ID_GAME_BACK = 6;
public static int ID_GAME_MORE = 7;
public static int ID_GAME_EXIT = 8;
public static int ID_GAME_LEVEL = 9;
public static int ID_GAME_SOUNDS = 10;
public static int ID_GAME_VIBRA = 11;
public static int ID_GAME_NAME = 12;
public static boolean withSound = true;
public static byte countdownSoundByte[] = {
2, 74, 58, 64, 4, 0, 15, 28, -126, 100,
33, 2, 100, 33, 2, 100, 0
};
public static byte correctSoundByte[] = {
2, 74, 58, 64, 4, 0, 17, 28, 86, -120,
53, 68, -106, -94, -120, -48, 0
};
public static byte nextLevelSoundByte[] = {
2, 74, 58, 64, 4, 0, 19, 28, -125, 81,
73, 56, -106, -119, -56, -109, -119, -122, -128, 0
};
public static byte wrongSoundByte[] = {
2, 74, 58, 64, 4, 0, 15, 28, -125, -116,
73, 86, 32, -101, 0, 0
};
private static String supportedLocales[] = {
"en", "fi-FI", "fr", "de"
};
private static String strings[][] = {
{
"New Game", "Settings", "High Scores", "Instructions", "About", "Continue", "Back", "More", "Exit Game", "Level",
"Sounds", "Shakes", "Twirl Em' Up"
}, {
"Uusi peli", "Asetukset", "Huipputulokset", "Peliohjeet", "Tietoja", "Jatka", "Poist", "Jatka", "Poistu", "Vaikeusaste",
"Peliaanet", "Varinatehosteet", "Twirl Em' Up"
}, {
"Nouveau jeu", "Parametre", "Scores", "Instructions", "A propos", "Continuer", "Retour", "Suite", "Sortir", "Niveau",
"Sons", "Vibrations", "Twirl Em' Up"
}, {
"Neues Spiel", "Einstellungen", "Rekord", "Anleitung", "Uber", "Weiter", "Zuruck", "Weiter", "Beenden", "Ebene",
"Ton", "Vibrationen", "Twirl Em' Up"
}
};
public static int level = 0;
public static int score = 0;
public static String name = null;
public static String highscore[] = {
null, null, null, null, null
};
public static String QRS = "twirlDB";
public static String instructionString = "The words in the world have been twirled. Form all the words you can out of the given letters. \n \n Guess the the last word that uses all the letters in order to move up to next level. Every word merits you 10 points and every level gives you 50 bonus points. \n \n Use the the Right and Left keys to move the cursor. To select the letter, use the fire key. Press <7> to twirl the letters, <8> to clear the chosen letters, <9> to undo the last letter chosen, and <0> to finally submit the guessed word. \n \nYou are under time pressure to guess the words so hurry and beat the clock. \n \n Play now!";
public static String aboutString = " Twirl Em' Up v1.0\n\n Lead Programmer: Richard Vinas (OJT)\n\n Lead Designer: Chelle Reburiano (OJT)\n\n Managing Director: Ray C. Espinosa\n\n Content Dev Senior Manager:\n Buddy V. del Rosario\n\n ContentDev Team:\n Pia Gracinia V. Tan\n Marla Marie C. Ong\n Elmer T. Andes\n Rick Emerson S. Ong\n Joyce C. Guerrero\n Peter Paul A. Gadi\n Leomar M Valiao\n Anton L. Gustilo\n Reah Benedicta C Clavio\n Irene Milani C. Yu\n Cherilen Serrano (OJT)\n Rhea Blanca Reburiano (OJT)\n Lorraine Joyce Cheung (OJT)\n Parkin Yu (OJT)\n Richard Vinas (OJT)\n Tristan Joseph Raymundo (OJT)\n Rene Russell Santos \n(OJT)\n\n Copyright (c) 2003\nePLDT ContentDev\nAll Rights Reserved";
public Resources()
{
}
public static String getString(int key)
{
String locale = System.getProperty("microedition.locale");
if(locale == null)
locale = new String("");
int localeIndex = -1;
for(int i = 0; i < supportedLocales.length; i++)
{
if(!locale.equals(supportedLocales[i]))
continue;
localeIndex = i;
break;
}
if(localeIndex == -1)
return strings[0][key];
else
return strings[localeIndex][key];
}
static
{
BLACK = 0;
WHITE = -1;
RED = 0xff0000;
BLUE = 255;
BACKGROUND = 0xfff568;
BACKGROUND2 = 0xfbaf5d;
ID_GAME_NEW = 0;
ID_GAME_OPTIONS = 1;
ID_GAME_HIGHSCORES = 2;
ID_GAME_INSTRUCTIONS = 3;
ID_GAME_ABOUT = 4;
ID_GAME_CONTINUE = 5;
ID_GAME_BACK = 6;
ID_GAME_MORE = 7;
ID_GAME_EXIT = 8;
ID_GAME_LEVEL = 9;
ID_GAME_SOUNDS = 10;
ID_GAME_VIBRA = 11;
ID_GAME_NAME = 12;
instructionString = "The words in the world have been twirled. Form all the words you can out of the given letters. \n \n Guess the the last word that uses all the letters in order to move up to next level. Every word merits you 10 points and every level gives you 50 bonus points. \n \n Use the the Right and Left keys to move the cursor. To select the letter, use the fire key. Press <7> to twirl the letters, <8> to clear the chosen letters, <9> to undo the last letter chosen, and <0> to finally submit the guessed word. \n \nYou are under time pressure to guess the words so hurry and beat the clock. \n \n Play now!";
aboutString = " Twirl Em' Up v1.0\n\n Lead Programmer: Richard Vinas (OJT)\n\n Lead Designer: Chelle Reburiano (OJT)\n\n Managing Director: Ray C. Espinosa\n\n Content Dev Senior Manager:\n Buddy V. del Rosario\n\n ContentDev Team:\n Pia Gracinia V. Tan\n Marla Marie C. Ong\n Elmer T. Andes\n Rick Emerson S. Ong\n Joyce C. Guerrero\n Peter Paul A. Gadi\n Leomar M Valiao\n Anton L. Gustilo\n Reah Benedicta C Clavio\n Irene Milani C. Yu\n Cherilen Serrano (OJT)\n Rhea Blanca Reburiano (OJT)\n Lorraine Joyce Cheung (OJT)\n Parkin Yu (OJT)\n Richard Vinas (OJT)\n Tristan Joseph Raymundo (OJT)\n Rene Russell Santos \n(OJT)\n\n Copyright (c) 2003\nePLDT ContentDev\nAll Rights Reserved";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -