Write a bouncing ball video game, Game Theory

Assignment Help:

Write a bouncing ball video game. The game is similar to the one described and depicted in

The balls bounce within the screen where the two horizontal walls are fixed. The two vertical walls are bounded by the two paddles. Each paddle is a third of the height of the screen. The user presses keys to move the paddles up and down. Your task is to control the two paddles to keep the ball bouncing within the screen to simulate two players playing the ball. The game stops when one player wins or when the time is up. A player wins if the ball bounces out from the other player's side.

1727_terminal.png

Figure: Game Screenshot

Requirements

1. Initially, the ball is placed at the center of the screen. The ball starts moving with a steady speed when the user presses a key. See Figure 1 for a screenshot.

When the ball hits a wall it should bounce off it.

2. You may reference bounce2d.c and associated code from your text book or write your own using the techniques and functions covered in lecture 7.

3. You may assign any key combination to move the paddles, but each paddle must be able to be moved independently.

What to submit

1. Your resolution logic or pseudo code (no more than two pages).

2. Your test plan and output. The limitations if your program does not run or does not output the expected result.

3. Your source code.

4. A simple user's manual with instructions on how to play your game.


Related Discussions:- Write a bouncing ball video game

Multiunit auction, An auction during which many (more than one) things are ...

An auction during which many (more than one) things are offered for sale. Mechanisms for allocating multiple units embody discriminatory and uniform worth auctions.

Game, The interaction among rational, mutually aware players, where the cho...

The interaction among rational, mutually aware players, where the choices of some players impacts the payoffs of others. A game is described by its players, every player's methods,

Airline ticket, why might an airline offer the following deal: you pay 400 ...

why might an airline offer the following deal: you pay 400 for a round trip ticket from here to orlando, but you only pay 300 per ticket if you stayy in orlando includes a saturday

Stag hunt , Scenario The French thinker, Jean Jacques Rousseau, presente...

Scenario The French thinker, Jean Jacques Rousseau, presented the subsequent state of affairs. 2 hunters will either jointly hunt a stag (an adult deer and rather massive meal)

Payoff matrix, 1. The publishing industry in the country of Font, where the...

1. The publishing industry in the country of Font, where the local currency is the stet, is dominated by two companies, the Arial Book Co. and Verdana Works Ltd.. Currently, both o

Rules of snake eyes game, Rules of Snake Eyes (small variation on game call...

Rules of Snake Eyes (small variation on game called Craps in USA) Player rolls two dice. On the first roll if the total of the dice is 2 (snake eyes): player wins and rece

Multiple item auction, Normal 0 false false false EN-US...

Normal 0 false false false EN-US X-NONE X-NONE

What are the important forms of product differentiation, What are the impor...

What are the important forms of product differentiation? There are three significant forms of product differentiation, which are: 1. Differentiation through style or type –

Game playing in class-equilibrium payoffs example, (a) Equilibrium payoffs ...

(a) Equilibrium payoffs are (1, 0). Player A’s equilibrium strategy is S; B’s equilibrium strategy is “t if N.”   For (a): Player A has two strategies: (1) N or (2) S. P

Bidder, An auction associates who submits offers (or bids) to sale or buy  ...

An auction associates who submits offers (or bids) to sale or buy  the goods being auctioned.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd