Which of the below blocks of code will create the image to the right?
The window measures 500 x 200 pixels and the value of
d is 150.
x, y = 250 - d / 2, 100 - d / 2
a1 = GArc(x, y, d, d, 90, -180)
gw.add(a1)
x, y = 250 - d, 100 - d
a1 = GArc(x, y, d, d, -180, 90)
gw.add(a1)
x, y = 250 - d / 2, 100 - d / 2
a1 = GArc(x, y, d, d, 90, 180)
gw.add(a1)
x, y = 250 - d / 2, 100 - d / 2
a1 = GArc(x, y, d, 180, -90)
gw.add(a1)
Project 2: Breakout!
Project 2 is recreating the classic arcade game
Breakout!
Guide is posted here,
and due by Monday March 10 at 10 PM
Start early to have more time to learn and try out things!
Breakout History
The popular Breakout arcade game was released by
Atari in 1976
Atari founder Nolan Bushnell wanted a new game that
would build on the success of the earlier game Pong. He assigned Steve
Jobs to develop the game, promising a bonus if the game required a small
number of chips.
As Wikipedia tells the story, “Jobs had little
specialized knowledge of circuit board design but knew [his friend
Steve] Wozniak was capable of producing designs with a small number of
chips. He convinced Wozniak to work with him, promising to split the fee
evenly between them.”
Wozniak completed the game design in four days, but
Jobs never told him about the bonus offer. Jobs was paid \(\$5,000\), but Wozniak received only \(\$350\).
Jobs and Wozniak co-founded Apple Computer the
following year, which has grown to be the largest corporation in the
world by market capitalization.
Breakout Basics
Breakout is a game in which the player attempts to break all the
colored bricks by causing a bouncing ball to collide with them
The player controls a paddle at the bottom of the screen which the
ball will bounce off
The paddle can only move left and right
If the ball makes it past the paddle to the bottom of the screen,
the player loses a life
Lose 3 lives and it is game over!
Breakout!
Breakout Milestones
Breakout is broken up over 5 milestones
You have already seen or written pieces of similar code to many of
the milestones!
Milestone 1: PS4 brick pyramid
Milestone 3: Section bouncy ball problem (this week)