Coder Social home page Coder Social logo

xristoforos / pine-interactive-map Goto Github PK

View Code? Open in Web Editor NEW

This project forked from istador/pine-interactive-map

0.0 0.0 0.0 118.54 MB

Interactive Map for the video game Pine. Showing all collectibles, resources and more that can be found in the game.

Home Page: https://pine.blackpinguin.de/

License: Mozilla Public License 2.0

Shell 0.18% JavaScript 84.86% HTML 1.60% SCSS 13.36%

pine-interactive-map's Introduction

Pine Interactive Map

This project aims to provide a usable interactive map for the video game Pine by Twirlbound.

If you're just looking for the Pine map, it's hosted here:

https://pine.blackpinguin.de/

Where's the user data stored?

The user data consists of:

  • entries marked as completed
  • selected layers
  • selected language
  • selected styling for completed and unchecked entries
  • selected version (Version 1.0, Beta 2, Beta 1)

It's saved in the browser's localStorage and never leaves the user's computer. It isn't stored on any server or transmitted over the internet. It might be tempting to know what people use the map for, but that'd hurt performance, overcomplicate things, and would likely not be GDPR compliant without a formal consent (annoying cookie popup).

Keeping a backup of the data is the responsibility of the user. Depending on the settings of the browser, it might be necessary to allow the website to save cookies (it doesn't send any cookies), in order of it not throwing away the localStorage after the current browser session.

Reset all data

If you wish to reset all of the user data saved, just type the following into the console opened for the map (F12):

localStorage.clear()

How to link to the map?

The map has 6 parameters, that can be given to the hash portion of the URL (meaning that they aren't send to the server, but are only evaluated by the browser):

  • id: integer, map-internal ID for every entry on the map. Permalinks can be found in the popups.
  • area: integer, map-internal ID for every area of the game. Permalinks can be found in the popups.
  • x and z: float, in-game coordinates that the map shall highlight (draws a circle around).
  • layers: comma separated string of layers that should be pre-selected. Examples:
  • zoom: integer, from 0 (far away) to 5 (near).

Most of them can be combined, but id, area and x with z cancel each other out. Example: https://pine.blackpinguin.de/#id=42&layers=&zoom=3

Set up the project for local development

# fetch this repository
git  clone  --single-branch  -b public  https://github.com/Istador/pine-interactive-map.git
cd  ./pine-interactive-map/

# set up the `tiles` and `img` submodule directories
git  submodule  update  --init

# create .env file
cp  .env.example  .env

# install dependencies
npm  install

# build the application
npm  run  build

pine-interactive-map's People

Contributors

istador avatar dependabot[bot] avatar angelisium avatar shadowoffice 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.