Creating a breakout game

Hello every one,

i got the assignment to make a breakout game. i only know the basics of unity on the c# side. does any one maybe have some tutorials or sites where to find info that might be useful for a breakout game. it is for learning purposes only, there is no need for proffesional coding, just something to get met starting.

more ▼

asked Jul 21, 2011 at 02:50 PM

avatar image

26 7 6 9

probably you'll find something here: http://answers.unity3d.com/questions/12321/how-can-i-start-learning-unity-fast-list-of-tutori.html sorry I can't give any more direct pointers for your problem, have done very few tutorials myself yet. (I'm not even sure what exactly a breakout-game is... Oo I'd think it's about an inmate trying to get out of jail?) Greetz, Ky.

Jul 21, 2011 at 03:30 PM SisterKy

Breakout involves a paddle at the bottom of the screen that you use to bounce a ball around a level, and the level is comprised of bricks that, when struck by the ball, explode and are awarded points.

Jul 21, 2011 at 03:34 PM Jason B

Vector3.Reflect is your friend

Mar 05, 2013 at 01:23 PM Landern
(comments are locked)
10|3000 characters needed characters left

6 answers: sort voted first

I know, but most projects on the unity site are way to complex for me, i will try and find some good things in the documentation, but i will probably have the most problems with the bouncing against walls, since i have absolutely no idea how to do that.

Ps, why did any one vote my question down? is this a stupid question? if so, i'm sorry, i just needed help and this seemed like the best place to start with

more ▼

answered Jul 21, 2011 at 03:04 PM

avatar image

26 7 6 9

Please don't answer your own question with another question, use comments instead.

Jul 21, 2011 at 03:35 PM Jason B

It was likely voted down because it sounds like you've been assigned homework and you're looking for a quick solution. Additionally, this kind of question doesn't have a straight-forward answer other than "use unity" (like @Zacker essentially says above). This site is meant to solve specific issues and some people are more touchy about basic questions than others.

That being said, please don't post comments as answers. Instead, post on your original question or edit it to make the clarifications/additions you need.

Everyone starts somewhere. It's an unfortunate welcome to the community but I hope it won't dissuade you from sticking around.

Jul 21, 2011 at 03:39 PM Chris D

hmm... the downvote's probably due to the title and that the question is very unspecific. (you might want to edit that a bit) Downvote means that as it currently is, it's probably not going to help anyone except the question-opener.

people around here are getting a bit allergic towards questions that come off as 'write-my-code'-requests (and that's what usually 'how do I create x-y"-questions are). Also, 'I don't really have to become good, I just want/have to play around a bit' is not something people feel very inclined to spend their time for...

This board recently moved to a different softwaresystem and has some downsides that turn this place into a mess... A few weeks ago the community realized that things are going down the river, everything becoming cluttered, gazillions of already-answered questions, with high quality people jumping the boat... so everyone's getting a bit edgy...

Also, I wouldn't be surprised if someone bashes you for answering to Zacker in an answer instead of a comment, even though the board currently doesn't allow for users with less than 15 rep to comment on anything besides their own posts...

After salvaging the links, you can delete the question and the negative rep will disappear.

Greetz, Ky.

Jul 21, 2011 at 03:44 PM SisterKy

Ha! knew it... ^^' It's really not quite his fault =/ We should really have a discussion on this whole 15-rep-mark. It's stupid... =/

Greetz, Ky.

Jul 21, 2011 at 03:46 PM SisterKy

Ok i'm sorry every one for making an answer as a comment, i tought it was right, i won't make them anymore. and i also want to thank you all. i think every one here has given me enough information to use in my project.

And sorry for my bad english i hope you can understand what i mean

Jul 21, 2011 at 09:38 PM runetimon
(comments are locked)
10|3000 characters needed characters left

I'll set you on the right path:

If I was making a Breakout-style game in Unity, I would probably do it a bit differently than most people would. I would try using physics for the ball.

Of course, keeping with the fact that the ball doesn't "fall" in Breakout, just bounce endlessly, there are a few settings you would have to change. First, disable gravity. Second, make sure your ball and everything it collides with has a bounciness that disallows the ball to slow down as it impacts objects. Experiment with physics, and read the manual.

Lock the ball to a fixed position on the Z-axis, so it doesn't fly back or forward. The inspector on a rigidbody can be used to lock this.

The paddle is a simple rectangular object with a collider attached and a script that allows left/right movement. Translation is used here.

The blocks award points on destruction, destruction being caused by collisions from the ball. Use OnCollision and other tidbits. Again, read the manual for these.

Update and display scoring with GUIText.

more ▼

answered Jul 21, 2011 at 03:43 PM

avatar image

Jason B
1.8k 73 63 82

Actualy i was thinking the same thing, but just didn't knew how to do it. after i get some info about physics, i will try to make a breakout game this way. maybe it's a nice feature to keep a little bit of gravity in there, just to make it a little harder, and increase the gravity after the player reached a certain score? just speaking out loud. thanks anyway for this answer, i think this will come in handy later on.

Jul 21, 2011 at 09:46 PM runetimon

If you want to. Just remember that the player will need some way to keep the ball up if you decide to use gravity. That could potentially be an area to innovate and make something unique.

Jul 21, 2011 at 10:15 PM Jason B
(comments are locked)
10|3000 characters needed characters left

What you want is a script that reflects its direction against the normal of the surface it hits and then if it hits a block, the ball should destroy the block and points should be added to the score. You can make an array with all the blocks and when that array is empty, load the new level.

more ▼

answered Jul 21, 2011 at 11:42 PM

avatar image

287 52 41 47

(comments are locked)
10|3000 characters needed characters left

A breakout game should involve most of the same procedures as most other games or Unity projects. You should therefore be doing well with reliance on the regular documentation that came with Unity and which can be found on the net.

Although for Unity 2.6, this could maybe be a start: http://www.youtube.com/watch?v=5-X-Ebh1kYA

more ▼

answered Jul 21, 2011 at 03:01 PM

avatar image

96 7 6 10

(comments are locked)
10|3000 characters needed characters left

the best introduction i find for unity is for walker boy studios

hope it helps you as much as it helped me

more ▼

answered Jul 21, 2011 at 04:00 PM

avatar image

1.5k 7 8 22

Thanks for this, this looks realy helpfull. i'll make sure to check it out

Jul 21, 2011 at 09:44 PM runetimon
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Jul 21, 2011 at 02:50 PM

Seen: 5299 times

Last Updated: Sep 25, 2014 at 05:33 AM