PrimaryFeather / Sparrow-Framework

The Open Source Game Engine for iOS
http://www.sparrow-framework.org
Other
538 stars 173 forks source link

allow getting/setting location, pivot, and scale with SPPoint #1054

Closed tconkling closed 12 years ago

tconkling commented 12 years ago

I find myself frequently doing things like:

myDisplayObj.x = loc.x; myDisplayObj.y = loc.y;

which becomes a one-liner with this change:

myDisplayObj.loc = loc;

PrimaryFeather commented 12 years ago

Hi tconkling, thanks for the pull request!

You're right, operations like that are done frequently; nevertheless, I'd like to keep that part out of the core API, to keep it as minimal as possible. Thankfully, you can make changes like that very easily through Objective-C's categories -- so my recommendation is for users to create such utility methods themselves in custom categories.

I hope that's OK with you! Anyway, thanks for the suggestion!!

tconkling commented 12 years ago

No worries - Categories is fine with me! Thanks, Tim