cocos2d - how to draw a bottle sprite with dynamically changing water level
- by Oliver
I am trying to draw a (2d) sprite in cocos2d showing a bottle. The bottle shall be able to have a dynamic water level (i.e. the amount of water in the bottle can change over the lifetime of the sprite).
I am wondering how to do this.
I currently have a PNG file of the empty bottle. I adjusted the alpha channel of that PNG so when rendering the…