https://github.com/ajthinking/terracraft
https://github.com/ajthinking/terracraft
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ajthinking/terracraft
- Owner: ajthinking
- Created: 2017-11-14T15:49:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T23:56:43.000Z (about 7 years ago)
- Last Synced: 2025-02-11T10:47:23.439Z (over 1 year ago)
- Language: PHP
- Size: 1.19 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TerraCraft

## Development installation
```
git clone git@github.com:ajthinking/terracraft.git
cd terracraft
cp .env.example .env
# set your database
composer install
php artisan key:generate
php artisan migrate:fresh --seed
npm install
npm run dev
valet secure # https required for gps
```
## Thesaurus
| Name | Meaning |
| ------------- |------|
| d | distance in meters between tile centers |
| offset | How much to offset the center point to create the feeling of a random world. 0-1 |
| padding | ? |
| dLng | at latitude lat, 1 meter equals dLng degrees |
| dLat | 1 meter always equals 1/111111 latitude degrees (approximately) |
| X, Y | Projected tile coordinates starting at lat,lng = 0,0 with a spacing of d meters|
| vX, vLat, ... | Virtual coordinates - after the offset this are the result the user will actually see|