0
我想縮放CCSprite在CocosSharp任何決議,這是我的本錢:如何在CocosSharp(Android)中將CCSprite縮放爲任何分辨率?
void AddTruck()
{
var spriteSheet = new CCSpriteSheet ("animations/truck.plist");
var animationFrames = spriteSheet.Frames.FindAll ((x) => x.TextureFilename.StartsWith ("frame"));
walkAnim = new CCAnimation (animationFrames, 0.1f);
walkRepeat = new CCRepeatForever (new CCAnimate (walkAnim));
truck = new CCSprite (animationFrames.First()) { Name = "Truck" };
truck.Scale = 0.70f;
AddChild (truck);
}
而且我想,當其添加到現場,它根據設備的分辨率大小。 .. 有小費嗎?
謝謝。