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);
        }
 //
 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);
     }
 }
Beispiel #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);
 }
 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;
 }