Exemplo n.º 1
0
        public Player(MonoGameLibrary.Game game, GameScreen screen, int x, int y, int width, int height) : base(game, screen, Assets.GameObject.Player, x, y, width, height)
        {
            IsRigitBody = true;
            a           = new TextureAnimator(game, this, Assets.GameObject.Dust, 300, 0.1, -150, 120, 300, 100);

            Animators.Add(a);
        }
Exemplo n.º 2
0
 //
 public Slope(MonoGameLibrary.Game game, GameScreen screen, int mode, int x, int y, int width, int height) : base(game, screen, Assets.GameObject.Slope, x, y, width, height)
 {
     this.Mode = mode;
     if (Mode == -1)
     {
         SetAngle(90);
     }
 }
Exemplo n.º 3
0
 public Button(MonoGameLibrary.Game game, Screen screen, int x, int y, int width, int height) : base(game, screen, Assets.getColorTexture(game, Color.Blue), x, y, width, height)
 {
     OnHover += onHover;
     OnLeave += onLeave;
     OnDown  += onClick;
     a        = new MoveAnimator(game, this, 1, 1, new Point(0, 0), new Point(100, 100), new Point(1000, 400), new Point(1000, 500));
     Animators.Add(a);
 }
Exemplo n.º 4
0
 public enemy(MonoGameLibrary.Game game, Screen screen, int x, int y, int width, int height) : base(game, screen, Assets.enemy, x, y, width, height)
 {
     parent = (TestScreen)screen;
 }