internal static void RunGame() { game = new CollisionTestGame(); game.Run(); #if !__IOS__ && !__TVOS__ game.Dispose(); #endif }
public Dot(CollisionTestGame game, int diameter, Color color) { texture = createCircleText(Global.Graphics, diameter, color); position = new Vector2(); velocity = new Vector2(); this.diameter = diameter; this.color = color; this.speed = 200; this.jumpHeight = DEFAULT_JUMP_HEIGHT; this.doubleJumpHeight = DEFAULT_DOUBLE_JUMP_MULTIPLIER * this.jumpHeight; this.powerJumpHeight = DEFAULT_POWER_JUMP_MULTIPLIER * this.jumpHeight; this.grounded = false; this.hasDoubleJump = false; this.platforms = game.platforms; this.powerJump = TO_POWER_JUMP; prevState = Keyboard.GetState(); }