Ezelia / EZGUI

EZGUI - The missing GUI for Pixi.js and Phaser.io
http://ezgui.ezelia.com
440 stars 95 forks source link

Allow tilable backgrounds in both directions #41

Closed hiker-who-codes closed 8 years ago

hiker-who-codes commented 8 years ago

Allows you to set the tiling direction to both directions.

52d243067e54308fbcdf177387dd2044

This way, you can set a single image as your background image, which may come in useful for games. In your JSON, the bgTiling property now accepts x, y and xy. Where xy removes the tiling completely. Play around with the bgPadding property to achieve the result from the image.

hiker-who-codes commented 8 years ago

I have made the changes to GUISprite.ts. I'm still not a Git wizard, maybe you can remove the first commit containing EZGUI.js @alaa-eddine ?