Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~471 People Reached
Favorite Forums
Favorite Tags
Member Avatar for DocBreen

[CODE] bif="bg.jpg" mif="ball.png" import pygame, sys from pygame import * pygame.init() screen=pygame.display.set_mode((420,300),0,32) background=pygame.image.load(bif).convert() mouse_c=pygame.image.load(mif).convert_alpha() while True: for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() screen.blit(background, (0,0))[/CODE] [quote=error] Traceback (most recent call last): File "C:/Documents and Settings//Desktop/Programming/PYGAME TEST/pygame.py", line 4, in <module> import pygame, sys File "C:/Documents and Settings//Desktop/Programming/PYGAME …

Member Avatar for IceLee
0
104
Member Avatar for DocBreen

[CODE]import random name = raw_input("Write your name:") print "Hello",name,"you're about to play Hangman." print "Everything you get a wrong guess, you will get a {}, if the word were Nicky you'd get 5 tries." raw_input("Press [[ENTER]]") words = ["bat","girl","epic","blocks","block","chips","boy","fire","fox","school","community"] wordnum = random.randrange(1,11,1) hangword = words[wordnum] a = len(hangword) print "The …

Member Avatar for TrustyTony
0
106
Member Avatar for DocBreen

[CODE] b2 = raw_input("Select your action:") if b2 == "Attack": mgeHP = 2500 print "You have decided to attack the mage." while True: dmg = random.randrange(1, 125, 1) mgeHPN = mgeHP-dmg print "You did" , dmg , "damge to the mage, giving it" , mgeHPN , "left" mgeHP = mgeHPN …

Member Avatar for cghtkh
0
150
Member Avatar for DocBreen

Here's the code I need to loop: [CODE] dmg = random.randrange(1, 10, 1) print "You have decided to attack the giant rat." ratHP = 100 ratHPN = ratHP-dmg print "you did" , dmg , "damge to the rat, giving it" , ratHPN , "left" ratHP = ratHPN [/CODE] If you …

Member Avatar for Gribouillis
0
111