Reputation: 4809
For a browsergame I would like to make around ten different gif layers with animating things on it. Which of the ten layers I display depends on the city points. In Flash games like Die Siedler Online I see many animated things but I dont see that in PHP text based browsergames like TribalWars. Why not? Does that require much bandwith or does it load very slow...?
I have another question about the gif animations. Should I make a large layer with transparent backgrond and with 20 animated things on it or should I make 20 different gif animations like TribalWars?
Thanks!
Upvotes: 0
Views: 553
Reputation: 4084
Don't use GIFs, they're basically deprecated. You can create several different images and just animate one layer of it using various javascript libraries.
Take a look at this - http://sixrevisions.com/javascript/10-impressive-javascript-animation-frameworks/ It should help with exactly what you need. You can also use librarys such as MooTools and jQuery for the animation.
Another one I'd recommend you look at is RaphaelJS. It may be a bit too extensive for what you need but allows for advanced animations which are vector based, using the HTML canvas.
Furthermore, you could also look into such libraries as ThreeJS, which allows you to use WebGL to make 3D games, however this is probably too much for what you need.
Good luck with your project
Upvotes: 1
Reputation: 50982
Upvotes: 1
Reputation: 3904
PHP is a server side scripting language. It has nothing todo with the layout. With jQuery (sort of advanced JavaScript) you could create dynamic layouts (like used in games).
Upvotes: 0