Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public void Initialize(Level Owner, float Mass)
 {
     LocalGravity = Owner.cGravity * Mass;
     Level = Owner;
 }
Exemplo n.º 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));
 }