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

Optimize Breakout (game) block hit-checking

I made Breakout and it works fine but its a bit laggy due to tons of checks being made for hits. Does anyone know how I can redo my hit checking to improve the speed/efficiency? (FYI the didCollide[Direction] methods check if it hit on that side -…
LazerWing
  • 111
  • 2
  • 3
  • 10
0
votes
1 answer

altering trajectory using UIKit Dynamics ios7

While trying to replicate the game “Breakout” using ios7’s UIKit Dynamics, I have not been able to figure out how to alter an items trajectory. In the game, the trajectory of the ball is determined based on where it strikes the paddle. What method/s…
NBAfan
  • 62
  • 10
0
votes
3 answers

Move a ball on mouse click in Java

I'm trying to create the classic Breakout game as part of my programming assignment. I have to start moving the ball on a mouse click from the user. So I'm using a mouselistener to achieve that. The code below is just a smaller, simpler version of…
0
votes
1 answer

Key functions won't work c#

I have no problem with my code as I can see, it's a breakout game, but for testing purposes I need to be able to go up,down, left, right manually with the keys http://pastebin.com/fJWk1ifH txtBox.KeyDown += new…
Luke Waugh
  • 11
  • 3
0
votes
0 answers

Breakout game java

I am creating the breakout game and its isn't running just showing the bricks and the paddle and ball. I think its in my for statements in the breakin class.I added in the paddles.getW, paddles. get Y +paddles.getH and for the next for statement I…
0
votes
0 answers

How to share same GCanvas in a GraphicsProgram in java?

I'm new at the Java world, and I started to take the Stanford cs106A course. I made the "breakout" problem which consists of making a simple breakout game. I want to go even further, and my point is to create new Classes that can incorporate objects…
Carles Mitjans
  • 4,786
  • 3
  • 19
  • 38
0
votes
2 answers

Stanford cs106a : Assignment 3 Breakout : Paddle won't refresh

I'm trying to initialize the breakout game so that the game starts with the paddle added to the canvas at a specified location then have the same paddle move with the mouse. So, 1. create paddle and add on canvas 2. move paddle as it tracks…
K.Momma
  • 391
  • 4
  • 7
0
votes
1 answer

How to check if a bitmap/graphic exists at a certain coordinate and get its type?

Is there a function whereby I can provide co-ordinates (x,y) and retrieve whether or not a graphic or a bitmap exists at that coordinate on the view? I am creating the game 'breakout' on android. I have an array of bricks objects (that have their…
user2316667
  • 5,444
  • 13
  • 49
  • 71
0
votes
1 answer

Problems with Brick Collision Detection in BreakOut game

I've done my first BreakOut Game while completing an assignment for Stanford University CS Online Course for java. However I noticed during play testing that when the ball sometimes hits a brick while travelling diagonally it ends up hitting several…
0
votes
2 answers

Breakout ball collision in libgdx

I'm currently trying to make a breakout clone using java and libgdx. I'm currently experiencing trouble getting the ball to bounce off of the blocks at the appropriate angle. In short the problem I'm having is that the ball moves 12 pixels every…
Kyle Mitchel
  • 23
  • 1
  • 4
0
votes
1 answer

Changing my Jquery project to plain javascript

I created a breakout game for a school project using jquery and a helpful online tutorial. The working fiddle is here: http://jsfiddle.net/Kinetic915/kURvf/ EDIT revised fiddle: http://jsfiddle.net/Kinetic915/nVctR/ I have changed most to…
user2138152
  • 131
  • 3
  • 10
0
votes
1 answer

Javascript set to window size

I am attempting to set a canvas element to the size of the current window. I did so successfully with jquery here: function windowsize() { WIDTH = $("#canvas")[0].width = ($(window).width()); HEIGHT = $("#canvas")[0].height =…
user2138152
  • 131
  • 3
  • 10
0
votes
1 answer

Use plain javascript rather then Jquery

I am attempting to code the game breakout in javascript. Currently I have it working using JQuery in several locations. My professor does not want the class to use Jquery so I have to change the areas I use jquery to javascript. function…
user2138152
  • 131
  • 3
  • 10
0
votes
2 answers

Breakout with Flash: I need help to improve my Brick n Ball collision

I've been stuck on this problem for a very long time now, I've searched around alot and tried stuff, but nothing works. Some explanations are just very hard for me to understand as Im pretty new to programming overall and got alot to learn. I have…
Leyon
  • 3
  • 1
0
votes
1 answer

How to Make the Ball Bounce only if it Hits the Paddle in Python, Pygame (Breakout Recreation)

can anyone help me with this? i am having trouble making a simple way to detect if a ball hits a paddle and then bounce it by changing the rect_change_y variable. here is code that works but the ball does not interact with paddle or die when it hits…
Pip
  • 4,387
  • 4
  • 23
  • 31