发个从前的游戏开发习作(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.

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值