Role Playing Game
Overview
A javascript game that with every click, it generates a random damage for the opponent till one of them wins.
Technologies
Html, CSS, Javascript
Year
2022
Generate opponents
Using Object.assign function, I was able to generate hero and opponents' html via template strings, and replace opponents with an if function, the width of the indicative health bar also changes with the health level, for better user experience, there is a second delay between changing opponents.
Takeaways
This project challenged my javascript skills with some advanced methods, but I was able to make sense of smaller pieces of the problem and have a chain of logic to help make this app functional and user friendly.
More Projects

React Movie App

Personal Portfolio
Get In Touch
Like what you see? I would love to get in touch with you!