Jump to content

Python

Indigo

does anyone use python? and also if you do do you know how to make the pygames instalization work :/ becasue as far as i can tell it just doesnt work at all... (ever)

Link to comment
Share on other sites

Link to post
Share on other sites

Make sure you have the correct version of pygame installed for version of python you are running.  A problem I encountered was that I tried installing the 64 bit version of pygame for the 32 bit version of python.  

https://bitbucket.org/pygame/pygame/downloads

 

Here is the basic syntax for initializing pygame, it is possible you have it installed correctly but made a simple mistake in the code.

import pygame, sys  #Imports pygamefrom pygame.locals import * pygame.init() #Initializes pygamepygame.display.set_caption("<PROGRAM NAME>") #Sets the title at the top of the windowscreen = pygame.display.set_mode((1280, 720), 0, 32) #Creates the window#The rest of your code herepygame.display.update() #Call this every time you want to update the display 
Edited by diiPex
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×