We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,415 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

What design pattern should I use to make this game??

Ok so my university has assigned me the task of creating a brick breaker game for android phones (full spec below).
What I would simply like to know is which design pattern I should be using to structure my program?
If I should be using more than one which should I use and for which aspects (i.e. which parts of the program) should I use them in?

FULL SPEC:
game should
• Have functionality to start and stop games on screen (i.e. a splash screen to control game play)
• Display the score while playing
• Have a Paddle to keep ball(s) alive.
o Controlled by touches on the screen and/or sensors within the phone
o The player will lose a “life” if the paddle doesn’t keep it alive. (Try different breakout games for inspiration.)
• Have a Ball (more balls will attract a higher mark)
o The ball bounces off walls except for the wall with the paddle
o When the ball hits a box it is removed for a reward (score)
• Have Boxes
o More than one box to be removed (for a reward in score)
o More than one game level, with different layouts and numbers of boxes.
o Levels must be created in a dynamic manner, so that new levels can be created easily.
• Use Multiple Threads

To receive high marks. One must:
• Add multi-phone / multiplayer functionality (using TCP networking) with two players playing against (or collaborate with) each other simultaneously, i.e. two paddles on-screen simultaneously, one controlled by each player (worth max. 15%).

Thanks

2
Contributors
5
Replies
1 Hour
Discussion Span
1 Year Ago
Last Updated
6
Views
tomtaila
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
tomtaila
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

It is allowed IF you post links to the other sites where you have asked the same question.
No one likes to waste answering a question that has already been answered.
It allows everyone to follow all the responses for the question.

NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16

It is allowed IF you post links to the other sites where you have asked the same question.
No one likes to waste answering a question that has already been answered.
It allows everyone to follow all the responses for the question.

Ok, lol actually that makes a lot of sense I was thinking "whats the problem?" before you put it that way. I'll keep it in mind for next time- cheers

tomtaila
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Good. We'll all appreciate it.

NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0957 seconds using 2.68MB