protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); if (CurrentLevelName != "") CurrentLevel = new Level(Content, this, CurrentLevelName, System.IO.Path.Combine(Application.StartupPath, "Data"), PlayerStrings, AllWeaponsEnabled); }
public TextTag(Level Owner, string TagText, SpriteFont TagFont, Vector2 TagPosition, Color TagColor, float TagDuration) { Level = Owner; Text = TagText; Font = TagFont; Position = TagPosition; Color = TagColor; Duration = TagDuration; Origin = Font.MeasureString(TagText)/2; }
public void Initialize(Level Owner, float Mass) { LocalGravity = Owner.cGravity * Mass; Level = Owner; }
public static void CreateOnHitTextTag(int DamageAmount, Level Level, Vector2 Position) { Position.Y -= 15; Level.TextTags.Add(new TextTag(Level, DamageAmount.ToString(), ResourceManager.Arial, Position, Color.Maroon, 1)); }