Softpedia
 

MAC CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • EarthDesk 5.8.5
  • GraphicConverter 8...
  • MacPorts 2.1.1
  • CCleaner 1.03.131
  • Quicksilver ß68 Bu...
  • TextWrangler 4.0.1...
  • Google Chrome 21.0...
  • Winclone 3.3
  • ScreenFlow 3.0.6
  • Apple Security Upd...
  • Home > Mac > Development > Source
     Report malware

    Rectangle Collisions

    Download button

    Downloads: 703  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Size / OS:

    Binary Format:

    Last Updated:

    Category:
    PyMike | More programs
    Freeware / FREE
    3 KB / Mac OS X
    Universal Binary Universal Binary
    March 20th, 2009, 16:09 UTC
    Home / Development / Source

     Read user reviews (0)  Refer to a friend  Subscribe

    Rectangle Collisions description

    PyGame source code on how to do rectangular collisions with response

    Rectangle Collisions is a free and open source tutorial on how to do side-based rectangle collisions. It's extremely simple, and not very hard to understand.

    Basically how it works is when you move a rect, you first move along the X axis, test for a collision, move out, then move along the Y axis, test for a collision, and move out. This prevents the infamous "corner-catching" bug, and lets you move smoothly along walls.

    NOTE: Rectangle Collisions is licensed and distributed under the terms of Public Domain.

    Requirements:

    · Python
    · Pygame

     


    TAGS:

    Rectangle Collision | pygame tutorial | pygame source code | collision | rectangle | tutorial



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM