MagnificentBall - a P2P Java Game for two Players

MagnificentBall was the examination assignment of the Internet programming 1 - course.

MagnificentBall is a peer-to-peer(P2P) Java ball game for two players to play over Internet or within a local intranet.

The goal is to get as good score as possible. You improve your score(earn a point) by hitting the ball with your player. If you miss, you lose a one life.

The ball speed increases with a constant rate over time, but will increase at a higher rate each time a player misses the ball. The game ends when one of the players lost all of his 10 lives.

The player with the best score wins.

Download and/or view the game files below, or have a look at some screenshots of the game in action.

Game Files

Download MagnificentBall.jar to try it.

Screenshots of the Game in Action

The images below are screenshots of the game opened twice on the same computer;localhost. This can be useful if you don't have anyone to play against but still wanna try the game. When used for real the players probably would be in different locations on the Internet.

Note: Click on the images to view them in their natural size.

This is the view just after the players pressed the connect button. The player that pressed the button last becomes the player in contol, i.e. he will be the player in so called "Active Mode".

No matter if you get to be the player in Active or Passive Mode, you will allways be the left player.

The hard-mode, in which the initial ball speed will be higher, is not choosen.

The Java game MagnificentBall in active  - just started The Java game MagnificentBall in passive mode - just started

Beginning of the game, a while after the player that got to be in Active Mode pressed New Game.

The player in Active Mode has 2 point and the player in Passive Mode has 0.

The player in Passive Mode has lost 1 life.

The Java game MagnificentBall in active mode - middle of the game The Java game MagnificentBall in passive mode - middle of the game

The view for the two players when the player in Active Mode has pressed the Pause button.

The Java game MagnificentBall in active mode - game paused The Java game MagnificentBall in passive mode - game paused by opponent

The player in Active Mode has 6 lives left, and the player in Passive Mode has 4. The score is 3-2.

The Java game MagnificentBall in active mode - middle of the game The Java game MagnificentBall in active mode - middle of the game

Game Over. The score is 6-4, and the player in Active Mode has won. He had 3 lives left when the player in Passive Mode lost his last.

The Java game MagnificentBall in active mode - player have won The Java game MagnificentBall in active mode - player have lost

Some overall images of the game opened twice on the same computer(localhost). It's a kind of test mode that can be useful if don't have anyone to play against but still wanna try the game.

When used for real the players would probably be in different locations on the Internet.

The Java game MagnificentBall overview 1 The Java game MagnificentBall overview 2 The Java game MagnificentBall overview 3
«  Previous Next  »
Loading