• 大小: 45.95M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-27
  • 语言: Java
  • 标签:

资源简介

java swing开发的2D RPG游戏,支持存档,读档。可以用于研究学习。亲测可使用

资源截图

代码片段和文件信息

package model;

import java.awt.Graphics;

import model.over.GameOverobject;
import model.start.Loadobject;
import model.start.Loadingobject;
import model.start.Startobject;
import view.Status;

public class Game {
private static Game game = new Game();
private boolean isSaving = false;
private Status status = Status.START;
private Gameobject currentobjectloadobject;

public static Game getInstance(){
return game;
}

public Game(){}
public Game(Status s){
status=s;
}

public void init(){
new Startobject();
loadobject = new Loadobject();
}

public Gameobject getCurrent(){
return currentobject;
}
public void setCurrent(Gameobject object){
currentobject = object;
}
public void setSaving(boolean isSaving){
this.isSaving = i

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-28 23:31  com.konglingwei.dream_the_dawn1.3\
     文件         335  2016-04-02 18:56  com.konglingwei.dream_the_dawn1.3\.classpath
     文件         409  2016-03-26 18:02  com.konglingwei.dream_the_dawn1.3\.project
     目录           0  2016-04-05 00:29  com.konglingwei.dream_the_dawn1.3\.saveData\
     文件       55951  2019-05-28 23:35  com.konglingwei.dream_the_dawn1.3\.saveData\publicData.dat
     目录           0  2016-03-25 23:00  com.konglingwei.dream_the_dawn1.3\.settings\
     文件         598  2016-03-25 18:57  com.konglingwei.dream_the_dawn1.3\.settings\org.eclipse.jdt.core.prefs
     目录           0  2019-05-28 23:34  com.konglingwei.dream_the_dawn1.3\bin\
     目录           0  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\
     文件        1912  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\Game.class
     文件        3225  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\Gameobject.class
     目录           0  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\over\
     文件        1915  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\over\BadEndobject.class
     文件        2414  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\over\GameEndobject.class
     文件        1701  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\over\GameOverobject.class
     目录           0  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\
     文件        1874  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Chase.class
     文件        1035  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Direction.class
     文件        1502  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Item.class
     目录           0  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\
     文件        9174  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Map.class
     文件        9292  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\MapEditer.class
     文件        1270  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\MapKind.class
     目录           0  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\
     目录           0  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\
     文件        1428  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Auto.class
     文件         836  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Die.class
     文件         801  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Die1.class
     文件        2304  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story.class
     文件        2034  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story1.class
     文件        1097  2019-05-28 23:32  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story2.class
............此处省略320个文件信息

评论

共有 条评论