Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Recently I downloaded a game off pydev and the imports for it look like this below.
C#
import pygame
from pygame.locals import *


However I have only ever created games by calling the in this way.

import pygame
import player
import enemy


I have called in the class one by one.

What does the lines of code at the top do? does it call all of his classes in?
Posted

1 solution

Maybe this will help you to understand it better.

http://www.sthurlow.com/python/lesson09/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900