论坛首页 移动开发技术论坛

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

浏览 3626 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2013-12-06   最后修改:2013-12-06

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.

 

 

 

   发表时间:2013-12-07  
受教了
0 请登录后投票
   发表时间:2013-12-12  

感谢楼主的分享, 拿来研究一下...

 

0 请登录后投票
   发表时间:2014-02-23  
刚谢楼主分享,学习学习
0 请登录后投票
   发表时间:2014-03-25  
多谢分享,收藏一下
0 请登录后投票
论坛首页 移动开发技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics