开发者

Large Gif animation

For a browsergame I would like to make around ten different gif layers with animating thi开发者_Python百科ngs 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!


  • Gif is small but big when animated, and it takes a lot of bandwidth
  • Why would you want to use animated gifs when you can use javascript? (jQuery)
  • About your last question, go for first one. It takes less resources from your server and it's smaller than 20 files of same type.


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


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜