[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

Polystyrene Man 16 years, 3 months ago

Hey there!

Arcalyth 16 years, 3 months ago

mmm delicious nethack

JW 16 years, 3 months ago

I wanted to say hi beam. ):

VigilantPsyche 16 years, 3 months ago

hi :D

beam 16 years, 3 months ago

Quote: Bryan

I know Lua was slow, but that slow!?

Lua is actually pretty fast, when you're not rebuilding a couple tables tens/hundreds of thousands of times with a function inside a function.

also hi everybody

Acid 16 years, 3 months ago

Hi, beam!

SixWinged 16 years, 3 months ago

It's beam. :3

Broxter 16 years, 3 months ago

OMFG! IT'S BEAM! HI BEAM!!!

beam 16 years, 3 months ago

shut up

also ghg stop commenting on my fucking blog

Baltirow 16 years, 3 months ago

I remember making a shadowcasting script in GM once using outward spiralling and it got slow at a 15x15 view. Maybe my current comp doesn't have issues with it anymore, but it's the idea that matters :P

Also: hi beam + you can always de-tag your post, right ;)