- Home /
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.
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, $$anonymous$$y.
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.
Answer by runetimon · Jul 21, 2011 at 03:04 PM
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
Please don't answer your own question with another question, use comments ins$$anonymous$$d.
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. Ins$$anonymous$$d, 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.
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 beco$$anonymous$$g 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 ins$$anonymous$$d 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, $$anonymous$$y.
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, $$anonymous$$y.
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
Answer by Jason B · Jul 21, 2011 at 03:43 PM
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.
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.
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.
Answer by Macdude2 · Jul 21, 2011 at 11:42 PM
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.
Answer by Zacker · Jul 21, 2011 at 03:01 PM
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
Answer by poncho · Jul 21, 2011 at 04:00 PM
the best introduction i find for unity is for walker boy studios
hope it helps you as much as it helped me
Thanks for this, this looks realy helpfull. i'll make sure to check it out
Your answer
Follow this Question
Related Questions
How can i make a simple quiz game in unity? 2 Answers
makin' 2d action adventure 1 Answer
how to apply universal shaders? 0 Answers
adding GUI text in 4.6.1f1 3 Answers
How can i make a ScreenShot and Share button in unity for AR(ARCORE) 1 Answer