Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #4K
~25.6K People Reached
Favorite Tags

24 Posted Topics

Member Avatar for Darkangelchick

If you wanted to start 2d games in python, I begin with pygame (a python port of SDL). There are tons of tuts everywhere, just have a look. Try [url]www.pygame.org[/url] for more info.

Member Avatar for shadwickman
0
150
Member Avatar for besktrap

Hi all. Is there any way that if I give python a string, it can convert it into code? Example, say I am given this string: [CODE=python]string = "Class( 0,100 )"[/CODE] Now I want to convert it into code: [CODE=python]Class( 0,100 )[/CODE] Any ideas? Thanks.

Member Avatar for abhigyan91
0
12K
Member Avatar for tomtetlaw

there's not alot of info about it, but check the pygame website [url]www.pygame.org[/url]

Member Avatar for shadwickman
0
125
Member Avatar for pupspark

Seems like you are transitioning from c++/c to python. ( BTW when you have an if statement, you don't have to have parenthesizes around your expression). When you call a function, there is no need to put a semicolon next to it. Taking it away should resolve the problem.

Member Avatar for siddhant3s
0
206
Member Avatar for besktrap

Any one know where I can find the pygame code to create a screen where you can draw simple lines by click and dragging the mouse? I know how to create lines with the pygame.draw.line(screen, (0,0, 0), (3,200), (9, 200)) script (using that as an example), but am looking for …

Member Avatar for world123space
0
318
Member Avatar for besktrap

hi everyone! I have two files, main.py and sprite_class.py. sprite_class.py is in a separate folder called lib. here's a quick diagram: ------------------------------------ /folder engine/ main.py /folder lib/ sprite_class.py ------------------------------------ ...sprite_class.py contains a class called Sprite: [CODE] # sprite class class Sprite(): def __init__( self, start_x, start_y, image_path ): self.x = …

Member Avatar for besktrap
0
10K
Member Avatar for besktrap

Hi everyone. I'm having a little trouble trying to understand what argument passing really is. I know that it 'passes' arguments, but what does that actually mean and how can you use it to my advantage? ex: [CODE] def New(spam,n=1): [/CODE] so what does that actually do?

Member Avatar for besktrap
0
120
Member Avatar for besktrap

Hi everyone! I am currently creating somewhat of a platformer/puzzle game in pygame and ran into a problem with creating levels. I really don't want to take the time to program collisions with the player and each platform on the game, because that would obviously take forever. I was thinking …

Member Avatar for besktrap
0
145
Member Avatar for besktrap

hey everyone. i am writing a program in python w/ Tkinter and ran into a problem with padding. So, i have a Label object named DataPool_Text. when I run it (side=TOP), it goes to the top middle of the screen. I know how to use padx, but what would I …

Member Avatar for woooee
0
71
Member Avatar for besktrap

Hello all. I'm working with pygame and are trying to implement some type of server.

Member Avatar for besktrap
0
105
Member Avatar for besktrap

does anyone know how to shutdown a computer on windows XP (using python of course ;) given the IP address and the computer name (probably don't need it, though)? I don't want to use os commands like os.system("shutdown -i"). Thanks in advanced!

Member Avatar for mn_kthompson
0
113
Member Avatar for besktrap

Hi everyone. I'm currently working on a Tic Tac Toe game, and I am having a little trouble with, well, I'm not even sure what to call them. They are a variable with brackets like so below. Anyway, I have this variable: [CODE]char Line_One[3] = { ' ', ' ', …

Member Avatar for VernonDozier
0
107
Member Avatar for besktrap

Hi y'all. I'm just starting to learn HTML and just had a few questions. I was using some tutorials from w3schools.com, and I came across Event Attributes. So I have this textbox, and I want it, when clicked, to clear the the text box of it's value, and change the …

Member Avatar for Walkere
0
147
Member Avatar for besktrap

Hopefully this is the correct place to post this, so here ya go. I'm learning HTML and just had a few questions. I was using some tutorials from w3schools.com, and I came across Event Attributes. So I have this textbox, and I want it, when clicked, to clear the the …

Member Avatar for essential
0
1K
Member Avatar for besktrap

hello everyone, just a quick question about pygame rotations. If i have an image, say "image.bmp", how would I zoom in on that image? Thank in advanced

Member Avatar for vegaseat
0
65
Member Avatar for besktrap

Sorry about the second thread, I forgot to include this on my first one. Anyways, is it possible for someone to use the "echo %text here% >> %location of file here%" command to save some text to a file in a different folder? I did it, but got a message …

Member Avatar for mittelgeek
0
125
Member Avatar for besktrap

Hi everyone! I am making a simple chat program in batch (it doesn't use the net send command). It consist of a main DOS window that you chat with called PM, a .txt file called Log that stores what you say, and a DOS window called PM LOG that prints …

Member Avatar for mittelgeek
0
182
Member Avatar for besktrap

I everyone! I'm having a little math trouble with a simple physics program I'm writing in python w/ pygame. If you notice in the code where it says: "((-ballSpeed[1]/4*3))", my ball on the screen just sits there and does nothing!! Whats wrong with my program? [CODE] import sys import pygame …

Member Avatar for besktrap
0
235
Member Avatar for besktrap
Member Avatar for besktrap
0
195
Member Avatar for besktrap

So, I'm making a simple program that can edit text files. I have a text input that says "Please enter the name of the file, followed by a '.txt'. ". Although, whenever I enter a name, it will only show you the first character of what you entered. So, how …

Member Avatar for VernonDozier
0
101
Member Avatar for besktrap

how would I tell python (using pygame code) to do an event after a certain amount of time? Would I use pygame.time.Clock()?

Member Avatar for Scuppery
0
67
Member Avatar for besktrap

I'm writing a gravity simulation in python and pygame, and had a quick question. Say I have an object that I can move. Lets call it "square". Then I created a line like so... [CODE] pygame.draw.line(screen, (0, 0, 0), (84, 368), (510, 368)) [/CODE] How would I tell python not …

Member Avatar for besktrap
0
114
Member Avatar for besktrap

OK, so on my program, whenever I enter in incorrect selection (when I am actually running it), it goes back to the main loop and continually loops! what's wrong with it? here's the code: [CODE]/* Copyright: 2008 Author: Besktrap Date: 13/07/08 09:19 Description: a short buggy calculator I made */ …

Member Avatar for Narue
0
80
Member Avatar for besktrap

Hi everyone! I'm new here, so just letting you know that. Anyway. I'm currently writing somewhat of a game in pygame and had a few questions for anyone who would be able to help me. I have created a python program that moves and object in a window, and I …

Member Avatar for besktrap
0
107

The End.