Harder then I though

Jump to navigation Jump to search

Harder then I though

It really shouldn't be hard to get such a simple concept to work. I thought I had to working too. But apparently it was a number of flukes all happening in a row.

I am not particularly surprised I failed. I mean come on, its me. But I have a few more ideas.

Chase23:55, 18 February 2013

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

Return to Thread:Talk:Bullet Shielding/Harder then I though/reply.

 

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.

One last note. This is a very basic bullet shield. It might not work 100%. But it does work. That is enough for people to take it and run I think.

I'll rewrite it to not use special classes soon.

Chase00:46, 19 February 2013

Nice looking code.

Skotty02:57, 19 February 2013
 

Yeah, look again, I just fixed a bug. :)

Chase03:01, 19 February 2013