Giter Club home page Giter Club logo

cities-quiz's Introduction

A simple Cities Quiz

Yo can see this game running in http://citiesquiz.antoniomasia.com/

The game consist in to find different European cities on a mute map.

The player will see a map of Europe without Streets + Cities (Only Country-borders). Its mission is to find the right location to the city name on this map. After placing the needle pin, the game will show you the right location of the city and the difference of your needle pin and the city in kilometres. If it is in around 50km of the city, the selection will be defined as "correct".

Getting Started Getting Started

Instalation

To install this app run npm i from root directory.

Configuration

Yo can change initial game configuration editing config.js file:

module.exports = {
  INITIAL_KM_LEFT: 1500,
  SUCCESSFUL_DISTANCE: 50
};

Yo need config a valid Google API KEY. You must config it changing value YOUR_API_KEY in the index.html app script.

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&region=EU&libraries=geometry"></script>

Start scripts

Command Mode
npm run webpack Execute webpack in dev mode
npm run webpacl-dev Execute webpack in changes observe dev mode
npm run webpack-dev-server Execute webpack with automatic browser reload dev server
npm run webpack-build Execute webpack in production mode

Webpack config support

  • Ejs templates
  • SASS
  • Babel trasnpiler
  • Assets loaders with image optimizations

This game use

Bugs

20180516 | Solved a problem loading maps when used in a terminal with English language.

cities-quiz's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.