예제 #1
0
파일: PlanetScene.cs 프로젝트: Udrian/typeo
        public override void Initialize()
        {
            LoadedFont          = ContentLoader.LoadContent <Font>("content/Awesome.ttf");
            LoadedFont.FontSize = 48;

            Player           = Entities.Create <PlayerGround>();
            PlanetSpawnLogic = Logics.Create <PlanetSpawnLogic>();
        }
예제 #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>();
        }