Commit graph

14 commits

Author SHA1 Message Date
8cd7b06c0c Privatise Atlas functions that should only be internal 2020-06-11 20:34:30 +01:00
2f5863b17a Use log instead of fmt for logging
Also fix up a few errors to lower case
2020-06-11 19:04:53 +01:00
14c4e61660 Fix up gocritic issues 2020-06-10 12:34:04 +01:00
51fe918090 Split out maths functions into maths, vector and bearing 2020-06-09 18:08:07 +01:00
43588c0e4b Fix world spawning and radar
Also expand test coverage a little to ensure it's correct
2020-06-08 23:32:52 +01:00
b0e076ac1a Refactor radar to return a full set of the tiles within rover range 2020-06-08 18:14:24 +01:00
de0ccbaa6e Fix the random rock spawns 2020-06-07 23:05:36 +01:00
e82fb3dbfe Pepper the world with rocks 2020-06-07 22:36:11 +01:00
43648926ca Large refactor to properly implement radar
/radar now returns a set of non-empty tile blips
2020-06-07 22:30:03 +01:00
3781a4d10d Spawn a border around the world atlas for now
Also spawn the rover within a single chunk in the middle
2020-06-07 18:57:44 +01:00
cb725c96d2 Rename Kind -> Tile 2020-06-07 18:38:46 +01:00
289bab2a7a Refactor atlas creation and growth
Pass in the real size and grow itself rather than return a new one
2020-06-07 18:36:00 +01:00
aa4df38ead Swap kind to bytes and reduce chunk size 2020-06-07 18:21:44 +01:00
ceca4eb7fa Refactor the Tile to a full Atlas
This atlas is a set of chunks and supports resizing
2020-06-07 18:08:34 +01:00