Jonny Shaw Posted December 1, 2017 Share Posted December 1, 2017 Hi all Im working on a new slot prototype and had a bit of a thought about creating reelstrips to use for different animations, and just wanting a little advice on best approach. Because I've had problems caching the spines as bitmaps for the reel drops had a different idea to it. At the moment I'm using spines for the icons, what I would like to do is have a function that generates a random strip (of any length passed of the icons - add the landing icons to the end of the strip - positioned the same as they would be in the reels, cache it as a bitmap and destroy the icons - then use the animated strip for the animation. Thought to have the animated icons static and hidden in the reels. Instead of animating them on the reel drops use the generated reel strips if that makes sense? This way I can make a robust spin function that can work at different speeds loops etc? Reason I would rather do it in game rather than manually via photoshop is I can reuse it for different icons, games can tweak and the strips would update to match? Presume filters would run better as well with this approach rather than directly on spines? To reuse presuming I would have to save out as a png using canvas to image - or would this idea be way too much overhead? Also would the pngs then need to be readded to the pixi loader or would they be already accessible somewhere? It wouldnt be run during the game, only at startup behind the scenes I think. Just starting out with it now, so any advice greatly appreciated! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.