Skip to content

ramblingadam/tic-tac-starwars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

X-wing Vs TIE Fighter: An exciting, galactic take on a timeless classic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published