RT, now there is a problem, I have long plagued the physical has not learned a long time. .
I do not know how to solve this problem in the end.
1 egg shape how drawn? (Objecive-c, or pygame Rect loaded with eggs graphic art? Did not roll up or not egg-shaped rolling feeling)
In the case of the first one of problem solving:
2, how to scroll? (It is easy to respond to keyboard events, needless to say by the left, so that each point above the eggs were certain rules to move to the left;. Still draw 7 bitmap that each one reaches the point of view, to simulate eggs Flip)
We do not know if I have any idea, or did similar DEMO. . pygame, objective-c, java you can.
Thank you. (I have sleepless nights, can not eat a meal.)
Reply:
It looks like a thread-like
Reply:
On the second question, can not be calculated after the completion of the rotation made the smallest rectangle, the bottom edge of the rectangle is calculated as an offset in the plane, and then set the location to draw the eggs with the offset.
Reply:
A bitmap. N opengl rotation direction, rolling or the like force-related simulation using the physics engine box2d like.
No comments:
Post a Comment