Salmiakki and D&D. Noms.

Also: my Mountain Dwarf is in plate armour on a boat. What could possibly go wrong?

So I have a problem with the way I'm rendering my display that I need to think around (see attached quick view).

That cell is adjacent to the current cell (relative position is [-1, 1]). That means its relative angle is 45 degrees. Makes perfect sense, but it also screws up my display as I'd want an angle of 5 degrees to intersect a cell that is adjacent to the current cell.

The maths is right, but it means the first cell at a relative angle of 5 degrees is 8 cells away. Hmm.

Finished the first pass at scope/tactical view. It needs more work, but it'll do for now. It also seems to bug out and hang when I change depth. I'll work on it more tomorrow.

You have no fucking idea how happy this makes me. Knowing my (player's) left/port from their right/starboard.

My one bit of this week. Calculating distances for cells so I can finally finish rendering that console on the top-right. πŸ˜†

I'm getting somewhere playing with ideas for my submarine . So here's an animation of a sub with a bearing (initially 90 degrees) and an independent periscope bearing (initially 0 degrees relative) moving its scope and then moving itself and then moving its scope after moving itself. No collision detection yet.

The goal will be to render the tactical "forward view" relative to scope bearing. I'm not quite SURE why yet, but it feels like a good design direction.

Been fiddling with FOV and how I'm going to use it to render the console top-right (which is a "forward view") in a way that is meaningful to the player and has a tangible game effect.

I've got the calculations done (finally!), I just need to decide how the green-yellow area on the main map will translate to the tactical console and whether to keep it a circle/cylinder or change to a square/rectangle.

Latest personal screenie. I'm fiddling with FOV in the sense (lolz...) of pings/sonar.

I *think* I might be able to use the GoRogue library to solve some of the maths that I've been putting off as well. This is good. πŸ˜„

More . Getting somewhere with colours now and have spent the morning absolutely wrangling with the code to put the little white outline that shows where you're moving to, onto the map. I'm also having to do some gnarly maths with viewports and relative positions and it's not pretty.

And it has rounding errors I need to fix.

And the overlay console blocks mouse events. So I need to fix that, too.

Hey! At least I have multiple world entities rendering now (the green dot). πŸ˜‚

A bit more work on my game map. Randomly adding a lighter colour to certain water cells gives points of reference when moving (though the colours need a bit of work I think).

Our DM has been up to his usual tricks building dioramas for us. We're spoilt players. The levels lift off so we can move our minis around inside. 😍

As a reference, this is a blown-up copy of the slice of the heightmap that I used (with light levels slightly increased so it's at least vaguely visible).

Okay, well that worked WAY better than I expected. Only took me about half an hour to convert a (slice of a) heightmap into a depth-map (a linked-list of 2D arrays, each containing "walkable" water or rock).

Looks much improved over my spikey, organically-grown maps and also means (and this is going to be incredibly useful) I can pre-generate massive maps (e.g. 32K on a side) and load regions in chunks.

Pretty chuffed at that. πŸ˜€

Fixed my renderer (it wasn't broken, one column of cells wasn't rendering because it was out of the bounds of the map array...)

I've gone back to ASCII as well and I much prefer it. I need to fiddle a little with the colour-coding but it looks like a traditional roguelike.

I'm going to play around with heightmaps next, rather than my cellular automata mapgen.

I wonder how long it took Braben and Bell to iterate the design of the Elite radar back in 84, to display objects in 3D space?

Says the guy wrangling with FOV for a 3D space in a 2D game.

Does the attached screen top-right make intuitive sense to you? No, didn't think so.

Hint: heading is shown on the left and is 90 degrees. The coloured boxes in the targeting console are for the current plane/depth, cell density/colour indicates distance to solid rock.

Playing with rudimentary physics. Still not quite sure how this is going to translate into a 2D and somewhat regretting dropping Physics after Year 9. πŸ˜† (at least I have an eldest doing Maths, Physics + CompSci for his 'A' Levels - I help him with his API calls, he reminds me about A = (F / M)).

Finished my first pass at "eroding rock" as depth decreases. Black areas are impassible rock, which erodes the shallower the depth gets (which isn't how it necessarily works in the real world). Part-shaded cells show areas of water with rock between one and three layers beneath the current depth layer.

Not bad for a guy who went to bed at 9pm. It's 6am now...

Third night in a row.

Not ideal.

Show more
Mental Health dot Social

A safe, social, virtual space for anyone interested in mental health and its issues. Whether you're a service user, someone with lived or living experience or a mental health professional, feel free to join, hang out and chat about anything.

Non-judgemental, open-minded and with a zero-tolerance policy on abusive behaviour, harassment and discrimination.

If you are experiencing a suicidal crisis, please call one of the numbers below and talk to someone - they will be able to help.