Skip to content

angelr1076/MapAttackRemastered

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map Attack Remastered

Play Map Attack

Here's a remastered version of one of my original boot-camp projects named "Map Attack"

Changes made:

  1. Broke functions down into separate pieces (initially this was all one function that fired first-class functions)

  2. Added some logic and fixed singular/plural issues the user sees as interactive feedback

  3. Cleaned up the CSS and added CSS variables

  4. The game is more responsive now after adding Flexbox and CSS Grid

  5. Cleaned up a lot of the HTML element names

  6. Added a .gitignore file to hide Google Maps API key

If you'd like to clone the game, run "git clone https://github.com/angelr1076/MapAttackRemastered.git" in the terminal.

Install Node on your machine, you can do that from the command line or directly from Node. There are plenty of resources out there explaining how to install Node on your machine so I'll save myself some time and space here. The game runs locally on a Node.js server (port 3000).

You'll need to create a config.js file in your root folder with the following variables in order to dynamically insert the Google Maps API key into your header: let head = document.getElementsByTagName("head").item(0); let script = document.createElement("script"); script.setAttribute("type", "text/javascript"); script.setAttribute( "src", "<YOUR GOOGLE MAPS API KEY>" ); head.appendChild(script);

Remember to add your Google Maps API key, otherwise the site will not deploy and the map will not render. If you don't already have an API key, go to Google Maps API key site.

Once you clone the repository and install Node, you can run the game locally on a Node.js server by entering "npm run start" in the terminal.

Game Image

Mobile Image

Tablet Image

About

A remake of my original Map Attack game - NYCDA final project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published