How do I implement collision detection with a sprite walking up a rocky-terrain hill?
        Posted  
        
            by 
                detectivecalcite
            
        on Game Development
        
        See other posts from Game Development
        
            or by detectivecalcite
        
        
        
        Published on 2013-09-26T03:29:14Z
        Indexed on 
            2013/10/28
            4:05 UTC
        
        
        Read the original article
        Hit count: 397
        
collision-detection
|sdl
I'm working in SDL and have bounding rectangles for collisions set up for each frame of the sprite's animation. However, I recently stumbled upon the issue of putting together collisions for characters walking up and down hills/slopes with irregularly curved or rocky terrain - what's a good way to do collisions for that type of situation? Per-pixel? Loading up the points of the incline and doing player-line collision checking? Should I use bounding rectangles in general or circle collision detection?
© Game Development or respective owner