public override void Initialize() { Drawable = Drawables.Create <DrawableTexture>(); Drawable.Texture = Scene.ContentLoader.LoadContent <Texture>("content/planet.png"); Size = Drawable.Texture.Size; Position = new Vec2(Game.Random.Next((int)(Scene.Window.Size.X - Size.X)), -Size.Y); EntityData.Speed = 50; }
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>(); }