Wednesday, March 19, 2014

Fast but not perfect lighting

It's been a looong time since the last post, it's sort of a shame. But I've been so occupied with the lighting algorithm. There's not many articles online on how to code cell-based lighting. I've had unworking solutions, almost perfect but slow solutions, and now I have an algorithm that's fast and almost perfect. Almost :\. It's especially fast on PC and playable on Android.
Lighting code is a bit nasty, but after I clean it up and other stuff maybe I'll release it asking for a better solution.

Wednesday, February 26, 2014

background layer building

It's been a while. I've sort of finished the ability to build walls in the background.
pic is zoomed out.

Thursday, February 13, 2014

Small stuff

I've done a few small things, including:
Basic lighting for entities. You can see the crates get darker as they're farther from the light source.
Basic grid (snapping) for entity placement. The transparent block is what's being placed (cursor removed from snapshot).

Monday, February 10, 2014

More stuff

Added more stuff to build with as tests; not very pretty, but it's something.
Lighting still has issues as can be seen here.
I'd like to add tools/options to make building easier, such as:

  1. Make position adjustments
  2. Rotate
  3. Align with different objects
  4. Align with terrain
  5. Snap to grid

Sunday, February 2, 2014

Earthformer player animation and torches

There's still some bugs in lighting and I think I'm starting to get lazier in code organization which really worries me.

Sunday, January 26, 2014

Boxes

Added boxes as an option in the toolbar.

Background terrain

Previously it was like this:
Okay, pretend that there isn't a bar at the bottom.
But now it's like this:
Now there's more of an underground feel to it, which is nice.