コード例 #1
0
 public MapHandlerScene(ContentManager Content, TileMap tileMap, ILevelInfoDB levelInfoDB, IMapDB mapDB)
 {
     this.mapDB            = mapDB;
     this.levelInfoDB      = levelInfoDB;
     this.animation        = new Animations.CircularAnimation(Content.Load <SpriteFont>(@"Fonts/font"), 40.0f);
     this.tileMap          = tileMap;
     displayMessage        = new Animations.DisplayMessage(Content);
     displayMessage.OffSet = new Vector2(0, +145);
 }
コード例 #2
0
 public MiniMap(ContentManager Content, GraphicsDevice graphicsDevice, Vector2 size, IMapDB mapDB, ILevelInfoDB levelInfoDB)
     : base(Vector2.Zero, Content, 64, 64, 64, 64)
 {
     this.Size           = size;
     minimapBatch        = new SpriteBatch(graphicsDevice);
     this.graphicsDevice = graphicsDevice;
     mapHandler          = new Scene.MapHandlerScene(Content, this, levelInfoDB, mapDB);
     this.Camera         = new Camera.Camera(Vector2.Zero, size, size);
     miniMaps            = new Dictionary <string, Texture2D>();
     activeMiniMap       = null;
     previousMiniMap     = null;
     message             = new Animations.DisplayMessage(Content);
     CurrentMapID        = 0;
     background          = Content.Load <Texture2D>(@"Textures/whiteRectangle");
     player         = Content.Load <Texture2D>(@"Textures/player");
     mob            = Content.Load <Texture2D>(@"Textures/Mobs/chaser");
     actorTileSheet = new Animations.TileSheetHandler(Content.Load <Texture2D>(@"Textures/ActorsTemp"), this.SourceTileWidth, this.SourceTileHeight);
     message.OffSet = new Vector2(0, 300);
 }