mspraggs / potentia

Southampton Game Jam 2015
0 stars 0 forks source link

Mid-ground #76

Open mspraggs opened 9 years ago

mspraggs commented 9 years ago

The idea here is to have a set of procedurally generated blocks that cannot be interacted with (player can just walk through etc.). They reside in front of the background, and behind the layer the player is on, and serve to provide some pretty visuals.

DivFord commented 8 years ago

I have roughed-out some graphics for the mid-ground, and added them to the repo, but I'm not sure how to approach the implementation.

Obviously they need to tile, and I believe that behavior is now handled by block groups. We don't, however, want any of the hitbox building properties of block groups. I considered adding an extra sprite to "Block", but we don't want the tiling to change as blocks are broken.

Is it better to make a new class from which "BlockGroup" and "MidBlockGroup" can inherit, or just to start "MidBlockGroup" from scratch and copy-paste the tiling code in?

Fyll commented 8 years ago

I suppose the important question is, how many things would you want them to share? If it's pretty much just that, I'd say it's probably better to just copy and paste it (it's not too long).

DivFord commented 8 years ago

Well, it's non-interactive, so yes, pretty much that. Honestly, I don't think it even needs to inherit from object...

Fyll commented 8 years ago

If it's just going to be graphics, then yeah, it probably shouldn't inherit from Object.

mspraggs commented 8 years ago

If you need to reuse any functionality from Block or whatever, consider putting that functionality in a function so that two copies of that code don't need to be maintained separately.