• 大小: 19.77MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: Java
  • 标签: java  RPG  

资源简介

用java做的探索解谜RPG游戏,有存档读档功能、双结局、简单的物品栏和剧情,大体使用了MVC模式,有兴趣的小伙伴可以下载一下。

资源截图

代码片段和文件信息

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 = isSaving;
if(isSaving)
loadobject = new Loadobject(); 
}
public boolean isSaving(){
return isSaving;
}

public void changeModel(Status stu){
status = stu;
if(status==Status.START){
new Startobject();
}else if(status==Status.RPG){
new Loadingobject(Status.RPGnull);
}else if(status==Status.OVER)
new GameOverobject();
}

public void paint(Graphics g){
if(isSaving)
loadobject.draw(g);
else{
currentobject.draw(g);
}

}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        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

     文件        598  2016-03-25 18:57  com.konglingwei.dream_the_dawn1.3\.settings\org.eclipse.jdt.core.prefs

     文件       1912  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\Game.class

     文件       3225  2016-04-05 00:13  com.konglingwei.dream_the_dawn1.3\bin\model\Gameobject.class

     文件       1915  2016-04-05 00:17  com.konglingwei.dream_the_dawn1.3\bin\model\over\BadEndobject.class

     文件       2414  2016-04-05 00:11  com.konglingwei.dream_the_dawn1.3\bin\model\over\GameEndobject.class

     文件       1701  2016-04-05 00:18  com.konglingwei.dream_the_dawn1.3\bin\model\over\GameOverobject.class

     文件       1874  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Chase.class

     文件       1035  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Direction.class

     文件       1502  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Item.class

     文件       9178  2016-04-05 00:13  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Map.class

     文件       9292  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\MapEditer.class

     文件       1270  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\MapKind.class

     文件       1428  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Auto.class

     文件        836  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Die.class

     文件        801  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Die1.class

     文件       2304  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story.class

     文件       2034  2016-04-05 00:24  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story1.class

     文件       1097  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story2.class

     文件       1121  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story3.class

     文件       1278  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story4.class

     文件       1294  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\auto\Story5.class

     文件       3150  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\MapAchievement.class

     文件       2377  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\MapAuto.class

     文件       1678  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\MapDoor.class

     文件       2933  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\MapEvent.class

     文件       1891  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\map\Mapobjects\Mapobject.class

     文件       4705  2016-04-04 23:33  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Player.class

     文件       6128  2016-04-05 00:26  com.konglingwei.dream_the_dawn1.3\bin\model\rpg\Rpgobject.class

............此处省略200个文件信息

评论

共有 条评论