Caching Galore!
So I’ve got it caching properly and loading quickly now. Hooray!
Just need to start enabling DRADIS’ features now.
Tags: cache, local map| Subcribe via RSS
So I’ve got it caching properly and loading quickly now. Hooray!
Just need to start enabling DRADIS’ features now.
Tags: cache, local mapI’ve refined the actual local map generation code but unfortunately the way we’re outputting it doesn’t seem very clean. Sure, it loads faster but it just looks plain messy and I’m worried to hell about future memory leaks.
Tags: 13th colony, local mapSo with a little help from my friend James, I’ve now written a new algorithm for local maps.
It has yet to be implemented but should be way faster and memory effective.
Array
(
[0] => Array
(
[0] => -3
[1] => -2
[2] => -1
[3] => 0
[4] => -1
)
[1] => Array
(
[0] => -3
[1] => -2
[2] => -1
[3] => 0
[4] => -1
)
[2] => Array
(
[0] => -1
[1] => -1
[2] => 1
[3] => 2
[4] => 3
)
[3] => Array
(
[0] => -1
[1] => -1
[2] => 26
[3] => 27
[4] => 28
)
[4] => Array
(
[0] => -1
[1] => -1
[2] => 51
[3] => 52
[4] => 53
)
)
Tags: local map I’ve got movement and exploration working now. I don’t like the memory usage right now but at least I’ve got something in working order.
Blue is unexplored, the space background is explored, the green is where you are, and the yellow outline is where you can go immediately.
So I’m watching a movie staring the Beatles on A Channel. What the hell.
Tags: 13th colony, beatles, exploration, local map