Commit graph

19 commits

Author SHA1 Message Date
4b715bdff3 Move to OpenSimplex noise
Apart from other benefits, this produces much nicer direction agnostic noise
2020-07-08 23:58:11 +01:00
7b4541716a Add gravel tiles 2020-07-08 23:45:52 +01:00
ed9ecef80a Add perlin based generation for the terrain tiles 2020-07-08 23:38:08 +01:00
10959ef726 Refactor populate to be an Atlas function
This simplifies usage greatly
2020-07-08 19:40:15 +01:00
089f5e5337 Fix chunk empty chunk population in QueryPosition 2020-07-07 22:57:55 +01:00
d9e97ea468 Add some additional logging to requests and world resizes 2020-07-07 22:47:34 +01:00
75910efbe5 Apply all golangci-lint fixes 2020-07-06 18:04:10 +01:00
8b83672dcc Fix Atlas gen with simplification
Only track lower and upper bounds in world space, and speak in terms of world space and chunks
2020-07-04 22:34:28 +01:00
9cd5324465 Fix small and large rock spawning 2020-07-03 17:13:52 +01:00
062f9cfec8 Split Atlas chunks into tiles and objects 2020-07-03 17:00:04 +01:00
b5707ab71c Fix all go vet issues 2020-07-01 00:01:20 +01:00
e5ee0eaece Rename a couple of Atlas variables
Sometimes names can be too long
2020-06-28 11:01:01 +01:00
9bb91920c9 Make Atlas grow in X and Y dimensions independently
Fixes exponential growth
2020-06-28 00:18:39 +01:00
b116cdf291 Convert Atlas to infinite lazy growth
The atlas will now expand as needed for any query, but only initialise the chunk tile memory when requested

	While this may still be a pre-mature optimisation, it does simplify some code and ensures that our memory footprint stays small, for the most part
2020-06-27 14:48:21 +01:00
2846ed796e Refactor tiles to objects to be re-used 2020-06-26 19:45:24 +01:00
93b99b7989 Fix tests after rover change 2020-06-25 23:51:31 +01:00
5c12fabb63 Refactor so Rover's aren't in the atlas 2020-06-25 23:27:07 +01:00
7ababb79f6 Migrate to gRPC rather than REST with swagger
Will also be adding in a RESTful endpoint to the server as well so it can consume both types
2020-06-12 22:51:18 +01:00
faaa556ad0 Move the Atlas code into it's own package 2020-06-11 20:42:59 +01:00
Renamed from pkg/game/atlas.go (Browse further)