`
chings
  • 浏览: 601 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

发个从前的游戏开发习作(SRPG,仅支持Android)

阅读更多

11年那会自己一个人搞的,结果搞着搞着就搁下了,看来搞游戏还真是个艰巨的工程。今偶尔翻出来,吹吹灰放这了,但愿至少还能发挥点教学作用吧。

 

工程源码:https://github.com/chings/srpg_demo

现成apk见附件。

 

image

Main Features

  • Round based battle, use unique abilities to beat enemy.
  • Hexagon-tiled map, with A* pathfinding support.
  • Contextual game control - click a gird to take action, while casting some ability, click and hold the icon to show help.
  • Spell effects: chain lightning, magic missle, and more.
  • Very simple AI.
  • Xml formatted game data, support referencing and auto-unmarshelling.
  • Pure android-java, no dependent framework or lib.
  • Playable, 3 levels, 8 PC and NPCs, 20+ abilites.

Battle Rules

  • Life - when one of your characters' life go down 0, you lose.
  • Energy - you need energy to use abilities, 10 energy per round regenerated for all you characters, basic attack cost no energy.
  • Activity - you cost 10 activity per gird while your character move (more activity needed to pass a gird with corpses), and you cost all activity left to cast an ability, when activity go down 0, turn ends.
  • Beat all enemy of the level, you win.

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics