Example #1
0
 public MainMenuViewHandler()
 {
     this.buttons.Add(new Play(555, 525));
     this.buttons.Add(new Setting(369, 542));
     this.buttons.Add(new Exit(777, 542));
     logo = new Sprite2D(TextureFactory.menuLogoTexture, 0, -15, 0, 0);
 }
Example #2
0
 public MapTile(float left, float top, float depth, int type)
 {
     this.sprite2D       = new Sprite2D(TextureFactory.mapTileTextures[Global.gMapState][type], left, top, 0, 0);
     this.sprite2D.Depth = depth;
     this.boundingBox    = new Vector4(left, top, left + this.sprite2D.Width, top + this.sprite2D.Height);
     this.type           = type;
 }
Example #3
0
 public Box(float left, float top, float depth, int effect)
 {
     this.sprite2D       = new Sprite2D(TextureFactory.boxTexture, left, top - TextureFactory.boxTexture[0].Height, 0, 0);
     this.sprite2D.Depth = depth;
     this.boundingBox    = new Vector4(left, top - this.sprite2D.Height, left + this.sprite2D.Width, top);
     this.effect         = (SpecialEffect)effect;
     this.isVisible      = true;
 }
Example #4
0
 public GameViewHandler()
 {
     map           = new Map();
     characters    = new Characters();
     catHead       = new Sprite2D(TextureFactory.headTextures[CharacterTexture.Cat], 518, 0, 0, 0);
     dogHead       = new Sprite2D(TextureFactory.headTextures[CharacterTexture.Dog], 705, 0, 0, 0);
     catHead.Depth = 0.1f;
     dogHead.Depth = 0.1f;
 }
Example #5
0
 public Background()
 {
     this.sprite2D       = new Sprite2D(TextureFactory.backgroundTexture[Global.gMapState], 0, 0, 0, 0);
     this.sprite2D.Depth = 0;
 }
Example #6
0
 public Decor(float left, float top, float depth, int type)
 {
     this.sprite2D       = new Sprite2D(TextureFactory.decorTextures[Global.gMapState][type], left, top - TextureFactory.decorTextures[Global.gMapState][type][0].Height, 0, 0);
     this.sprite2D.Depth = depth;
 }
 public MenuViewHandler()
 {
     background       = new Sprite2D(TextureFactory.menuBackgroundTexture, 0, 0, 0, 0);
     background.Depth = 0f;
     buttons          = new List <Button>();
 }