phamedev Posted November 1, 2017 Share Posted November 1, 2017 I used to use quad objects in Starling framework where you could move vertices of a quad rectangle and set their colors and alphas. I searched for the same functionality in Phaser but apparently it's available in Phaser 3: https://phaser.io/phaser3/api/quad Can anything like that be done using Phaser 2? Link to comment Share on other sites More sharing options...
gauravD Posted November 6, 2017 Share Posted November 6, 2017 Shameless plug: https://gaurav-dixitv.github.io/phaser/2017/06/08/phaser-shaders.html should help you use your own quads. But I am guessing this would be an overkill. What do you want to achieve? Link to comment Share on other sites More sharing options...
phamedev Posted November 6, 2017 Author Share Posted November 6, 2017 A simple terrain made of quads. something like this: Link to comment Share on other sites More sharing options...
gauravD Posted November 6, 2017 Share Posted November 6, 2017 Ha! https://gaurav-dixitv.github.io/phaser/2017/07/27/texture-repeat.html There you go. This shows you how to do exactly that (except you can ignore the texture code if you want to). Link to comment Share on other sites More sharing options...
Recommended Posts