⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gamecanvas.java

📁 J2ME的游戏原代码!希望能帮助有需要帮助的师兄弟们!
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    /**
     * Keeps the reference of StringItem used
     * to ask the user whether they want to reset the high scores.
     */
    public StringItem m_objConfHighScoreStrItem;

   /**
    * For storing the current mode of the display.
    */
    public int m_nMode;

   /**
    * For storing the previous mode.
    */
    public int m_nPreviousMode;

   /**
    * Indicates whether the 'Resume' Command is added or not.
    */
    public boolean m_bResumeMenu;

    /**
     * Keeps the refrence of language-specific string array
     */
    public String m_arrLanguageStrings[];


    /**
     * Keeps the reference of the background animation images shown
     * when the user achieves a high score.
     */
    private Image m_imgHighScoreAnim;

    /**
     * Keeps the reference of ErixMIDlet object.
     */
    private ErixMIDlet m_objMIDlet;

    /**
     * Keeps the reference of the application's Display.
     */
    private Display m_objDisplay;

    /**
     * Index for String constant "New Game".
     */
    private final int START_STR = 0;

    /**
     * Index for String constant "Settings".
     */
    private final int SETTINGS_STR = 1;

    /**
     * Index for String constant "Help".
     */
    private final int HELP_STR = 2;

    /**
     * Index for String constant "Highscores".
     */
    private final int HIGH_SCORES_STR = 3;

    /**
     * Index for String constant "Quit". (The last menu option in the Main menu).
     */
    private final int QUIT_STR = 4;

    /**
     * Index for String constant "Welcome to Erix".
     */
    private final int WELCOME_STR = 5;

    /**
     * Index for String constant "Easy".
     */
    private final int EASY_STR = 6;

    /**
     * Index for String constant "Medium".
     */
    private final int MEDIUM_STR = 7;

    /**
     * Index for String constant "Hard".
     */
    private final int HARD_STR = 8;

    /**
     * Index for String constant "Resume Game".
     */
    private final int RESUME_GAME_STR = 9;

    /**
     * Index for String constant "Select Game Type".
     */
    private final int SELECT_GAME_TYPE_STR = 10;

    /**
     * Index for String constant "Game Language".
     */
    private final int GAME_LANGUAGE_STR = 11;

    /**
     * Index for String constant "Audio".
     */
    private final int AUDIO_STR = 12;

    /**
     * Index for String constant "Instructions".
     */
    private final int INSTRUCTION_STR = 13;

    /**
     * Index for String constant "Send".
     */
    private final int SEND_STR = 14;

    /**
     * Index for String constant "Reset".
     */
    private final int RESET_SCORES_STR = 15;

    /**
     * Index for String constant "Done".
     */
    private final int DONE_STR = 16;

    /**
     * Index for String constant "Loading Game".
     */
    private final int LOADING_GAME_STR = 17;

    /**
     * Index for String constant "Please Wait".
     */
    private final int PLEASE_WAIT_STR = 18;

    /**
     * Index for String constant "English".
     */
    private final int ENGLISH_STR = 19;

    /**
     * Index for String constant "Francais".
     */
    private final int FRENCH_STR = 20;

    /**
     * Index for String constant "Select Language".
     */
    private final int SELECT_LANG_STR = 21;

    /**
     * Index for String constant "On".
     */
    private final int ON_STR = 22;

    /**
     * Index for String constant "Off".
     */
    private final int OFF_STR = 23;

    /**
     * Index for String constant "Music and Sound".
     */
    private final int MUSIC_AND_SOUND_STR = 24;

    /**
     * Index for String constant "Your Score".
     */
    private final int YOUR_SCORE_STR = 25;

    /**
     * Index for String constant "Enter Your Name".
     */
    private final int ENTER_NAME_STR = 26;

    /**
     * Index for String constant "Life Lost".
     */
    private final int LIFE_LOST_STR = 27;

    /**
     * Index for String constant "Congratulations!".
     * This is the first part of the message
     * displayed to the user at the completion of a level.
     */
    private final int LEVEL_DONE_STR_PART1 = 28;

    /**
     * Index for String constant "Move on to the next level."
     * This is the second and final part of the message
     * displayed to the player at the completion of a level.
     */
    private final int LEVEL_DONE_STR_PART2 = 29;

    /**
     * Index for String constant "Game Over".
     */
    private final int GAME_OVER_STR = 30;

    /**
     * Index for String constant "Select".
     */
    private final int SELECT_STR = 31;

    /**
     * Index for String constant "Back".
     */
    private final int BACK_STR = 32;

    /**
     * Index for String constant "Exit". (Currently not used).
     */
   // private final int EXIT_STR = 33;

    /**
     * Index for String constant "OK".
     */
    private final int OK_STR = 34;

    /**
     * Index for String constant "You Achieved A High Score".
     */
    private final int ACHIEVED_SCORE_STR = 35;

    /**
     * Index for String constant "Pause".
     */
    private final int PAUSE_STR = 36;

    /**
     * Index for String constant "Resume".
     */
    private final int RESUME_STR = 37;

    /**
     * Index for String constant "Reset Scores".
     */
    private final int RESET_HIGH_SCORES_STR = 38;

    /**
     * Index for String constant "Reset All High Scores Data ?".
     */
    private final int CONF_RESET_SCORES_STR = 39;

    /**
     * Index for String constant "Yes".
     */
    private final int YES_STR = 40;

    /**
     * Index for String constant "No".
     */
    private final int NO_STR = 41;

    /**
     * Index for String constant "Paused".
     */
    private final int PAUSED_STR = 42;

    /**
     * Index for first part of the message shown
     * when the user wins the game.
     */
    private final int YOU_WIN_STR_PART1 = 43;

    /**
     * Index for the second and final part of the message shown
     * when the user wins the game.
     */
    private final int YOU_WIN_STR_PART2 = 44;

    /**
     * Index for String constant "Level #".
     */
    private final int LEVEL_STR = 45;

    /**
     * Index for the Help text.
     */
    private final int HELP_TEXT_STR = 46;

    /**
     * Index for String constant
     * "Name contains invalid character(s) Please re-enter".
     */
    public final int INVALID_CHAR_MSG_STR = 47;

    /**
     * Index for the title of the Alert shown
     * when the user enters a string with an invalid character.
     */
    public final int ERROR_TITLE_STR = 48;

    /**
     * Index for the title of the Alert shown
     * for the HTTP response on sending the high scores to the high score server .
     */
    public final int HTTP_STATUS_TITLE_STR = 49;

    /**
     * Index for the first part of the message displayed
     * when the highscores get uploaded successfully.
     */
    public final int HTTP_SUCCESS_STR_1 = 50;

    /**
     * Index for the first part of the message displayed
     * when the high scores upload fails due to a reson
     * other than authentication failure.
     */
    public final int HTTP_FAILED_STR_1 = 51;

    /**
     * Index for the title of the screen which allows the user to
     * modify the language or audio settings.
     */
    public final int SETTINGS_TITLE_STR = 52;

    /**
     * Index for the string "Accept".
     */
    public final int ACCEPT_STR = 53;

    /**
     * Index for the string "More".
     */
    public final int MORE_STR = 54;

    /**
     * Index for the title of the User Authentication Form.
     */
    private final int AUTHENTICATION_FORM_TITLE_STR = 55;

    /**
     * Index for the prompt displayed to the user
     * on the user authentication screen.
     */
    private final int AUTHENTICATION_PROMPT_STR = 56;

    /**
     * Index for the label of the TextField which accepts
     * the userId for authentication with the Highscores server.
     */
    private final int USERID_TEXTFIELD_LABEL_STR = 57;

    /**
     * Index for the label of the TextField which accepts
     * the password for authentication with the Highscores server.
     */
    private final int PASSWORD_TEXTFIELD_LABEL_STR = 58;

    /**
     * Label of the 'Help' command on the User Authentication Form
     */
    private final int HELP_CMD_STR = 59;

    /**
     * Title of the Authentication Help Form
     */
    private final int AUTHENTICATION_HELP_FORM_TITLE_STR = 60;

    /**
     * Index for the text displayed on the Authentication Help form.
     */
    private final int AUTHENTICATION_HELP_STR = 61;

    /**
     * Index for the title of the screen displayed
     * when the highscores get uploaded successfully.
     */
    private final int HTTP_SUCCESS_TITLE_STR = 62;

    /**
     * Index for the second part of the message displayed
     * when the highscores get uploaded successfully.
     */
    private final int HTTP_SUCCESS_STR_2 = 63;

    /**
     * Index for the third part of the message displayed
     * when the highscores get uploaded successfully.
     */
    private final int HTTP_SUCCESS_STR_3 = 64;

    /**
     * Index for the title of the screen displayed
     * when the high scores upload fails due to a reson

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -