· HP – Health
· MHP – Max health
· ATK – Attack bonus
· DEF – Defense bonus
· X – X coordinate (on the grid not the pixel value)
· Y – Y coordinate (on the grid not the pixel value)
· PIC – The variable pointing to the html image for the appropriate character.
Both the player and the monster will be rendered by images, they will also have a health bar next to them. (You pick the orientation). The images will be rendered on the appropriate grid based on the X and Y value. Since both the hero and the monster use the same render function you may want to use inheritance. For combat you will follow the equation: Damage = ([login to view URL] or 1 whichever is higher)*random number 1-6. Again this could be implemented in a parent class. You will have three monsters with varying difficulty and one hero. I will let you decide what the attributes should be. The game should be challenging but not impossible. Submit a zipped folder with all your files inside it. The tree and the rock/wall will be rendered through the 2D context draw functions.
9 freelancers are bidding on average $140 for this job