import pygame import sysfrom pygame.locals import * pygame.innit() vec = pygame.math,vector2 # w for two dimenensional HEIGHT = 450 WIDTH = 4000 ACC = 0.5 FRIC = 0.12 FPF = 60 framepersec = pygame.time.clock() displaysurface = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("Game") class platform(pygame.sprite.sprite): def _init_(self) super().__init__() self.surf = pygame.surface((30, 30)) self.surf.fill((128,255,40)) self.rect = self.surf.get_rect(center = (10, 420)) class platform(pygame.sprite.sprite): def _init_(self) super().__init__() self.surf = pygame.surface((WIDTH, 20)) self.surf.fill((255,0,0)) self.rect = self.surf.get_rect( center = (WIDTH/2, HEIGHT)) PT1 = platform() P1 = player() all_sprites = pygame.sprite.group() all_sprites.add(PT1)