Hi, I’m creating a side scrolling game that requires procedurally created terrain and was wondering if anyone had any experience or suggestions as to the best way to implement this? I don’t need help regarding the actual algorithm, just how to integrate it with FlashPunk. I’m currently thinking periodically creating/recycling chunks of BitmapData to generate a mask for the terrain and scrolling the chunks. I am concerned how long it will take to repopulate a BitmapData object even if I’m recycling and not instantiating new objects. I guess a more performance-centric option would me to pre-generate a pool of shapes I could use at the expense of higher ram usage. Does anyone have their own recommendations or comments on either of the two solutions above?
Cheers Jim