Skip to content

Virian/sacred-interactive-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sacred Interactive Map

The map can viewed at https://sacredmap.netlify.app/

Development notes

Map dimensions are 50944x25600px (199x100 tiles). Each tile has a size of 256x256px.

Coefficients for the function to translate map coords to game coords were calculated assuming 4 corners of the map:

25608,0 = 0,0
0,12672 = 0,6400
51216,12672 = 6400,0
25608,25344 = 6400,6400

Environment variables

Name Default value Description
REACT_APP_SHOULD_DRAW_TILE_EDGES false Draws borders around rendered tiles, resulting in grid-like view.
REACT_APP_SHOULD_DRAW_COORDS false Draws coords near the cursor.
REACT_APP_SHOULD_USE_GAME_COORDS false When true, displayed coords near the cursor are in-game coords. When false, displayed coords are map coords. This only has an effect when REACT_APP_SHOULD_DRAW_COORDS is set to true.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published