public static Actor Block() { Actor block = new Block(1, .2f, Tile.size.X/2, Tile.size.Y/2); return block; }
void ActiveFrame_MouseClick(GUIElement sender, MouseEventArgs e) { var block = new Block(1, e.CurrentMouseState.X, e.CurrentMouseState.Y); ActiveMap.AddGameObject(block); PhysicsManager.AddPolyBody(block.PolyBody); }