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
0
votes
0 answers

How to get viewport fullwidth images in Bootstrap 3

I'm trying to achieve images that breakout past their parent container to occupy 100% of the x-axis in the viewport, but no matter if I try img-fluid or this via CSS .breakout { position: relative; left: 50%; transform: translate(-50%, 0); width:…
middll
  • 1
0
votes
2 answers

breakout collision detection

I'm coding a Breakout game with Javascript. I took the MDN tutorial and another tutorial and I'm trying to modify the original with a OOP approach. Until now, everything works fine except for the collision detection with the paddle. Which is not…
Marco Mazzai
  • 95
  • 2
  • 16
0
votes
1 answer

Breakout game with Pygame - Processing events

I'm currently trying to create a simple version of the game Breakout with Pygame. The problem is that I want to make my bat move on the screen, and for this I need to deal with events and the fact that, when you press the right/left arrow, the bat…
Gogo
  • 3
  • 1
0
votes
1 answer

ball reflection angles Xna c#

I'm trying to find a way to handle reflections for a breakout clone. I would upload an image to the post instead of the following paragraph, however i have not yet gained the privilege of that yet. If the ball intersects the left hand side i want it…
Lonchenzo
  • 51
  • 6
0
votes
1 answer

Unity - collision failure for fast moving objects

Does anyone have any suggestions on how to deal with fast moving objects missing collisions in Unity. I am creating a breakout game for mobile and discovered that when the paddle is moved very fast then it misses the collision with the ball. I…
Kaz
  • 137
  • 2
  • 3
  • 17
0
votes
0 answers

Javascript: Bilding Bricks on Canvas

Okay, I have searched everywhere but haven't found something specifically useful for me. Im trying to code a BreakOut Game with pure JavaScript. I've had my ups and downs, as I'm a beginner, but I managed to display and control the paddle aswell as…
0
votes
1 answer

Javascript Breakout game. Changing ball speed at score interval

I am looking for a little help on adding on to some code for a Breakout game using Javascript within Tumult Hype. I am looking to make it so that once you hit a certain score the ball speed will increase. Here is the code so far without the speed…
Zephyranthes
  • 55
  • 1
  • 7
0
votes
0 answers

Unity - how to get ball in breakout style game to bounce off walls at uniform angles

I am creating a breakout style game and currently stuck on a particular problem for which I am sure there is a solution but have not been able to figure it out. So there are 3 walls (left, right, and top) and my problem is that when the ball bounces…
Kaz
  • 137
  • 2
  • 3
  • 17
0
votes
1 answer

Unity - best way to drag a RigidBody2D Gameobject by mouse/touch

I am creating a 2D game in Unity and wanted to see if anyone has any suggestion on how I can improve the script below which I am using to drag a paddle in a breakout/arkanoid style game. I know there are more complex ways to drag objects but this…
Kaz
  • 137
  • 2
  • 3
  • 17
0
votes
1 answer

Rectangle and Circle Collision Java using .intersection

I am making a breakout game for a school project. The only problem I am running into is the Ball Bouncing when the Ball and Bricks collide. I used ball1.getEllipse().intersects(b.getRectangle()) allowing me to figure out when it is colliding and…
0
votes
2 answers

unity - mobile touch control to drag gameobject in 2D game

I wanted to find out what is the best-practice method to use for touch controls for mobile 2D games, specifically dragging a paddle for breakout/arkanoid style games. Would be surprised if there are no easy built in Unity facility to do this as I…
Kaz
  • 137
  • 2
  • 3
  • 17
0
votes
1 answer

Unity increasing ball speed whilst keeping direction constant

I am working on a breakout style game in Unity using c# and wanted to know what is the best way to increase the speed of the ball over time without changing the angle/direction the ball travels after colliding with the paddle, so I want the ball to…
Kaz
  • 137
  • 2
  • 3
  • 17
0
votes
2 answers

Breakout brick collision in java

I have been working on a Breakout game and have just about everything done except for the brick collision. The ball bounces of the wall, paddle and the brick. However when the ball bounces of the brick, the brick does not disappear. I am really…
John
  • 11
  • 1
0
votes
1 answer

Pygame not emptying list correctly

I'm making a "Breakout"-style game and I thought it would be fun to be able to handle multiple balls. This is the run_logic() function in my game class: def run_logic(self): if not self.game_over: self.all_sprites_list.update() …
0
votes
1 answer

.BAT break out of multiple nested loop, after finishing the respective list

I know breaking out of a nested loop is fairly easy, however, I'm not sure how to do it when I'm working with multiple lists of servers. Here's the scenario: Goal: Search for sessions on a server matching a specific user ID, and also kill any…
itsmrmarlboroman2u
  • 125
  • 1
  • 2
  • 8