コード例 #1
0
        int tickcount = 0; //For dividing the framerate. This implementation will change.

        #endregion Fields

        #region Constructors

        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.IsFullScreen = false;
            //graphics.PreferredBackBufferHeight = 720;
            //graphics.PreferredBackBufferWidth = 1280;
            Content.RootDirectory = "Content";
            game = new GameState (this);
        }
コード例 #2
0
 public ImageScene(GameState game, Texture2D image)
     : base(game)
 {
     this.image = image;
     this.game = game;
     TimeLimited = false;
     SceneWidth = image.Width;
     SceneHeight = image.Height;
 }
コード例 #3
0
 public WarpTrigger(String mapName, String locationTarget, Rectangle rect, GameState game)
 {
     position.X = rect.X;
         position.Y = rect.Y;
         hitbox = new Rectangle (0, 0, rect.Width, rect.Height);
         spriteChoice.texture = texture;
         spriteChoice.rect = new Rectangle (0, 0, texture.Width, texture.Height);
         Visible = true;
         this.game = game;
         this.mapName = mapName;
         this.locationTarget = locationTarget;
 }
コード例 #4
0
 public TmxScene(GameState state)
     : base(state)
 {
 }
コード例 #5
0
 public ImageScene(GameState state, Texture2D image, int maxAnimFrames, String nextScene)
     : this(state,image,nextScene)
 {
     TimeLimited = true;
     MaxCount = maxAnimFrames;
 }
コード例 #6
0
 public ImageScene(GameState game, Texture2D image, String nextScene)
     : this(game,image)
 {
     this.nextScene = nextScene;
 }