Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Simple Start to Brick Breaker (Code Snipet Included)

Author
Message
Crazy Programmer
AGK Developer
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 24th Sep 2015 04:46 Edited at: 24th Sep 2015 04:57
I was playing around about to start a Brick Breaker project and before I start jumping off the deep end with it. I thought about sharing the simple start I am off too....For anyone to learn from...or for people to tell me I could do something differently



No Media is required...Give it a test and see what you think.

Feel free to take the code and run with it in any direction your heart desires.

The reason the paddle is made up of 3 sprites is because I wanted to have some control over the Balls X-Velocity Movement.

I tried to manage this using Friction on one paddle but failed

Beta Test Age of Knights:https://play.google.com/apps/testing/com.CrazyProgrammerProductions.my_AgeOfKnights
Download JellyFish Dive:https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_JellyFishSwim
Danishly
8
Years of Service
User Offline
Joined: 10th Aug 2015
Location: Norway
Posted: 24th Sep 2015 23:46 Edited at: 24th Sep 2015 23:48
This is cool! Great stuff for me to play around with, and good job

Edit - How long did this take you to make?

Just started - Much to learn
Crazy Programmer
AGK Developer
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 25th Sep 2015 04:33
Quote: "This is cool! Great stuff for me to play around with, and good job"

Thanks boss

Quote: " How long did this take you to make?"

I don't know maybe 2 hours...It took me awhile to figure out Physics Restitution was not what I needed, and just update the X/Y velocity when in contact with a sprite.

Beta Test Age of Knights:https://play.google.com/apps/testing/com.CrazyProgrammerProductions.my_AgeOfKnights
Download JellyFish Dive:https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_JellyFishSwim
Danishly
8
Years of Service
User Offline
Joined: 10th Aug 2015
Location: Norway
Posted: 29th Sep 2015 22:19
Just a quick question, why do you scale the physics down?
Just started - Much to learn
Crazy Programmer
AGK Developer
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 29th Sep 2015 22:23
No reason for this project, I copied and pasted the setup template from an old project that I used the physics scale on. Didn't pay enough attention I guess...It shouldn't be there
Beta Test Age of Knights:https://play.google.com/apps/testing/com.CrazyProgrammerProductions.my_AgeOfKnights
Download JellyFish Dive:https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_JellyFishSwim

Login to post a reply

Server time is: 2024-04-19 06:38:46
Your offset time is: 2024-04-19 06:38:46