Gornova / MarteEngine

MarteEngine is a Java Engine for videogames
http://randomtower.blogspot.com
Other
74 stars 20 forks source link

TopDownActor #77

Closed Stef569 closed 12 years ago

Stef569 commented 12 years ago

The TopDownActor uses Vector2f mySpeed. Why does it not use the entity speed. An entity can only have 1 speed right?

See https://github.com/Gornova/MarteEngine/blob/master/src/it/marteEngine/actor/TopDownActor.java

thaaks commented 12 years ago

Yes, you're right. Good find, Stefan! mySpeed is obsolete imho.

Stef569 commented 12 years ago

No, It's a mistake :P entity.speed is the current speed. topdownactor.myspeed is the speed to apply if the actor can move.

Maybe a better name for myspeed would be moveSpeed?