Sytten / WheelsRedemption

The Wheels of Redemption
GNU General Public License v3.0
4 stars 0 forks source link

Feature #1 #16

Closed Sytten closed 8 years ago

Sytten commented 8 years ago

Adds the surface effector (conveyor belt effect) Adds triggers on each side to change direction Changes mass of hero and gravity scale (feels lighter and more reactive) Changes walls physic material (no friction and bit bouncy)

Corb3nik commented 8 years ago

Looks good, but I feel like the hero moves too quickly.

On a design side, since its the hero that behaves according to a collision on a wall, shouldn't the script be on the hero and behave accordingly? It seems counter intuitive to have the environment control the movement of the hero...

So there would be an onCollision event on a MovementBehaviour script for the Hero object. And based on the tag of the collision object, we would behave accordingly...

So our script could be very flexible :

switch (object.tag) {
    case "wall" :
           hero.speed = hero.speed * -1;
    case "enemy" : 
           ...
}
Sytten commented 8 years ago

Movement speed can be adjusted even if I feel its right, the game must not feel "heavy".

I believe the current design is better, the environment affects the player and beside the surface effector is on the surface not the player.

The onCollisionEnter would create a big mess of switch and if for the different exceptions (like the speed must only be reversed if the collision is with the platform and the wall). I don't think it would be flexible nor really nice to work with...