Пример #1
0
 public HighScoresWindow(Jump game)
     : base(game)
 {
     this.game = game;
     position1 = new Vector2(312, 84);
     position2 = new Vector2(327, 99);
 }
Пример #2
0
 public Player(Jump game, ILevel level, Rectangle rect)
     : base(game)
 {
     this.game = game;
     this.rect = rect;
     this.level = level;
     this.game.KeyboardEvent += KeyboardUpdate;
 }
Пример #3
0
 public Text(Jump game, string content, Vector2 location, Color color)
     : base(game)
 {
     this.game = game;
     this.content = content;
     this.location = location;
     this.color = color;
 }
Пример #4
0
 public Level1(Jump game)
 {
     this.game = game;
     this.blocks = new List<Block>();
     this.speed = 64;
     this.rng = new Random();
     this.spawnInterval = 200;
     this.tilNext = this.spawnInterval;
 }
Пример #5
0
 public Block(Jump game, ILevel level, Rectangle blockRect, Color color, int ySpeed)
     : base(game)
 {
     this.game = game;
     this.rect = blockRect;
     this.color = color;
     this.ySpeed = ySpeed == 0 ? 0 : (1000 / ySpeed);
     this.level = level;
 }
Пример #6
0
 public Level2(Jump game)
 {
     this.game = game;
     this.blocks = new List<Block>();
     this.speed = -128;
     this.rng = new Random();
     this.spawnInterval = 64;
     this.tilNext = this.spawnInterval;
     this.narrowness = 16;
     this.points = 0;
 }
Пример #7
0
 public static void Main()
 {
     System.Console.WriteLine("Test");
        try
        {
        using (Jump game = new Jump())
            game.Run();
        }catch (EntryPointNotFoundException e)
        {
        }
 }
Пример #8
0
 public Level3(Jump game)
 {
     this.game = game;
 }
Пример #9
0
            public Button(Jump game, ILevel level, Rectangle blockRect, Color color, string txt, int lvl)
                : base(game, level, blockRect, color, 0)
            {
                this.text = new Text(game, txt, new Vector2(blockRect.X, blockRect.Y),
                                     Color.Black);

                this.lvl = lvl;
            }
Пример #10
0
 public JumpSprite(Jump game)
     : base(game)
 {
 }