"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Pokemon Battle Simulator/Showdown Clone Devlog#0

Pokemon Battle Simulator/Showdown Clone Devlog#0

Published on 2024-07-30
Browse:684

Pokemon Battle Simulator/Showdown Clone Devlog#0

Intro

This is a random devlog that I use to keep track of random things, and also as a time capsule for idk
The project is, as the title suggests, is a Pokemon Battle Simulator written in Java. It will be an offline one, only using AI as the second player. Multiplayer functionality is not intended to be made.

Prologue

Dang, why did I just think of making a devlog now? Should’ve done it since the beginning or whatever.
If you’re reading this, welcome! Feel free to leave any feedback. Criticism is really needed. Heck, any comment is appreciated, as long as it’s specific so I know which part of it is good/bad.

Progress so far:

  • Made basic stat calculations from name, IVs, EVs and nature.
  • Basic move calculations with only damage, with type effectiveness, STAB, crit and random[0.85, 1.00]
  • That’s it ig?

Project Structure (at the time of writing this):

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
Release Statement This article is reproduced at: https://dev.to/mahfy3w/pokemon-battle-simulatorshowdown-clone-devlog0-ge1?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3