Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

pong

  1. menator01

    Python Pygame pong - part 2 (The paddle)

    In part 2 we will: create the paddle class create allsprites group create the paddle movement import pygame # Create empty list and sprite group players = [] allsprites = pygame.sprite.Group() class Player(pygame.sprite.Sprite): ''' Player class will define our player and player...
  2. menator01

    Python Pygame pong part 4 - Scoreboard

    In part 4 we will create a scoreboard placed at the top of the pong table In the while loop add # Draw the scoreboard to screen board = pygame.Surface([window[0], 40]) board.fill((60,60,60)) screen.blit(board, (0,0)) # Add a font font = pygame.font.Font(None, 24)...
  3. menator01

    Python Pygame pong part 5 - (Start Page)

    In the 5th and final part of the tutorial we will create a start page for our pong game. The start page will present some text an image and instructions on how to start the game. # Class creates a start/title page class Page: def title(self): ''' title method creates a start page...
Back
Top Bottom