Open mspraggs opened 9 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?
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).
Well, it's non-interactive, so yes, pretty much that. Honestly, I don't think it even needs to inherit from object...
If it's just going to be graphics, then yeah, it probably shouldn't inherit from Object.
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.
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.