hciop.blogg.se

Game java rpg china 240x320 gif
Game java rpg china 240x320 gif




}//increments player level and adds to stats with xp ("Press 'f' for fireball\nPress 'h' to heal\n") ("Press 'a' to attack\nPress 'i' for info") Level = 1 // initializes globals according to classīreak //initializes enemy stats based on player level ("Enemy "+"\nhp: " + enemyhp + "\ndmg: " + enemymeleedmg + "\n") (playerName + "\nhp: " + playerhp + "\ndamage: " + playermeleedmg + "\nxp: " + xp + "\n") (playerName + "\nhp: " + playerhp + "\nmana: " + mana + "\ndamage: " + playermeleedmg + "\nxp: " + xp + "\n") Public static boolean fighting = false //globals for player stats & enemy stats Static Scanner scan = new Scanner(System.in) Any suggestions are welcome however, as well as general game and game play suggestions (player scaling, enemy scaling, attack and enemy attack probabilities, which are handled in the dice class). I was looking for suggestions on how to improve the general flow of this code, as well as minimizing if / switch conditionals.






Game java rpg china 240x320 gif