// TODO: asset ids instead of SpriteFont and Model references public int SpawnPlayer(string name) { var player = Spawn(); Transformations[player] = new Transformation(); Primitives[player] = new Primitive() { Geometry = Cannonball.Engine.Procedural.Objects.Primitives.Cube }; Players[player] = new Player() { Name = name, Font = Game.Content.Load<SpriteFont>("Fonts/DebugFont") }; PlayerControls[player] = new PlayerControl() { Controllable = true }; return player; }
public int SpawnEnemy() { var enemy = Spawn(); Transformations[enemy] = new Transformation(); Primitives[enemy] = new Primitive() { Geometry = Cannonball.Engine.Procedural.Objects.Primitives.Cube }; return enemy; }