My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 5: Show stacked units...
  Back to list
 
Project Member Reported by RoeB...@gmail.com, Sep 11, 2008
Ok, basically, we need to see a group of stars (one each) for units that
are *stacked*
So, a simple approach would simply add a variable into the Ship class.
Anytime a ship then finishes moving - it will iterate through all other
player ships.
Then any are within like 10 pixels from each other, you add it to teh new
variable, which should be a list.

Then we will have the state engine go through and find any ships with
anything in this attribute.
If they do they are added to a new list for each group.

Then render a star for each object, decreasing the y pos for each ship.

 
Sep 11, 2008
Project Member #1 archw...@gmail.com
My suggestion would be to make a stack class. The ships have a variable for this
class and they check like you say, but they all link to the same stack object. Since
ships cannot move in groups, the stack will never change position. Either new ships
will join it, or all leave until only one ship remains (stack goes away). New stack
objects are made for new stacks.

This class renders itself, so it handles all the stars. I could take over this task
since I have an idea of what to do?
Sep 11, 2008
Project Member #2 archw...@gmail.com
We decided for me to take this over.
Owner: archwyrm

Powered by Google Project Hosting