Results 1 to 4 of 4

Thread: Real Quickun

  1. #1
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45

    Real Quickun

    Now this is one decision I cant make. On rectangles I've set it so you define the width and height of the rectangle and it draws down and right of the draw co-ordinates. However, for triangles and pentagons that have no upper left corner (this might confuse newbies) should I set prometheus to draw from the center of the shape?? or Should I do that with all of them? Or should I add a procedure to switch it round?

    Just a confusing set of thoughts...

    I am writing an article that overviews the changes so y'all can see how this is taking shape.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  2. #2
    Make two functions with different functionality - one with render from left top corner, and second one - with render from center of shape. But more obvious is rendering from left top corner, and I made only this function, because variant where rendering starts from center - not needed so often

  3. #3
    For me it makes most sense to make the default origin of each object at its center, especially if you support rotated objects because most people would expect rotation to be around the center. You could also make it more general if a user can redefine the origin with a object.SetOrigin(x,y) call.
    ZGameEditor - Develop 64kb games for Windows.
    Thrust for Vectrex - ROM-file and 6809 source code.

  4. #4
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Now that is one heck of a good isea there VilleK. Why didn't I think of that Oh well, leave for holiday soon so lots of time to develop cheers for the info though.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •