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
vote
3 answers

Says left hand side must be resolved to variable?

I am trying to clean up code for class and when creating collision method, Eclipse keeps giving me errors that "the left hand side of an assignment must be resolved to a variable. This error is occurring at all my if statements. I know this problem…
SHut14
  • 11
  • 1
1
vote
1 answer

How to breakout from an iframe?

I have a site which works within a iframe, i want it to breakout the iframe, and redirect to another site, the whole new site with its own url should open, not maintaining the current URL or iframe. I have tried
1
vote
2 answers

Java - Breakout physics?

I'm creating a Breakout game and I've previously asked a question here but no solution was proposed. I've got simple physics to invert the Y velocity of the ball on collision with the paddle. But I to implement a more advanced physics system, for…
user3422952
  • 319
  • 2
  • 8
  • 17
1
vote
0 answers

C# XNA - Ball & Brick Continuous Collision Detection

I've been having some trouble applying correct velocity changes to my ball when it hits bricks in my Breakout clone. In a previous question, I was advised to use continuous collision detection, as well as other methods such as finding the…
Dragonphase
  • 319
  • 2
  • 6
  • 15
1
vote
2 answers

Is it there anyway to make a div within a div 'breakout' of the parent div without specifying widths of child, just childs elements

ie I have a div, below is a hidden div, which is wider than the div above. I want to specify the div inside to have elements with greater widths than the div above. these elements right hand side is aligned to the right hand side of the div above,…
user256410
  • 945
  • 3
  • 9
  • 12
1
vote
1 answer

How to make rect from the intersection of two?

I'm working on a breakout clone and I've been trying to figure out how to get the intersection rect of two colliding rects so I can measure how deep the ball entered the block in both x and y axis and decide which component of the velocity I'll…
bzrr
  • 1,490
  • 3
  • 20
  • 39
1
vote
2 answers

C# XNA - Breakout-style ball physics

I am creating a project for a university assignment, and I have hit a bit of a snag. The problem is minor and can most likely be passed off as unnoticed, but it still bothers me and, being a procedural person in terms of completing work, I can't…
Dragonphase
  • 319
  • 2
  • 6
  • 15
1
vote
1 answer

Sandbox iframe attribute isn't preventing redirects in FIrefox

I'm trying to get iFrame sandboxing to work, and Firefox is giving me trouble. I use jQuery to set the iFrame's src attribute to one of several different pages. But my target pages have JavaScript…
DawnPaladin
  • 1,426
  • 14
  • 26
1
vote
0 answers

Breakout in jquery to plain javascript

I created the breakout game in jquery with help of a handy tutorial. My professor now tells me it must be in plain javascript and I am having trouble converting to plain javascript. The fiddle is here: http://jsfiddle.net/Kinetic915/9bLEk/6/ the…
user2138152
  • 131
  • 3
  • 10
1
vote
1 answer

created a simple BREAKOUT game with jquery, attempting to convert back to plain javascript

I created breakout using some jquery and a handy tutorial online. Here is the fiddle: http://jsfiddle.net/Kinetic915/9bLEk/6/ I successfully changed the WIDTH and HEIGHT accessing the window size like this: From: WIDTH = $("#canvas")[0].width =…
andrsnn
  • 1,591
  • 5
  • 25
  • 43
1
vote
0 answers

Needs fancybox to break out of iframe

I read some post asking for this and i tried to work it out but i'am not good enough to make it work please help! :) I have a site where i have an iframe in that iframe i have a link that should open in fancy box but not only in current iframe i…
Robert
  • 11
  • 1
1
vote
5 answers

Getting NullPointerException with equals

im having trouble with null pointer errors in java, im trying to make a breakout game and i know what the problem is its this. GObject collider = getElementAt( ballX, ballspeed); if(collider.equals(paddle) && collider){ ballspeed =…
1
vote
2 answers

How can I make it so no one can put my iWeb site in an iframe?

If anyone knows, I would like to make it so no one can put my iWeb site in an iframe? How do I make my pages automatically break out of iframes?
AaronH
  • 47
  • 3
  • 9
1
vote
2 answers

I’m making a breakout game put my paddle keeps exceeding the boundary, how can I fix this

double right = xCenter + (PADDLE_WIDTH / 2); double left = xCenter - (PADDLE_WIDTH / 2); paddle.setLocation( xCenter - (PADDLE_WIDTH / 2) , PADDLE_Y_OFFSET ); if (left == getWidth()|| right != getWidth()) { paddle.setLocation(xCenter -…
Awsome Man
  • 13
  • 1
0
votes
0 answers

Strategy which opens trade if (1) SMA20 upwards (2) ADX 30+ (3)falling under SMA20

This script should open a trade under the following conditions SMA20 goes up Last closing falls under SMA20 ADX is above 30 it shall use the highest high of the last 5 candels as take profit and the lowest low of the last 5 candles as stop…
1 2
3
9 10