Skip to content

Latest commit

 

History

History
46 lines (24 loc) · 2.76 KB

README.md

File metadata and controls

46 lines (24 loc) · 2.76 KB

X-Wing VS TIE Fighter

An action-packed space-themed two-player strategy game from a galaxy far, far away- playable right in your browser. Optimized for both dekstop and mobile.

Click here to play!

projectXWingVsTieFighter

How It's Made:

Tech used: HTML, CSS, JavaScript

This was my first full project using HTML, CSS, and JavaScript together. After seeing a simple tic-tac-toe project on Twitter, I decided to give it a shot myself- without the use of any tutorials.

It was important to me to come up with a theme to make the simple, predictable gameplay more entertaining. Presentation is everything, after all! While rewatching A New Hope, it suddenly came to me- X-wings and TIE Fighters looked an awful lot like X's and O's! And so, X-Wing VS TIE Fighter was born.

The JavaScript necessary for a functioning tic-tac-toe board ended up being relatively straightforward. Most of the time spent on this project was spent on the CSS and tracking down and converting media assets, fonts, and sound effects to use for the Star Wars theme. I learned several new CSS techniques- such as utilizing the relationship between an element's width property and it's padding-bottom property to create responsively resizable 1:1 ratio game board squares.

I also learned that you cannot play a JavaScript Audio object over itself, so I built an array of different sound effects for several different game events, moving onto the next Audio object in the array whenever a sound was played, in order to enable overlapping sound effects.

Anyways, give it a try and revel in the fandom!

May the Force be with you!


Other Projects:

Take a look at these other awesome projects from my portfolio:

Magic Task Timer https://github.com/ramblingadam/magic-task-timer

Screenshot of Magic Task Timer

Animal Crossing: New Horizons Database: https://github.com/ramblingadam/acnh

Screenshot of ACNH Database

The Universe Console https://github.com/ramblingadam/nasapod

Screenshot of The Universe Console