Author Topic: DrawPoly() released!  (Read 5022 times)

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
DrawPoly() released!
« on: June 10, 2011, 12:19:12 AM »
So yeah, I'm releasing the function DrawPoly(). It can be used to draw any shape, regardless of the number of points or orientation of the shape. It can be fully deformable, transformable, or simply a static shape. The colour, alpha, and line thickness are all customisable.

There are a few problems though: There isn't (I think) a way of defining a polygon at runtime, it must all be set up at design time and it can't draw circles. To draw circles, use DrawSprite().

Also, there may be a few bugs that can be avoided by giving values for all arguments, but I might put preventatives in for that later. You can, however move, deform, rotate, scale, etc. a previously defined polygon, and if people want explanations, I'll give them later.

It seems fairly self explanatory, so there aren't any comments this time, but I'll explain more if I'm asked.

(click to show/hide)


A demo is attached, so download it and have a look.
« Last Edit: June 10, 2011, 03:51:46 AM by Pilchard123 »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: DrawPoly() released!
« Reply #1 on: June 10, 2011, 12:36:03 AM »
Awesome dude :>

Problem with the demo level though.  "then" expected near "=", line 28.

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: DrawPoly() released!
« Reply #2 on: June 10, 2011, 12:57:41 AM »
Should be fixed now.