Python is a dynamically and strongly typed programming language that encourages readability.

learn more… | top users | synonyms

0
votes
0answers
12 views

Pygame Vertical movement of a comet

I try to make a platform game where comets will collide as the character,this comet must fall from a vertical angle This is my code: # coding=utf-8 import sys import pygame import random pygame....
2
votes
1answer
36 views

How to make a moving background with PyGame?

I'd like to create a moving background in my Python game, with an image, that moves up until it reaches the end, then it goes back to its first position. I'm still in my learning process and this is ...
0
votes
1answer
57 views

Which language is more proper for game development? [on hold]

I want to make and 2D RPG Multiplayer Game I already have really good ideas but I don't know what programming language should I use. I want to know your opinion, I want something with good library, ...
-1
votes
1answer
34 views

How to make a Infinite Verticle Scrolling Background in Pygame

Is there anyone who knows how to create an infinite verticle scrolling background in pygame? Your help would be much appreciated, thanks in advance!
3
votes
2answers
49 views

Preparing a 2D character to export from Blender to Unity?

I'm an animator for a game currently, and I don't have Unity (can't download due to too much gigs coupled with slow internet,) but the game designer told me I can use Blender to export animations into ...
0
votes
1answer
22 views

How to set size fairly

I had coded a simple click game with Python-kivy to android. You should click dots which are popping out randomly at screen. I set their size 20px to 60px as your level. But it seems when I try on ...
1
vote
2answers
65 views

Pygame: Collision detection

i've been adding some extra stuff like Gravity and a table to a simple pong game made with Pygame and Python, the problem is that i dont know how to add collision detection, so when the ball hits the ...
0
votes
0answers
11 views

Object freezes in the air when using Panda3d collisions

I'm trying to make a simple box fall to the ground in panda3d (1.10) This is the code I have so far: from direct.showbase.ShowBase import ShowBase from panda3d.core import * from panda3d.physics ...
-1
votes
3answers
168 views

A python script controlling a Unity game

I wish to build a simple game in Unity such that the objects in the game can be controlled via a Python script (or a code in any other programming language). Is this possible? If yes then how? If no ...
1
vote
0answers
91 views

Rendering thousands of circles in pyopengl

I am interested in rendering animated 2D vector graphics in python using PyOpenGL. As an initial test, I am trying to render thousands of pixel-perfect circles drawn using shaders. Here is the current ...
0
votes
0answers
32 views

How To Point An Object At Cursor? [duplicate]

I'm trying to make a Nuclear Throne like game in python 3 and pygame, but I got stuck at how to make the gun point at the cursor. If someone could show me how, that would be great. :D I looked at the ...
-1
votes
1answer
29 views

How To Extract A File In A Relative Location With Python? [closed]

I'm trying to extract a file with python 3(for my game launcher), and this is the code I'm using: import zipfile f = open('filenamehere.zip', 'rb') z = zipfile.ZipFile(f) for name in z.namelist(): ...
1
vote
2answers
84 views

PYGAME: When I release two directional keys together the player keep moving

I did the code this way to avoid the player to stop if a press two directional keys together making the movement more smooth. It works well but when I release two keys or more together the player keep ...
4
votes
2answers
102 views

Line Collision In Pygame?

I am working on a game(a platformer) that is physics and momentum based. I want to make it so that the player(a single dot) can bounce off of the lines with correct physics, but to do that, I need to ...
1
vote
1answer
29 views

Select motion path from curve in Maya Python

I need to obtain the motion path attached to a curve in maya using Python. This is the situation as shown in the editor: I want to obtain motionPath1 by calling a method on curve3 since they look ...
0
votes
2answers
91 views

Rotating hitboxes in pygame?

I'm using pygame.rect.colliderect() to check hitbox collision between sprites in my game, but now that i'm rotating the sprites, I'm realizing I can't do this because there's no way to rotate a pygame ...
-1
votes
1answer
313 views

Add Boo or Python to Unity 5

I'm new to Unity , but I'm more comfortable with python , Is there any way to use python for scripting language in Unity 5 ? I heard there is some language called Boo that is syntax liked python but ...
0
votes
1answer
47 views

How can I take a screenshot of a certain part of the screen in PyGame?

I need to for my pixel art tool that I'm making to help myself make games.
0
votes
0answers
39 views

Pygame image blitting makes game lag

So I have a tile-based game that is 216X384 units large. Each square in the cell_array is grass, which I pre-loaded with convert_alpha(). Each time it draws (I have fps at 30), it cycles through the ...
1
vote
2answers
82 views

Adversarial Search AI having problems with too many choices

I'm a game designer working with a set of coders trying to create a card game. Currently we're trying to implement a drawing mechanic in which you choose which card you draw, but the Adversarial ...
0
votes
1answer
57 views

How to figure out which tiles are within view, and where to draw them in the grid

I know there are a few questions on here similar to mine, but none of them seem to fit my needs. I'm using pygame to implement a tile based game similar to final fantasy or zelda from the early ...
0
votes
2answers
68 views

How do i approach these inheritance problem? (Pokemon Gen III) [closed]

I'm currently making a Pokemon clone on Python just for the heck of it. After fiddling a bit with some GBA ROM editing tools, i've found out that on these games there are, among other things: Events ...
-2
votes
1answer
88 views

Python: Programming a game GUI [closed]

I'm looking for some suggestion on books or tutorials to make a game GUI with inventory management, map , stats... in python, as this is the only language I know a bit of so far. I want to design it ...
2
votes
1answer
262 views

pygame for python 3.5

I am running python 3.5 and I want to install pygame, the website only supports up to version 3.2. I have tried a few forums on this and other websites but they are all for python 3.4. Does anyone ...
2
votes
1answer
50 views

Pygame time.get_fps() value

I was looking at the pygame.time.Clock.get_fps() method and after puting it inside of the while loop printing and checking it some times, i see that i starts to give its value after five frames (and ...
-1
votes
1answer
129 views

How to create a seemingly infinite text-based map in Python

I am looking to create a text-based map in which a player could (hypothetically) move through out infinitely. I was thinking I could do this through class objects defining towns / dungeons / etc. and ...
2
votes
1answer
148 views

What Is A Good Way To Make A Self Updating Game? (Python) [closed]

I've been making games and I have always had a problem if I wanted to sell a game. People would have to re-buy games to get the updated version. Does anyone have any ideas on how to make a self ...
1
vote
1answer
215 views

Implementing Shadow Mapping in Python and OpenGL 2.1

I am trying to create a little shadow mapping demo. My code is currently divided into three rendering passes: Pass 1 - Create the depth texture that will be used for shadow mapping on an offscreen ...
0
votes
1answer
55 views

Python: Character name and raw_input [closed]

I have a few lines of code here for Python: # Asks for a name def CC(): print "..." tick.clock(3) print "Welcome...\ What is your name, scared one?" name = str(raw_input("What is ...
1
vote
3answers
105 views

Ways to track time and character ages across many years of game time?

I'm working on a system to track large numbers of characters across long periods of time. Characters grow old and die, give birth to new characters, etc. It's a grand-strategy game, with warring ...
2
votes
2answers
86 views

How should I efficiently store faction relationships?

I'm working on a game that follows the life of a powerful magician as she lives, dies, and reincarnates dozens of times across hundreds of years. Meanwhile, empires rise and fall around her--she can ...
-5
votes
1answer
68 views

New to game development [closed]

I have some programing experience, and I have tried making some games. I have some knowledge with c#, but I am much better at python. I have a general code structure knowledge, so I am open to learn ...
0
votes
0answers
18 views

Spritesheet trouble / code review

http://stackoverflow.com/questions/34563084/spritesheet-trouble-code-review If the player presses right, i have an image of a guy facing right. Left, up, and down same concept. if he holds the button,...
0
votes
1answer
44 views

Remove bullets from sprite Group

I'm having an issue with removing objects from a sprite Group. What is happening is I have a bullet class and every time the user presses the player shoots a bullet. I have 'alive = bool' code and ...
0
votes
0answers
40 views

How can I make bullets go to the cursor in Pygame properly

So hey, I'm new into making games and programming at all, I tried to make a small game thingy in Pygame that would include a dude shooting bullets and stuff. However, I can't really get the shooting ...
0
votes
1answer
41 views

Pygame making Snake, need help with generating fruit with a random color

This is my function for generating an apple, I want it to generate a random color each time the snake eats it. def AppleGenerator(): fruit_colors = [crimson,powderblue,yellow,hotpink,...
1
vote
1answer
28 views

Text blits to screen at wrong y-coordinate

I have a program that is meant to scroll numbers/letters down the screen, like in the movie "The Matrix". When one of the columns reaches a letter in the user's name (obtained using user input), it ...
1
vote
1answer
22 views

Distance to rect edge from point based on direction

I have a rect that is at position (0,0) at the top left and is 2200x2200 in size. I am trying to specify the the distance to get to the edge of the rect in specific direction (degrees) from a point ...
2
votes
1answer
136 views

Pygame freezing on QUIT

I'm having problems with quitting a Pygame application (6502 based computer emulator). The part regarding exit looks like this: while True: do_something_200_times() for event in pygame.event....
2
votes
1answer
142 views

AI on a 2d grid in python

I'm trying to figure out how to do a simple search/chase AI. I know that I'm going to have to search around the mob entity to figure out if the player is close enough, I could probably get that done ...
2
votes
0answers
44 views

Does the latest version of Python have libraries for easy host/server connections? [closed]

We're working on a turn-based multiplayer Risk-type strategy game in Pygame, and I was wondering if there were any pre-existing libraries like PodSixNet that worked for Python versions 3 and up that ...
1
vote
3answers
221 views

Making games In Python [closed]

I'm a beginner at making games, and my eBook that I learnt Python from just made a 2D game and simple game like snake in Nokia because I want to know more Python in correlation with game development. ...
0
votes
3answers
124 views

how to avoid circular references between objects and map

I've been working on a turn based tactics game on a grid. I've been trying to figure out how to store and relate the grid and the objects on it. Essentially, my question boils down to how to ask ...
1
vote
1answer
99 views

Python - Holding down key to move a sprite works, but only in one direction [closed]

I've been testing out movement for a fighting game that I'm creating in Python. The problem is that when I try to move the sprite, it moves correctly to the left, but only ever works in that ...
4
votes
2answers
246 views

How to implement a mechanism to select language specific expression (python)?

On a game server, programmed in python, I want to be able to select language specific expression, according to the user's preference. Provided a 'name tag' and a 'language identifier' I want a ...
5
votes
1answer
29k views

Pygame for python 3.5?

I just got Python 3.5 from... LINK: https://www.python.org/downloads/windows/ previously i had Python 3.4 and the Pygame version 1.9.2a0. It worked perfectly. However, my the new Python 3.5 isn't ...
1
vote
1answer
162 views

How can I change the anchor point of a Pyglet sprite?

while trying to make my game, I noticed that you can't change the anchor point of Sprites in pyglet. I use some convoluted way(see bottom of the post) to draw my minimap(WIP) so that the rooms are ...
0
votes
1answer
619 views

Car Game: Engine and Gearbox calculations?

I am making a racing game inside of Blender Game Engine. You can see the latest video here to get the impression of what type of game it is: https://www.youtube.com/watch?v=0i3m-xXtnhc What I want to ...
1
vote
0answers
82 views

Get original image size in Ren'py

I'm building a visual novel and in one scene, I want to have a couple of different images move from one position to another and change size as it moves. My first position is called "doorway", my ...
0
votes
1answer
132 views

How do I check if pressed on a text in pygame?

How do I check if pressed on a text? This is how I draw the text: # Full code on https://github.com/Zwengel/bunny-badgers height = pygame.display.Info().current_h font = pygame.font.Font("...