From this chapter, I will introduce map engine, it refer to 2 aspects, as follows: 1) Implementation the map. Including map’s splitting, composing and rendering style. 2) Implementation the obje... Read More
posted @ 2010-02-26 22:56 包建强 Views(2388) Comments(2) Diggs(1) Edit
In the last 6 chapters, we cover many techniques, including the object moving from one place to another one, and the sprite’s own animation. This chapter I will merge both of them, to implement ... Read More
posted @ 2010-02-26 17:36 包建强 Views(2302) Comments(0) Diggs(0) Edit
The story occurs in AD 3000. Bill Gates left Microsoft and IT forever,which brings chaos to the whole world. You must gather 7witches from the largest 7 IT companies,when all these 7witches castspell ... Read More
posted @ 2010-02-26 02:30 包建强 Views(1245) Comments(0) Diggs(0) Edit
In Chapter 5, We study how to use Image’s Clip and RenderTransform to create animation for sprite. Now, I will introduce a new method base on WriteableBitmap to cut the image. You can use it as follows:BitmapImage bitmap = newBitmapImage(newUri(@"/Images/Role/sprite.png", UriKind.Relative)); Imagei Read More
posted @ 2010-02-26 00:48 包建强 Views(2263) Comments(0) Diggs(0) Edit
Another method to implement the sprite’s 2D animation is called Image Clipped. Let’s join all the 8 small pictures in to one large picture, the new dimension is 1200*150, as follows: From... Read More
posted @ 2010-02-26 00:38 包建强 Views(2963) Comments(1) Diggs(0) Edit