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

Animal puzzle, a) This you just have to list all the attributes for the pro...

a) This you just have to list all the attributes for the program. i.e. unique id's for puzzle pieces, attributes for the puzzle like a data field for the number of edges, methods t

nim game, Matches or different objects are organized in 2 or a lot of pile...

Matches or different objects are organized in 2 or a lot of piles. Players alternate removing some or all of the matches from anyone pile. The player to get rid of the last match w

Rock paper scissors, Scenario To determine who is needed to try to to th...

Scenario To determine who is needed to try to to the nightly chores, 2 youngsters simultaneously build one among 3 symbols with their fists - a rock, paper, or scissors. straigh

Bidding increment, A bidding increment is defined by the auctioneer as the ...

A bidding increment is defined by the auctioneer as the least amount above the previous bid that a new bid must be in order to be adequate to the auctioneer. For example, if the in

Nova, how do tron legacy made?

how do tron legacy made?

Experimental economics , Experimental economics is bothered with utilizing ...

Experimental economics is bothered with utilizing laboratory experiments to realize understanding of how cognition, memory, and heuristics have an effect on behavior of individuals

Utility, In any game, utility represents the motivations of players. A util...

In any game, utility represents the motivations of players. A utility perform for a given player assigns variety for each potential outcome of the sport with the property that a be

Japanese auction, A type of sequential second worth auction, just like an E...

A type of sequential second worth auction, just like an English auction during which an auctioneer frequently raises the present worth. Participants should signal at each worth lev

Games with strategic moves, Games with Strat e gic M ov es   ...

Games with Strat e gic M ov es   The ideas in this chapters can be brought to life and the students can better appreciate the subtleties of various strategic moves an

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