About 19,800 results
Open links in new tab
  1. python - Add scrolling to a platformer in pygame - Stack Overflow

    use python 3; use a sprite group to handle the camera; refactored some duplicate code; since Vector2/3 is now stable, use them for easier math; get rid of that ugly event handling code and …

  2. Is it possible to make games in Python without Pygame?

    Feb 5, 2018 · Pygame is only one of many python libraries which provide access to a graphics API. To create a game using python, here are some other options: Panda3D - a game engine …

  3. python - Making a Platform in Pygame - Stack Overflow

    Jan 9, 2020 · I'm trying to make my platform game and don't know how to make the player not go through platforms. I'm very new to Python and Pygame so some help would be very …

  4. python - Collision detection for 2D platformer - Stack Overflow

    Mar 1, 2020 · I have a couple of platformer-like games in javascript, and this is how I implemented collision: 1. Stop falling when land on the platform: You can give your sprite a rectangle as a …

  5. python - Platformer Collision in Pygame - Stack Overflow

    Nov 15, 2013 · I was trying to write a platformer in Pygame, but for the past few weeks I've been stuck on the collision detection between the hero and the platform. Here are my classes: class …

  6. python - How to make a realistic 2D player movement (jump, …

    Sep 5, 2020 · I particularly recommend you for your project Pygame Platformer Tutorial. The code can be simplified a lot by the use of pygame.sprite.Sprite, pygame.sprite.Group, pygame.Rect, …

  7. How Can I Program Quadratics Into a Simple Platformer?

    Apr 27, 2016 · I'm trying to make a simple platformer game with Python/PyGame. I cannot seem to figure out a simple way to program the jumping mechanism. I got to the point where the …

  8. python - Enemy Movement in Pygame Platformer 2D - Stack …

    Jun 29, 2020 · Now I'm going to put all this into a Python class, but it could also go into a simple list. But these get unwieldy with more than a few points of data. # As a list enemy_image = …

  9. python - Pygame tilemap collisions (make it return which side is ...

    Jun 16, 2020 · How do you make a 2d platformer out of this ? I just need a piece of code that can tell which sides of the player is touching a tile and returns it so I can then make conditions that …

  10. python - How to make a character jump in Pygame? - Stack …

    To make a character jump you have to use the KEYDOWN event, but not pygame.key.get_pressed(). pygame.key.get_pressed () is for continuous movement when a …

Refresh