Simple water (using Paster plugin)

2

Attached Files

The following files have been attached to this tutorial:

.capx

water-canvas.capx

Download now 207.22 KB

Stats

5,920 visits, 9,104 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 18 Aug, 2014. Last updated 19 Feb, 2019

Here is a project file with a simple water mechanics I've been prototyping for a client. Eventually we used a bit different approach with our game and I've decided to share it.

The idea was to make a smooth and seamless looking water with easy controls over the waves (how fast they can move and how high they can reach).

Interactive demo

Mechanics are quite simple. It's using Canvas plugin by R0J0hound to draw bezier curves between points (Sprite objects) spread horizontally across the layout. Each Sprite object have sine behavior to control speed and height of the waves.

.CAPX

water-canvas.capx

Download now 207.22 KB
  • 0 Comments

Want to leave a comment? Login or Register an account!