首页 > 文章列表 > 口袋妖怪战斗模拟器/对决克隆开发日志#0

口袋妖怪战斗模拟器/对决克隆开发日志#0

449 2025-04-08

口袋妖怪战斗模拟器/对决克隆开发日志#0

介绍

这是一个随机开发日志,我用它来跟踪随机的事情,也作为 idk 的时间胶囊
正如标题所示,该项目是一个用 java 编写的 pokemon battle simulator。这将是一款离线游戏,仅使用人工智能作为第二玩家。多人游戏功能并不是为了制作而设计的。

序幕

dang,为什么我现在才想到写一个开发日志?从一开始就应该这样做或者其他什么。
如果您正在阅读本文,欢迎!请随时留下任何反馈。批评确实是必要的。哎呀,任何评论都值得赞赏,只要它是具体的,这样我就知道它的哪一部分是好/坏。

到目前为止的进展:

  • 根据名称、iv、ev 和性质进行基本统计计算。
  • 仅包含伤害的基本招式计算,具有类型效果、stab、暴击和随机[0.85, 1.00]
  • 就是这样吗?

项目结构(在撰写本文时):

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
来源:https://dev.to/mahfy3w/pokemon-battle-simulatorshowdown-clone-devlog0-ge1

本类最新

查看更多