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.

130 questions
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
  • 169
  • 2
  • 4
  • 14
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
  • 855
  • 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,279
  • 3
  • 12
  • 34
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
  • 169
  • 2
  • 4
  • 14
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,384
  • 14
  • 23
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
  • 121
  • 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,439
  • 5
  • 23
  • 39
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

Redirect URL isn't breaking out of iframe

I have a MailChimp form embedded in an iFrame and it's setup to redirect to a thank you page (another URL on my website). It was all working perfectly until I updated the iFrame plugin and it now redirects within the iFrame itself and the main URL…
0
votes
0 answers

DDQN not training on breakout

I'm trying to get Breakout going based on a implemented version of Double Deep Q Network. My problem is that I don't see any improvement even after 6000 episodes. At first sight I also don't see any problems with the hyperparameter set up: gamma =…
0
votes
1 answer

R Plotly Stacked Bar breakout date not in correct order

I have an R plotly stacked bar chart where it's broken out by date. I am trying to change the order from the oldest date 10/1/2020 to the newest date 01/01/2021 on top. I noticed in the current state that it's not even in the correct order of…
newbie_146
  • 107
  • 8
0
votes
2 answers

Stanford cs106a - Breakout exersize

I'm trying to learn java by following the cs106a course online. Currently I've arrived at the breakout exersize and I'm having some trouble with bugs I haven't finished it completely but I want to solves these issues first before I go…
Ramin
  • 11
  • 1
  • 2
1 2
3
8 9