コード例 #1
0
ファイル: Game1.cs プロジェクト: Kingdomdark/ProjectOP4
        public GameLogic()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.IsFullScreen = false;
            graphics.PreferredBackBufferHeight = 800;
            graphics.PreferredBackBufferWidth = 1600;
            Desktopplayer = new DesktopPlayer(new Vector2(0,0), Color.Black);
            player1 = new PlayerAdapter(Desktopplayer, new Vector2(0,0), Color.Black);//creates an instance of the desktopplayer
        }
コード例 #2
0
ファイル: Block.cs プロジェクト: Kingdomdark/ProjectOP4
 public void Update(GameTime gameTime, PlayerAdapter theplayer) //method to move the pointblock
 {
     position.X -= theplayer.velocity;
 }
コード例 #3
0
ファイル: Block.cs プロジェクト: Kingdomdark/ProjectOP4
 public void Update(GameTime gameTime, PlayerAdapter theplayer) //method update the game
 {
     position.X -= theplayer.velocity;
 }