Attack Of The CSS
Star Wars: Duels Of The Masters is my first project involving JavaScript Objects. Each character has its own set of attributes, images, and SFX files. The original project guidelines required a single attack button which the user would press until the opponent is defeated; I decided that wasn’t much fun and included exponential character growth, defense stats, and health packs.
After an introduction to sound effects in the last project, I included many custom SFX interactions for Duels. Each character has their own unique voiceovers, as well as unique lightsaber on & off sounds. In addition, certain characters deliver different lines depending on who they are fighting; for example, Luke has a special line when he defeats Obi-Wan, and Vader has a special line if you use a health pack against him.
I’m quite proud of how this project came out, especially since I had only been working with JavaScript for 4 weeks when this was completed!
Play it here: https://stevesonoa.github.io/week-4-game/