public static GameSprite Create(GameObject.Category cate, GameSprite.Name name, float x, float y, Image.Name imgName) { Image img = ImageManager.getInstance().FindImageByName(imgName); Debug.Assert(img != null); float w; float h; // For missile and bomb, we don't need a square if (cate == GameObject.Category.Missile) { w = 2.5f; h = 10.0f; } else if (cate == GameObject.Category.Bomb) { w = 5f; h = 20f; } else if (cate == GameObject.Category.Wall) { w = 896f; h = 1f; } else { w = 50f; h = 50f; } return(pGameSpriteManager.AddGameSprite(cate, name, 0f, 1.0f, 1.0f, x, y, img, 400f, 500f, w, h)); }