mspraggs / potentia

Southampton Game Jam 2015
0 stars 0 forks source link

Bigger Sprites #44

Closed DivFord closed 9 years ago

DivFord commented 9 years ago

Is it possible for a prop to have a sprite larger than 64x64?

Specifically, I'd like to double the height of the gate sprite so that it overlaps above and below.

Fyll commented 9 years ago

As in, 32 above, 64 in the middle, and 32 below? That'd be very fiddly. The larger sprite wouldn't be too bad, but trying to position it half a tile higher would just be awkward. Are you sure it's necessary?

DivFord commented 9 years ago

No, it's just aesthetic.

What about a 64x192 sprite, so it would be an entire tile of overlap. Would that be more achievable?

Fyll commented 9 years ago

Yes, but it would have to be positioned in the top corner. The Props would then need a height int, which would be 1 normally, but 3 for this. Then, when the sprite is created, dim would have to be multiplied by Vector(0.0f, float(height)).

The troubling thing is that the tile that actually contained the gate would be the top one. I could probably work around this if you want, but it might be a bit long to dictate.

DivFord commented 9 years ago

What about the offset property in Sprite. Do you even use that at the moment?

Fyll commented 9 years ago

Huh. I forgot I put that in PropList already. The height int will still need to be implemented, but that'll simplify things a lot. Go for it then. I'm curious to see this new gate.

DivFord commented 9 years ago

You may have to wait. I'm working on the death screen at the moment.

Fyll commented 9 years ago

Okay. Either way, I've set up the height in PropList and Prop, so it should be all ready for you to have the sprite be whatever height you want.

DivFord commented 9 years ago

Awesome. Issue resolved.