コード例 #1
0
ファイル: Player.cs プロジェクト: kalaharileeu/fourcolor
 public Player(Loader.parameter loaderparameters)
 {
     Velocity = Vector2.Zero;
     image = loaderparameters.image;
     movespeed = loaderparameters.movespeed;
     animatedtype = loaderparameters.animatedtype;
     deathvector = Vector2.Zero;
 }
コード例 #2
0
ファイル: EnemyBullet.cs プロジェクト: kalaharileeu/fourcolor
        public EnemyBullet(Loader.parameter loaderparameters, int x, int y)
        {
            //imagesource = loaderparameters.imagesource;
            movespeed = loaderparameters.movespeed;
            animatedtype = loaderparameters.animatedtype;
            numframesX = loaderparameters.numframesX;
            numframesY = loaderparameters.numframesY;
            dead = loaderparameters.dead;
            dying = loaderparameters.dying;
            enemyx = x;
            enemyy = y;
            //get the image source directly from loaderparameters
            image = new Image(loaderparameters.imagesource);

            LoadContent();
        }
コード例 #3
0
 public AnimatedGraphics(Loader.parameter loaderparameters, int x, int y )
 {
     movespeed = loaderparameters.movespeed;
     animatedtype = loaderparameters.animatedtype;
     numframesX = loaderparameters.numframesX;
     numframesY = loaderparameters.numframesY;
     animationx = x;
     animationy = y;
     Effect = loaderparameters.Effects;
     animatedlife = loaderparameters.life;
     //get the image source directly from loaderparameters
     image = new Image(loaderparameters.imagesource);
     //image.Set(loaderparameters.Effects);
     image.Effects = Effect;
     image.Position.X = animationx;
     image.Position.Y = animationy;
     image.amountofframes.X = numframesX;
     image.amountofframes.Y = numframesY;
     //image.width =
     LoadContent();
 }
コード例 #4
0
 public VerticalBullet(Loader.parameter loaderparameter, int x, int y) 
     : base(loaderparameter, x, y)
 {
 }