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

create multiple brick in Java

This is my code so far for creating bricks, and it works: bricks = new Brick[5]; this.createBricks(); private void createBricks(){ for (int i = 0; i < 5; i++) { Brick brick = new Brick(0,0, Color.RED); bricks[i] =…
Anna
  • 11
  • 2
0
votes
2 answers

Trying to program breakout in Racket - unable to reset the worldstate

I've been trying to program breakout in BSL and I'm stuck currently. I'm trying to reset the game when the ball collides with the bottom, but I do not understand the error messages and tried lots of things now. Do you have any idea? (require…
Zeth
  • 3
  • 1
0
votes
1 answer

Unity C# 2d Breakout Clone, Null Reference Exception

Okay so before I begin, Yes I have looked online to find this answer. I've followed advice on multiple other questions, gone through the unity documentation, and done more than a few web searches and nothing I've found so far has solved the error.…
0
votes
1 answer

Breakout Brick Collision

I really need some help with getting collision detection to work with my bricks in my breakout clone. I've spent hours reading answers all over different websites but most seem to be in other coding languages I'm not that familiar with and not sure…
0
votes
1 answer

Breakout Game Multiple Key Handling

i want my rectangle to stop when the user press both left and right key. I researched about multiple key handlings but couldnt manage to find anything. package View; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class…
funky-nd
  • 637
  • 1
  • 9
  • 25
0
votes
2 answers

Why do we need to use a Timer each time we want to keep moving graphics with arrow keys?

I want to build a brekaout game. When I want to move the piddle using an arrow key it doesn't work. So I read a few articles and I saw that they use a timer to do that. Can you give me the reason why they do that?
Anass Amraoui
  • 25
  • 1
  • 8
0
votes
1 answer

Java programming, breakout game ball physics not behaving as expected

I am studying java with the book "The Art and Science of Java: An Introduction to Computer Science". One of the practice programs is to create a simple clone of the Breakout game. I am currently able to load the game, but am having issues with the…
0
votes
1 answer

Replace Max 7456 EEPROM w/ ASCII Table

I have a a Sparkfun Max 7456 breakout board that I am trying to rewrite the character table to an ASCII format. I have been following the Arduino + MAX7456 OSD thread but cannot seem to load the .mcm file to the breakout board. I have tried hyper…
0
votes
1 answer

Brickbreaker C# (ball-brick collision detection)

I am currently creating a brickbreaker clone (yeah, another) and have the ball-brick collision for 1 brick. I have 4 other bricks commented out, because when the ball collides with the brick I have the right code for, it just removes all bricks…
0
votes
1 answer

Trying to make a ball bounce back off of an arrays component? (cant think of a better word) C#

I have a ball bouncing off of paddles and walls as desired, i have then added a singular brick via the draw.Rectangle tool and had the ball bounce off of this and then change its colour but could not make it invisible to stop any further…
0
votes
1 answer

Multiple objects of Breakout in a single Picture Box

I'm creating a program that simulates that of the Breakout Game using C#. I've been learning various techniques on how to create the bricks, paddle and ball for the game but cannot work out on how to add them all into one picture box in Visual…
user4126035
0
votes
3 answers

spriteBatch.Begin is getting a NullReferenceException

I'm relatively new and inexperienced to XNA and I've been following Jamie McMahon's guide to creating a basic Breakout game in C# (http://xnagpa.net/xna4beginner.php). Recently, I've stumbled across Microsoft's Game State Management code sample…
0
votes
0 answers

How do I get the initBricks function to accept floats for better precision when placing bricks?

i'm trying to be very precise with the positioning of my bricks when using initBricks. however they are not placing exactly where they should be 9out by small fractions) and i'm pretty certain it is because my code is using ints where i'm trying to…
tidymonkey81
  • 63
  • 1
  • 6
0
votes
0 answers

java, android - breakout game - ball paddle bouncing

I made a simple breakout game for Android, and I have some problems when the ball reaches the bar (paddle). ball, bar are bitmaps. x,y are the positions of the ball, bx and by are the positions of the bar (paddle). speedX and speedY are the speed of…
padar_cs
  • 11
  • 4
0
votes
1 answer

How to make my collision check with Intersect between rectangles to work?

EDIT:here is the full code: https://dl.dropboxusercontent.com/u/65678182/assignment1.rar Any possible help is highly appreciated! I am trying to make a copy of the breakout game, but I have problems with checking if two objects (the ball and…
user3483682
  • 51
  • 1
  • 7