Game Design Findings

April 15, 2009

1) What didn’t work at first when checking for collisions?
2) What was the first thing you changed to make the collision to work in the opposite direction
3) What does _y and _x do?
4) What other object properties did you find that you manipulated to make things change in the character?
5) How did the “speed” of the character change the behaviour when it hit the object? Explain why this happens.

1. Instance names have to be complementary to the code. Also, the code we were given had 3 ‘_y’s and a single ‘_x’ when there should be two of each, positive and negative.

2.  I changed one of the ‘_y’s to ‘_x’ so that there would be two of each, positive and negative.

3.  _y and _x refer to the relative x and y coordinates of the object.

4. I added _rotation which made the character rotate to the angle value set so that the character rotates as the arrows are pressed.

5. When the character speed was too fast, it passed through the wall, but when it was slowed down it began to push it and show signs of density.

Advertisement

One Response to “Game Design Findings”

  1. JoinTheNaby said

    thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.