css3, html5

Game development with Board Game Arena Studio
Post Reply
User avatar
garcia1968
Posts: 24
Joined: 03 April 2013, 16:03

css3, html5

Post by garcia1968 »

The game I'm working on uses pieces that can be placed vertically or horizontally. I've got two separate images for vertical and horizontal pieces and know how to do this with existing css with two separate images, but was looking at articles on css3 and 'rotate' images in css3 to be able to do it with only one image.

http://www.developerdrive.com/2012/05/r ... transform/

I'm guessing the conditions needed to advocate using these more advanced css3 and html5 supported features would be some majority of site browsers supporting them.

Thanks
Jeremy
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: css3, html5

Post by sourisdudesert »

Hello,

Indeed for a game I used this:

http://jimfulton.info/demos/dojo-animated-rotate.html

As it is using different properties for each browser it's compatible with all modern browsers. I find it acceptable for BGA, and I think you should use it.

Cheers,
User avatar
garcia1968
Posts: 24
Joined: 03 April 2013, 16:03

Re: css3, html5

Post by garcia1968 »

Cool! Thanks for the tip. I need to remember to start including 'dojo' in my web searches and trying to find some good dojo sites to pull examples from.
Post Reply

Return to “Developers”