Questions tagged [breakout]

For questions about reimplementing Breakout video game: https://en.wikipedia.org/wiki/Breakout_(video_game). Do not use this tag for questions like "How to break out of a loop/function?", consider using "control-flow" and/or "break" tags instead.

140 questions
-1
votes
1 answer

Bricks change color every instance of time

so, i'm doing breakout in java (this is not h/w, school is over) I want to bricks to be random in color, but my bricks change color while the game is running. so right now, it looks like the bricks are lighting up!! please help!! package…
Soon Kwon
  • 25
  • 1
  • 7
-1
votes
2 answers

Collisions in breakout game

So I'm creating a breakout game and everything's going well, except certain collisions with bricks. I don't know how to go about detecting if the ball hits the brick from the left or the right. I'm trying to create an if statement that reads "if…
dracula90
  • 17
  • 5
-2
votes
2 answers

Java Breakout game bouncing the ball

I'm trying to make a breakout game in java. The ball bounces when hit to stones and bat but it won't after hitting the walls. See this paste for what I use. http://pastebin.com/pkGsCBMa Could anybody spot the error in the code... Thanks EDIT: when…
Sri Harsha Chilakapati
  • 11,744
  • 6
  • 50
  • 91
-4
votes
0 answers

I don't know why the vector subscript is out of range?

I'm trying to make a Tic Tac Toe game in C++ and I have a problem I've been stuck on for 6 days (ahhh!) I get an "vector subscript is out of range" error. Edit: here's my mre hope it helps Edit: It says that "vector subscript is out of range." Does…
-4
votes
1 answer

Java breakout game - remove bricks

I have added multiple rows of bricks to my breakout game however i now have the task of removing these bricks once they have been hit. I have added a for loop which seems to rebound off a row of bricks roughly in the middle but doesnt remove any. I…
RHH
  • 41
  • 1
  • 9
1 2 3
9
10