コード例 #1
0
ファイル: Character.cs プロジェクト: Iwan204/RPG-Game
 public override void Initialize(ContentManager content, Vector2 position)
 {
     Name         = "Default";
     IsCollidable = true;
     IsSelected   = false;
     sprite       = content.Load <Texture2D>("default");
     spriteBox    = new Rectangle((int)Position.X - 32, (int)Position.Y - 64, 32, 32);
     boundingBox  = new Rectangle((int)Position.X - 32, (int)Position.Y - 64, 64, 32);
     Elevation    = 0;
     Attributes   = new AttributesStruct();
     Stats        = new stats();
 }
コード例 #2
0
ファイル: Character.cs プロジェクト: Iwan204/RPG-Game
        public static void NewPlayer(string name, stats stats, Vector2 position, Texture2D PassedSprite)
        {
            PlayerControlled Character = new PlayerControlled(Content, position, name, stats, PassedSprite);

            PlayerParty.Add(Character);
        }
コード例 #3
0
ファイル: Character.cs プロジェクト: Iwan204/RPG-Game
 public PlayerControlled(ContentManager content, Vector2 position, string name, stats stats, Texture2D Passedsprite) : base(content, position)
 {
     Initialize(content, position);
     Name     = name;
     Position = position;
     sprite   = Passedsprite;
 }
コード例 #4
0
ファイル: Character.cs プロジェクト: Iwan204/RPG-Game
 public NonPlayer(ContentManager content, Vector2 position, string name, stats stats) : base(content, position)
 {
     Initialize(content, position);
 }