开发者

What is a simple way of drawing sprites without OpenGL?

We are developing simple arcade game for android now and we are i开发者_开发问答nterested in adding some visual effects to it. Like disappearing or appearing animation and so on. Is there a simple way to do it without OpenGL for example just using some improvements to ImageView?


You could use the BitmapFactory and Bitmap Class to perform simple manipulations on images. Check out the http://developer.android.com/reference/android/graphics/Bitmap.html for what you can do with this class. It supports simple stuff like reloading, fading out, creating ScaledMaps and manipulating images on the screen on basic level. For some simple instructions and examples see:

  1. http://developer.android.com/guide/topics/graphics/index.html
  2. http://www.anddev.org/resize_and_rotate_image_-_example-t621.html
  3. Chapter 6 in "Android Developers cookbook" : http://www.informit.com/store/product.aspx?isbn=0321741234
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜