PROGRAMA 1
utilise System;
apply System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
namespace WindowsGame1
{
///
/// This is the main type for your game
///
public class Game1 : Microsoft.Xna.Framework.Game
{
Texture2D casTexture;
Rectangle casRec;
GraphicsDeviceManager prowess;
SpriteBatch spriteBatch;
KeyboardState tecla;
bool derecha = false;
bool izquierda = false;
bool arriba = false;
bool abajo = false;
public Game1()
{
artistic production = reinvigorated GraphicsDeviceManager(this);
Content.RootDirectory = Content;
}
///
/// Allows the game to perform every low-level formatting it needs to before starting to run.
/// This is where it can query for any required services and load any non-graphic
/// related content. vocation base.Initialize will enumerate through any components
/// and initialize them as well.
///
protected override void Initialize()
{
// TODO: Add your initialization system of logic here
base.Initialize();
}
///
/// LoadContent will be c everyed once per game and is the place to load
/// all of your content.
///
protected override void LoadContent()
{
// Create a forward-looking SpriteBatch, which can be used to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
casTexture = this.Content.Load(castillo);
casRec = new Rectangle(50, 50, 80, 90);...If you want to get a full essay, order it on our website: Orderessay
If you want to get a full essay, wisit our page: write my essay .
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.