コード例 #1
0
        public override void Draw(GameTime gameTime)
        {
            Game1 g = (Game1)Game;

            g.spriteBatch.Draw(star, new Vector2(posx, posy), Color.White);
        }
コード例 #2
0
 public MovingStar(Game1 game, int _posx, int _posy) : base(game)
 {
     posx = _posx;
     posy = _posy;
 }