
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 …
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 …
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 …
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 …
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 …
python - Enemy Movement in Pygame Platformer 2D - Stack …
Jun 28, 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 = …
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 …
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, …
python - Pygame camera follow in a 2d tile game - Stack Overflow
import pygame, sys from pygame.locals import * pygame.init() size = width, height = 480,320 screen = pygame.display.set_mode(size) r = 0 bif = pygame.image.load("map5 ...
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 …