I haven't blogged in a long time :( it's also the first one I ever tagged.
I'm working on another roguelike. This time I'm making it in C, built on top of The Doryen Library, and scripted in Lua. I don't have any specific plans for it yet, so I'm just adding things I think I'll need. I have a lot of boilerplate code, plus support for ini file reading, Lua scripting, and a few different types of level generators. At the moment gameplay consists entirely of walking around on empty maps (with some nice FOV at least).It's called PsionRL because originally I wanted the game to focus on psionics, but now I'm not too sure. I guess I'm just going to let the game evolve as I go.ScreenshotsInside a caveThe cave generator is pretty simple, it's based on cellular automata rules. You can change the way it looks just by changing the rules.Inside a forestThe forest is even simpler. It's just a 10% chance that a tile is a tree.I originally wrote these generators in Lua because of its sheer elegance – you can define functions within functions, which made for some pretty looking algorithms. (Cave generator Lua source)What I found was that once I started making scrollable maps, Lua took 60 seconds (or more) just to make a 60x25 map. Compare the C version, tested with maps 100x100 in size, is done instantaneously.This is no small project, and it won't be done anytime soon. If you want to keep up with the project, you can check it out on its project page.
hi beam
you're not on irc >:(
[quote=People always think it odd how I'll call stuff like code and numbers pretty, but so it is shown that it is them who is odd]pretty looking algorithms[/quote]
Anyways, cave is neat. I like how it makes clumpy clumps. Shame you mislinked the forest, percentage fills always seem to make a couple neat patternsa beam blog with actual content ^_^
forest fixed
also people who don't appreciate beauty in code mystify meSo does the forest do any basic checks afterwards for stuff like the player being surrounded by trees?
I was wondering the same thing.
Why should the forest check? The forest doesn't care how it grows. If some unlucky adventurer teleports himself into that kind of situation, that's his problem. But yeah, I see what you're saying. As of right now it's really a non-issue, because you can walk beneath the trees.
Beam!