[beam] hi :D

Posted by beam on Aug. 6, 2008, 7:41 a.m.

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.

Screenshots

Inside a cave

The 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 forest

The 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.

Comments

OL 16 years, 4 months ago

hi beam

beam 16 years, 4 months ago

you're not on irc >:(

s 16 years, 4 months ago

[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 patterns

Grand-High Gamer 16 years, 4 months ago

a beam blog with actual content ^_^

beam 16 years, 4 months ago

forest fixed

also people who don't appreciate beauty in code mystify me

s 16 years, 4 months ago

So does the forest do any basic checks afterwards for stuff like the player being surrounded by trees?

OBELISK 16 years, 4 months ago

I was wondering the same thing.

beam 16 years, 4 months ago

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.

stampede 16 years, 4 months ago

Beam!

Bryan 16 years, 4 months ago

Quote:
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 instantaneousl
I know Lua was slow, but that slow!?

But then again, GM is most likely slower :P