Beispiel #1
0
        public override void Initialize()
        {
            LoadedFont          = ContentLoader.LoadContent <Font>("content/Awesome.ttf");
            LoadedFont.FontSize = 48;

            Player           = Entities.Create <PlayerGround>();
            PlanetSpawnLogic = Logics.Create <PlanetSpawnLogic>();
        }
Beispiel #2
0
        public override void Initialize()
        {
            LoadedFont          = ContentLoader.LoadContent <Font>("content/Awesome.ttf");
            LoadedFont.FontSize = 48;

            DrawableScore          = Drawables.Create <DrawableFont>();
            DrawableScore.Font     = LoadedFont;
            DrawableScore.Position = new Vec2(15, 15);
            DrawableScore.Color    = Color.Green;

            Entities.Create <Space>();

            Player = Entities.Create <Player>();

            SpaceSpawnLogic = Logics.Create <SpaceSpawnLogic>();
        }