Difference between revisions of "Thread:Talk:Bullet Shielding/Harder then I though/reply (2)"

From Robowiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
Here you go, enjoy!
 
Here you go, enjoy!
 
https://gist.github.com/Chase-san/7edb0974df656bec12d8
 
https://gist.github.com/Chase-san/7edb0974df656bec12d8
 +
 +
Sorry that it is a mess and for all the custom/internal class usage. But I don't think it is anything to foreign.
 +
 +
Vector is Point2D on steroids. Line is just Line2D with custom initializer. MintState tracks all data. It updates energy according to HitByBullet and BulletHit as well.

Revision as of 01:48, 19 February 2013

Here you go, enjoy! https://gist.github.com/Chase-san/7edb0974df656bec12d8

Sorry that it is a mess and for all the custom/internal class usage. But I don't think it is anything to foreign.

Vector is Point2D on steroids. Line is just Line2D with custom initializer. MintState tracks all data. It updates energy according to HitByBullet and BulletHit as well.