How to cull liquids

Posted by Cyral on Game Development See other posts from Game Development or by Cyral
Published on 2012-06-24T02:39:27Z Indexed on 2012/06/24 3:25 UTC
Read the original article Hit count: 298

Filed under:
|
|
|
|

I use culling on my Tiles in my 2D Tile Based Platformer, so only ones needed are drawn on screen. Thats easy to do.

However, My Liquid tiles (Water, lava, etc) require an Update Method aswell as the normal Draw, which does checks against tiles, makes it flow, etc.

So how should I cull liquid updates in my game? Not culling is to slow, culling only on screen looks awkward when you move.

What do you think would be best for the player? Maybe someway of culling the visible tiles PLUS also adding the width/height of the viewport to start culling tiles at a fast enough rate in front of the player so it dosent look awkward when moving? (Not sure how to do this though, something with MaxSpeed of player and width of screen)

© Game Development or respective owner

Related posts about 2d

Related posts about tiles