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

📄 newgame.java

📁 关于j2me的宠物游戏!!!!!!!!!!! 希望打架提出意见
💻 JAVA
字号:
/*
 * NewGame.java
 *
 * Created on 2006年5月5日, 上午11:34
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package DogPet;

import java.util.Calendar;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

// Referenced classes of package com.webineti:
//            ScoreStore, GameData, Game_control

public class NewGame extends Canvas
{

    public NewGame(Game_control gc)
    {
        store = new ScoreStore();
        game_control = gc;
        GameData.Birthday = Calendar.getInstance();
        store.startSavedata();
    }

    public void dataset()
    {
        GameData.Name = "Mon Mon";
        GameData.Years = 0;
        GameData.Birthday = Calendar.getInstance();
        GameData.Health = 50;
        GameData.Mood = 50;
        GameData.Intelligence = 50;
        GameData.Capacity = 50;
        GameData.Weight = 50;
        GameData.birthday = 0L;
        GameData.start_x = 28;
        GameData.start_y = 24;
        GameData.Ending = "";
    }

    public void paint(Graphics g)
    {
        game_control.gameview();
    }

    private Game_control game_control;
    private ScoreStore store;
}

⌨️ 快捷键说明

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