I am installing pygame for Python3.2 because I want to do all the examples shown in a book, but on Ubuntu 12.04 I only have pygame for python version 2.7. But that is not as good as I want it.
when I run this code I can never get the if event == pygame.QUIT: to work
Code:
# -*- coding: utf-8 -*-
import random, sys, codecs
import pygame
import test, py
pygame.init()
#pygame.mixer.init()
#load sound
c = pygame.mixer.Sound('sounds/corrent.wav')
ic = pygame.mixer.Sound('sounds/incorrect.mp3')
# load image
bck_img = pygame.image.load('images/background.png')
bck_rect = bck_img.get_r
I am making a pong game and am putting it together a piece at a time. Right now I am working on a simple bouncy ball. I can make it move, but it wont bounce back. Basically I don't know how to set up walls .
I am trying to create a battleship in pygame and it works okay but after a bit the pygame screen doesn't respond but the console is still running.
*I'm pretty sure the problem is in the for loop in method ask() but I'm not completely sure*
*Also, I have the user enter information on the cmd window, not the actual pygame window*
Here is the code:
Code:
import pygame, os, time, sys, string,
Not sure if this is the right place, but here goes...
After today's update, I find that pygame won't start up and causes system-wide lag while attempting to start up. If I let it go for too long, I would have to restart my computer. Pygame worked fine before the update.
I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ssh.
Two mainly question about blender
Is there a way to use what is made using blender framework to use it on pygame so that it can be exported to android?
A way to export material from blender so that it can be used directly with an app on android.
P.D : i saw the blender page and some ways of doing this but all of them are on betas and so on....
I'm making an app to help me learn kanji and I need a textbox to let the user try to guess the kanji but pygame doesn't have a textbox module? does anyone know if theres an extension for this?
I'm a beginner python/pygame/wxpython programmer and I just got ubuntu because i heard it is python based, but I can't seem to start programming on it, the most i've figured out is how to run the python shell in terminal. any help?