
这是一个随机开发日志,我用它来跟踪随机的事情,也作为 idk 的时间胶囊
正如标题所示,该项目是一个用 java 编写的 pokemon battle simulator。这将是一款离线游戏,仅使用人工智能作为第二玩家。多人游戏功能并不是为了制作而设计的。
dang,为什么我现在才想到写一个开发日志?从一开始就应该这样做或者其他什么。
如果您正在阅读本文,欢迎!请随时留下任何反馈。批评确实是必要的。哎呀,任何评论都值得赞赏,只要它是具体的,这样我就知道它的哪一部分是好/坏。
public class Pokemon
// calls pokemon.csv for initialization
: all stats (hp, attack, defense, specialAttack, specialDefense, speed)
class BattlePokemon extends Pokemon
: effective stats for each stat
: accuracy and evasion
: stat changes (array)
// only initialized in battle
public class Move
// calls moves.csv for initialization
: power, accuracy, PP
f() apply
f() calculate damage
f() handle effects
class TypeChart
// is used by f() calculate type multiplier
// calls typechart.csv for type chart
public class Battle
// does nothing rn
f() turn // does nothing as well
以上就是口袋妖怪战斗模拟器/对决克隆开发日志#0的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号