Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 public void Initialize(Level Owner, float Mass)
 {
     LocalGravity = Owner.cGravity * Mass;
     Level = Owner;
 }
Exemple #4
0
 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));
 }