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
2
votes
1 answer

Want to understand iframe breakout code

With this script code (below) placed in between the head tags, I am told that this will not allow the page to load in an iframe. If this is correct, is there anything that needs to be replaced with my custom URL or similar in this code (e.g.,…
AaronH
  • 47
  • 3
  • 9
1
vote
1 answer

Breakout game ( When im out, i want the ball again to hit the remaining bricks)

Im new to java programming. Im learning to develop a game similar to the one called breakout. Here's how it works you have a set of bricks to hit using a ball and the paddle Im caught in a situation here, Whenever i miss the ball, itl take me to…
user644749
  • 21
  • 5
1
vote
0 answers

How to move paddle in 2d Breakout Game by touch

I am making a 2d breakout game in Javascript which will work on laptop and mobile both but I want help in moving paddle in Breakout game by touch. let leftPressed = false; let rightPressed = false; // CONTROL THE…
1
vote
0 answers

Ball sprite won't bounce off rectangles. Need to know how to make rectangles disappear

I have a ball sprite that is generated via generateSprite(); and also a platform sprite that is generated the same way. I need to make the ball bounce off the platform. This is a breakout style game so I have rectangles that are NOT sprites that the…
Reed
  • 21
  • 1
1
vote
1 answer

Collision Detection in Python OpenGl

Collision Detection in Python OpenGl I'm working on breakout game by using python opengl and I want to make collision detection between the ball and the bricks (Without using pygame). I tried a lot but I couldn't and I didn't find any tutorials…
Tarek Alabd
  • 419
  • 4
  • 13
1
vote
1 answer

Brick Breaker game help, ball bouncing side to side

I've completed a small game project of the breakout game, but my main problem is that the ball seems to get stuck going side to side much more often than i would be okay with it happening. It's definitely a problem with the ball velocity and I've…
1
vote
1 answer

Breakout code not working. Not sure how to do array

I do not understand how to make multiple colored bricks into an array. Each row would have a different color and I only have one brick that appears and I am not sure how to get an 8x4 array of bricks. I have no clue on how to go about doing…
miles126
  • 11
  • 1
1
vote
3 answers

Python - Program not exiting loop correctly

I'm just a beginner but I cannot figure out why my code is not exiting the loop correctly. import uuid class Bank_Account: def __init__(self, name, id, balance): self.name = name self.id = id self.balance = balance …
J Sterls
  • 19
  • 3
1
vote
0 answers

Unity 2D - using raycast to detect collision for 2D arkanoid/breakout game

can anyone give me any advice on how to use 2d recasting in Unity to detect fast moving collision for a 2d breakout game as the normal collision method isn't working for me due to fast moving ball objects. Also if there are any good tutorials…
Kaz
  • 137
  • 2
  • 3
  • 17
1
vote
1 answer

BreakOut Detection Python/R Pkg Installation

I have been trying to install the BreakOut Detetction pkg in a Windows enviornment. Following is the pkg I am talking about, https://github.com/roland-hochmuth/BreakoutDetection I was able to get swig on my machine by following the directions@…
P Ved
  • 109
  • 3
  • 13
1
vote
1 answer

Combining multiple breakout plots together [r]

I've successfully been running breakout function using breakoutDetection package in r. One of the possible products of this function is the $plot. Is that possible to combine multiple plots that are embedded in a list after running breakout? I've…
Dmitry Leykin
  • 485
  • 1
  • 7
  • 14
1
vote
1 answer

brick collision for breakout in java

I am working on a breakout game. i have almost everything done except for the collision for the bricks. so far, when the ball hits the brick the brick bounces back but the brick does not disappear. If someone could help me that would be great. Main…
matt
  • 11
  • 4
1
vote
1 answer

Assigned access application exits when Ctrl + Alt + Delete is pressed.

I have set up assigned access on windows 10. The breakout key is currently set to ctrl + alt + delete (the default). However it seems as though when this breakout key is used that the application exits? Is it possible to keep the application running…
Cool Breeze
  • 1,289
  • 11
  • 34
1
vote
1 answer

Change my background in a method Java

I am programming the game Breakout in Java. My background is grey at first, but when I win I want it to change to green. However, I cannot manage to achieve this. Can somebody help me? Here the colors are declared; // Those are the basic statements…
Maris
  • 91
  • 1
  • 2
  • 10
1
vote
2 answers

Java random color to blocks

So I am programming the game breakout in Java and I already got an array with bricks, but I want to give the brick (or rows of bricks) random colors. I have the possibility of 4 different colors; red, green, blue, yellow. But with my code shown…
Maris
  • 91
  • 1
  • 2
  • 10
1
2
3
9 10