I need a JS coder
Budget: €12 – €18 EUR
//Description
// 13 characters available
//the player and enemy character will be take form the URL
//example (layout.php?play=do&player=MAGE&enemy=WARRIOR)
>>already done<<
//each characters has 3 abilities and different stats
//Player chooses an ability
//Random ability will be generated for enemy
//there are 3 types of abilities offensive, defensive, healing
//compare the speed of the characters (faster goes first)
//condition if a heal or tank ability is chosen the speed of that characters gets doubled
//Types of abilities and calculation
//damage = offense *1 (values taken from Json)
//heal = defense /1.5 (values taken from Json)
//tank = armor *1.5 (values taken from Json)
//HP calculation for damage ability
//Result = (Player damage *3) - (Enemy defense + Enemy armor)
//if (Result >= 1000){
//Enemy Hp = Enemy Hp - 999}
//elseif (Result =< 0){
//Enemy Hp = Enemy Hp - 0}
//else{
//Enemy Hp = Enemy Hp - Result}
//HP calculation for heal ability
//if(Player Hp =< Player Max Hp){
//Player Hp = Player Max Hp}
//else{
//Player Hp = Player Hp + heal}
//HP calculation for tank ability
//Player defense = tank
//Player Hp = Player Hp + (Player defense /3)
//if (Player Hp >= 0){
// you loose
//Button for insert into db appears}
//if (Enemy Hp >= 0){
// you win
//Button for insert into db appears}
//Ajax to insert data into Score table
NOTE: this was a project I worked on for school but sadly couldnt finish this last part. now I want to finish it and publish it on git
// 13 characters available
//the player and enemy character will be take form the URL
//example (layout.php?play=do&player=MAGE&enemy=WARRIOR)
>>already done<<
//each characters has 3 abilities and different stats
//Player chooses an ability
//Random ability will be generated for enemy
//there are 3 types of abilities offensive, defensive, healing
//compare the speed of the characters (faster goes first)
//condition if a heal or tank ability is chosen the speed of that characters gets doubled
//Types of abilities and calculation
//damage = offense *1 (values taken from Json)
//heal = defense /1.5 (values taken from Json)
//tank = armor *1.5 (values taken from Json)
//HP calculation for damage ability
//Result = (Player damage *3) - (Enemy defense + Enemy armor)
//if (Result >= 1000){
//Enemy Hp = Enemy Hp - 999}
//elseif (Result =< 0){
//Enemy Hp = Enemy Hp - 0}
//else{
//Enemy Hp = Enemy Hp - Result}
//HP calculation for heal ability
//if(Player Hp =< Player Max Hp){
//Player Hp = Player Max Hp}
//else{
//Player Hp = Player Hp + heal}
//HP calculation for tank ability
//Player defense = tank
//Player Hp = Player Hp + (Player defense /3)
//if (Player Hp >= 0){
// you loose
//Button for insert into db appears}
//if (Enemy Hp >= 0){
// you win
//Button for insert into db appears}
//Ajax to insert data into Score table
NOTE: this was a project I worked on for school but sadly couldnt finish this last part. now I want to finish it and publish it on git