Landscape?

Landscape?

This game is from ldjam.com, which is currently unavailable.
You can try viewing the original page on Web Archive (may not load correctly).
A solo game, if I can even call it that.

In Ludim Dare 45 I completely failed to find the submission mechanism to submit the finished product. I don't know what happened or why. I hope to hav figured this out by the time I have t submit this Dare's project.

Not that it mattered last time; that project never worked. ( https://github.com/hendrikboom3/LudumDare45 )

So this time I may be working further on that Ludum Dare 45 attempt, which failed by my inability to eliminate a pernicious bug.

No, I haven't found and fixed it yet. Somehow when I built a grid of triangles representing landscape, I managed to make the entire grid look correct even though the individual triangles were oriented wrong, so nothing lined up. At least, that's what I think i did wrong. Won't know until I find and fix it.

Nope, that wasn't the problem, which I still haven't found. Everything lines up perfectly. So something *else* is messing up my rivers.

Then I plan to use this landscape in some kind of game. No idea what kind of game. I'll wait until I see the theme and it inspires me.

Or maybe it'll inspire me to do something completely different.

-- hendrik

That was when I started this session. It's now a day later.

That was (at least) a two-day bug. The problem turned out to be a wrong transformation between the array indexes in the large-triangle array and the small-triangle array. Everything displayed correctly because the screen coordinates of all the triagngles was still being calculated correctly.

My attempts to do math to find the transformation were all unsuccessful, n the end, I had to do it by drawing everything on a sheet of paper, with both sets of coordinates, and then use trial and error on the formulas in the code, knowing that they yad to be linear.

While I was working on this, I refactored a fair amount of similar code, to avoid the possibility that in different (not-quite) copies of some tricky ode I accidentally had errors in a few of the copies. That turned out not to be the case, but the code did become more elegant as a result. Not necessarily clearer, though.

-- hendrik Sun Apr 19 11:20:42 EDT 2020

It's not a game yet. But it will generate a landscape. A new one every time you open the game.html file. You'll see a lumpy island painted in clownish colours, and sone rivers. A new set of rivers every time.

I spent ages tracking down an obscure bug and I'm exhausted, I plan to go on working on this, but that will be another time. I no longer have the energy to give it a height map, implement walking around, or to plant cherry trees.

In the meantime, you're welcome to play with the source code, or write me about it, perhaps on the github issues or by email.

game: http://topoi.pooq.com/hendrik/ld46/game.html
source code repository: https://github.com/hendrikboom3/LudumDare46

-- [email protected]
Found a bug?
Tell us on Discord