Пример #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            water = new Water(this);
            ship = new Ship(Content.Load<Texture2D>("Ship"), new Vector2(300, 0));
        }
Пример #2
0
 public void Update(Water water)
 {
     Position.Y = water.GetYPosition((int)Position.X) - 10;
 }