观察到一个严重的Cocos2D字体相关问题
请看这张图片:
在上图中,字体渲染不正确。我用的是CCLabelBMFont。我该如何解决这个问题?
密码
CCLabelBMFont *userName = [CCLabelBMFont labelWithString:PlayerNameStr fntFile:@"MyFont.fnt"];
观察到一个严重的Cocos2D字体相关问题
请看这张图片:
在上图中,字体渲染不正确。我用的是CCLabelBMFont。我该如何解决这个问题?
密码
CCLabelBMFont *userName = [CCLabelBMFont labelWithString:PlayerNameStr fntFile:@"MyFont.fnt"];
你需要在字形之间留出更多的空间。您可以在位图字体编辑器中更改此设置,Glyph Designer和Hiero都有。在Glyph Designer中,该设置称为间距,设置为2。我猜你使用的是Hiero,默认情况下,它的间距设置为0。
everyone, I made a shooting game just like 1942(classic shooting game),but here s the question, FPS drops to 5~6 when the fighter shoot out a straight line of bullet,about 7~8 bullets in the screen,...
I am using AtlasSpriteManager and AltasSprite to create frame by fram animation with 1 one file. I wanna write something that at first show a simple picture, without any animation and for example when ...
I have 4 images and a background. I already about to animate the image to move accordingly. But the back ground is not moving. I am not sure how to make the background move accordingly to the movement ...
@implementation Level @synthesize doors, rooms; - (id) init { self = [super init]; if (self != nil) { rooms = [[NSMutableArray alloc] init]; doors = [[NSMutableArray alloc] init]; ...
I need to create some compound sprites that will all move and rotate together. Since it s possible to change the position and rotation of an AtlasSpriteManager I ve been trying to subclass so I can ...
I am really stuck on this. My application is in landscape view and on one screen i wanted my instructions image to be scrollable. I have added this image as a sprite. First i tried to get scroll ...
I m making slow but steady progress with a Cocos2d game, but I m stuck creating moving platforms. The main character needs physics and collision detection, and is therefore a chipmunk shape/body. I ...
I m working on a game like Rodents Revenge, just to point out where I m coming from with this question. I m using the cocos2d game engine aswell... I have a layer that contains about 168 blocks, ...