[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/25/2006 at 11:42AM PST, ID: 22072192
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

creating a space shooter using OOD - need help defining my objects.

Asked by nimrodon in Game Programming

Tags: space, game, shooter

Hi,
I am making this "galaga" style space shooter game, and I'm trying to use object oriented approach. the game is written in Flash 8, but that's not the issue here.
I need help with the object planning. I'll explain my game and how I started dividing it into objects. I am a bit new with this stuff, so my approach maybe totally wrong.

hero - The hero is a spaceship that is controlled by keyboard. it can move left, right, and shoot.
enemies - there are several types of enemies that have different behaviours: they look differently, they move differently, they shoot different projectiles.
each stage contains several enemy waves, that are launched by timer events. when all timers events occur (all enemies have attacked), we advance to the next stage.

what I've done so far is created a basic enemy class that has 3 methods: fly ,checks if out of bounds , shoot .I've created a few enemy classes that inherit from that basic class, and have different fly and shoot methods.
the different projectiles should be implemented in a similar way.
the hero ship is currently not inside a class. it's in the main loop: it listens to user input and moves or shoots accordingly. it also check collisions with the enemies

my problem starts with the collision detection: which object should check it? the projectile? the ship? or maybe some collision manager? and if there was a collision, the main loop should be notified about it, and reload the stage. how does these object communicate?
from what I understand they shouldn't know about each other at all. I'm very confused with this.
I think I have to start from the beginning and plan it from scratch.

Does someone has experience with a case like this?

please help,
Nimrodon.












[+][-]12/01/06 08:32 AM, ID: 18054786

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Game Programming
Tags: space, game, shooter
Sign Up Now!
Solution Provided By: knowlton
Participating Experts: 3
Solution Grade: A
 
 
[+][-]12/03/06 08:35 PM, ID: 18066376

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12/15/06 09:54 AM, ID: 18147666

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12/15/06 09:54 AM, ID: 18147667

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/10/07 03:59 PM, ID: 18288960

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01/15/07 05:20 PM, ID: 18320859

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91