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,
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 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.
I have a raspberry pi with raspbian on it, and I've created a python script that I need to have running all the time. The problem is that after running for an hour or so, the script suddenly stops, and the python process shuts down. I have no idea why, and I'm very new to linux so I don't know how to debug it or anything.
I made my first CCR submission.I found it depressing that the mercurial version of pygame was not available on CCR, so I decided to upload it myself. For me, it's twice as fast as the pygame package in the normal chakra repository.Have fun!
got a problem with backtrack5. I'm accessing the backtrack machine using an ssh console from another pc running putty. whenever I start airoscript-ng I get:
Error: Access control for X is disabled for root. Please, as your normal user execute 'xhost +root' and press enter to continue.
logging in as a normal user and doing 'xhost +root' gives me: xhost: unable to open display.
hi guys,
I don't know why I run this command:
echo a>/dev/console
It is not responsed from console and hang.
this is a linux based gaming console it works out of the box using the usb cable for both NAND memory and SD memory To gain root access to the console the usbserial app need to be launched on the console and the usbserial module have to be loaded on li...