Jump to content

[Phaser] Isometric animated water I've been working on


ForgeableSum
 Share

Recommended Posts

https://youtu.be/1LDKRRnbAwo

 

This is for my upcoming browser-based RTS game "Feudal Wars." Website: feudalwars.net. Subscribe for dev updates here

 

The actual water animation was a sinch with masks and Phaser tilesprites. Writing the code for placing the beaches was a real bitch though. I'll write a detailed tutorial on my dev blog if anyone is interested. 

Link to comment
Share on other sites

Brilliant write-up. I love it. Very clever solution - I had no idea that such an effect could be achieved just by having overlapping tilesprites scrolling in opposite directions. Just to clarify... the entire map is a single giant tilesprite and the ground tiles are simply covering it up?

Link to comment
Share on other sites

Yup, a single giant tilesprite (or rather, two overlapping). The water is actually on top of the ground layer, invisible until portions become visible by adding masks. 

 

I actually had a very complicated system which would add tilesprites to small sections of the map that needed them. But I discovered 5-10 small tilesprites is worse on performance than 1 that covers the whole map. Plus with multiple tilesprites, you have to time the scrolling right so there isn't a seem between the tilesprites. So yeah, one big one was the way to go even for maps that are as big as 10K x 10K. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...