Python is a dynamically and strongly typed programming language that encourages readability.
2
votes
1answer
71 views
2D Terra(ria)in generation - Accidental noise
I'm currently trying to implement terrain generation as described on the following page:
http://accidentalnoise.sourceforge.net/minecraftworlds.html.
But I have issues understanding how to interpret ...
0
votes
1answer
116 views
Is There an Easy Way to Convert Python/Pygame code into C#?
I am working on a game, sort of like this and I want to convert it to C#, as it is currently written in Python. The reason of this is because I can add features more easily and with less writing in ...
10
votes
4answers
1k views
Python Performance vs Game Maker
I was originally thinking of creating a game with Python and SFML. I understand Python is slow compared to C++, but how is it compared to Game Maker?
The main reason I ask is I recently played a Game ...
7
votes
2answers
1k views
How can I resize pixel art in Pyglet without making it blurry?
I have a tileset of 8x8 pixel images, and I want to resize them in my game so they'd be double that (16x16 pixels, e.g. turning each pixel into a 2x2 block.) What I'm trying to achieve is a ...
0
votes
1answer
34 views
PyGame sprite assistance
I've basically just started developing with PyGame and I am having trouble with the whole Sprite concept. I have been looking every where for guides on how to use it, I just can't seem to find any. I ...
2
votes
2answers
218 views
Pygame set_colorkey transparency issues
I'm having a strange issue that I cannot seem to remedy. I am doing some prototyping with Pygame on a desktop running windows and a laptop running OS X. Both are running python v2.7.3 (installed via ...
0
votes
1answer
83 views
Pygame top down shooter firing bullets
I'm working on a top down shooter in pygame and am having trouble getting bullets to fire. I'm using a class for the bullets, I'll show what I think is the relevant code.
This is what I do after the ...
-1
votes
2answers
42 views
Basic Python Question, Working with Function and List [closed]
I'm new to programming and learning Python over the web and I'm stuck on this problem.
The objective is to have a list of numbers and create a function that will evaluate that list of numbers and ...
2
votes
0answers
67 views
What to pass to scripting
I am using Java and libgdx to create a game and have decided to go a data driven approaching with Jython for this refactoring (just picked up Jython, have used Java for a while). The game is a ...
0
votes
1answer
23 views
pygame pyopengl resizing problem (under linux) [closed]
In test setup, i use no matrix transformations (screen coord space, -1.0 to 1.0)
The shader is simply gl_Position = position.
After resize i get correctly scaled render, but viewport is cropped into ...
1
vote
2answers
271 views
Packet handling system architecture?
I'm working on a multiplayer Flash game (ActionScript 3) with an accompanying server written in Python and I'd like some tips regarding networking, and specifically, the handling of packets and ...
2
votes
0answers
67 views
Detect collision in Blender
I am trying to write a Python function for Blender(2.66) game engine, that permits me to detect collision between two objects.
I tried to read the documentation, but it's very confusing, and I don't ...
0
votes
1answer
48 views
How to determine the best approximate direction [duplicate]
I want to determine which sprite to use when one agent is "facing" another agent.
My game is 2d, and uses 8-directional movement. Deciding which sprite to use for movement is easy enough since there ...
1
vote
1answer
105 views
how to represent a nested menu system?
I'm wondering what would be a clever way of making a layered menu system, in terms of what data structures to use.
An example of what I mean: A unit has the ability to construct buildings, and to ...
1
vote
1answer
113 views
pygame performance issues
I'm trying to make a tactics game using python and the infamous pygame library. I use threading for networking and pathfinding. The game uses a p2p lockstep architecture, with one of the players ...
3
votes
1answer
92 views
Pygame: circular motion with Bresenham's algorithm
I'm trying to figure out a way to move an object in a circular path. I read about Bresenham's circle algorithm, but all the codes available online draw an entire circle.
For my game, I want it so ...
2
votes
4answers
322 views
RPG movement holding down button
I've been writing a simple top down mini RPG in python.
My problem is that when I move the player I have to repeatedly tap the arrow key. Each time I tap the key the player moves 5 PX in the ...
0
votes
1answer
77 views
Pong pygame problem
I've been following a tutorial to make my first Pong clone. Here is the tutorial:
http://muagames.com/tutorials/pygame-3-pong/pygame-3-pong-step-1/
When I try to run it I get this error message:
...
1
vote
1answer
98 views
How do I determine if one value is within a certain range of another in Python
I've been working on the attacking in my RPG.
The problem I have recently encountered is, I have to be in Exactly the same x coordinate as the Enemy. When I want to attack the enemy this is what ...
0
votes
0answers
36 views
How to modify graph ingame?
The pathfinding in my game uses this function to generate a graph:
def make_graph(self, size, impassable):
nodes = [[astar_gridnode(x, y) for y in range(size)] for x in range(size)]
graph = ...
2
votes
2answers
682 views
Problems moving a rectangle in Pygame
I'm making a game in Pygame and I want to be able to target enemy unit.
I made it so when I click on them a variable "targeted" becomes true, and stays true until I click somewhere else on the screen. ...
1
vote
3answers
162 views
Solving the riddle on distributing a python built game?
So, I've done the research, and i've done the try/catch process of almost getting things to work. . . almost.
I've read this chart: ...
0
votes
1answer
87 views
How to make healthbar size relative to hp
Like in most games with healthbars, the units in my game have a hp_bar object which is a frame, with a slightly smaller rectangle inside which should get smaller (and change color) as a unit loses hp, ...
1
vote
2answers
206 views
Implementing Online Leaderboards for indie windows PC Game
I've just finished my game and I'd like to add some ranking functionality to it. I have a mySQL database running on my website and want to be able to insert and retrieve data from it. My knowledge in ...
-1
votes
1answer
121 views
Flixel or Pygame for a small game? [closed]
I have some experience in Bash and Python, Lua.
I've always wanted to try and make point & click quest games. Most
quest games I loved aesthetically and gameplay wise were made with
Flash.
So ...
0
votes
2answers
195 views
Online scoreboard in Python?
So my friend and I are working on an arcade-style game in Python and Pygame. We're beginning to look at the feasibility of an online leaderboard, given our current programming backgrounds. Such a ...
3
votes
0answers
76 views
Creating Animal Crossing style world rendering with Python [duplicate]
I've dabbled a bit with writing 3D rendering code in the past, although I'm interested in knowing if there is existing code (libraries) written for/with bindings to Python that might facilitate the ...
1
vote
1answer
1k views
Exporting UV coords from Blender
So I have searched on google and various other websites but I've not found an answer. The only ones I did find did not work.
So my question is how do I get UV coords from blender (2.63)?
Currently ...
3
votes
3answers
217 views
Best way to network the movement of 2D tanks?
I'm working on a multiplayer Flash game with a Python server and I have a quick question regarding how I should send positional updates for tanks for other players.
Should I choose
Option A:
When ...
6
votes
5answers
7k views
What's the best Python 3D engine? [closed]
I want a straight 3d Python engine that's easily obtainable for linux and easy to use. Soya3D failed for me because of the lack of documentation. I should be able to load common 3D models without an ...
1
vote
3answers
145 views
Geometry problem for area of sight
My player have a line of sight and all objects between the white lines, turns red.
To compute this, the following conditions are met: if the angle between the yellow line and the red line are small ...
0
votes
3answers
472 views
Basic developing in python? [closed]
I have basic experience in Python, and I want to know which is the best library to use in development. I was looking originally at Pygame but found it a bit lacking in tutorials. Are there any good ...
4
votes
5answers
457 views
Handling random with unique chance in Python
Okay, let's say you have a handful of enemies, each with their own 'rarity' to spawn.
For example:
monsterlist = []
snake = 'snake', 60
wolf = 'wolf', 80
antlion = 'antlion', 30
...
1
vote
2answers
751 views
2D animation example in pyglet (python) looping through 2 images/sprites every x seconds
Suppose you have two images: step1.png and step2.png .
Can anyone show me a very simple example in pyglet how to loop through those 2 images say every 0.5 seconds?
The character doesn't have to ...
1
vote
1answer
242 views
Implementing powerups for my Breakout clone
I'm making a simple Breakout clone in Python that will have very many powerups/powerdowns (so far I came up with 26). Some will affect the paddle (paddle missile, two paddles, short paddle, etc.), ...
4
votes
5answers
456 views
Collision detection performance problem
Using python and pygame I've built a collision detection system according to the instructions in this YouTube tutorial.
This is updated 40 times per second and controls movement and collision ...
1
vote
3answers
168 views
How can I make smoother upwards/downwards controls in pygame?
This is a loop I use to interpret key events in a python game.
# Event Loop
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()
if event.type == ...
-4
votes
1answer
271 views
Python 3d game engine? 2013? [closed]
I saw another question from 2011 on this, but it's 2013
What's the best 3d Python game engine to learn? Good documentation, cross-platform, good community, continuing development?
I looked at ...
0
votes
1answer
63 views
Pygame Bounding Box at Player Feet
I'm new to python and pygame and am trying to build a very simple "game" (it's more of a test for me to figure things out) in which you move a character around the screen and he can collide with walls ...
16
votes
2answers
600 views
How to structure code for many unique weapons/spells/powers
I'm an inexperienced programmer creating a "roguelike-like" game in the vein of FTL, using Python (no PyGame as of yet as I'm still only concerned with text).
My game will contain a large number of ...
1
vote
1answer
608 views
How can I fix these errors with Panda3D's sample projects?
I just installed the latest Panda3D packages on a Mint 12 32-bit virtual machine. Then I downloaded and configured Eclipse and tried to run the Asteroids sample project. The window is created ...
3
votes
2answers
226 views
How to implement armor? [closed]
I am a newbie in Python, I am very bad at math too and I need some help. Also close/move this post if you feel this isn't the right place for it.
Hero1 = 5000 # His HP is 5k.
Hero1dmg = 200 # ...
2
votes
2answers
242 views
Pygame window becomes unresponsive when I click it
I'm new to programming, python and pygame. This is some code I wrote to draw random colored rectangles on an 800 x 600 canvas. It does what I expected it to do but becomes unresponsive if I click ...
0
votes
0answers
55 views
pygame object returns wrong button object
Another question from dumb developer :)
I have class for window:
class MainMenuWindow(Window):
# singeltone:
_instance = None
def __new__(cls, *args, **kwargs):
if not cls._instance:
...
2
votes
1answer
48 views
pytmx: issue trying to get the correct texture rectangle for sprite for objetcs on map
:D Hello :D
I am currently developing a game engine. I'm using maps designed with Tiled and I placed several objects on a test map to develop the feature of loading objects as sprites/entities and ...
-2
votes
1answer
299 views
Which of these languages: Java, C++, or Python (Pygame) would be most effecient for a 2d rpg game? [closed]
I'm trying to create a 2d rpg game that could be comparable to Realm of Mad God, but would be singleplayer only. I would like to use Pygame but I heard that 1.It's too slow, and 2)It would crash to ...
3
votes
2answers
290 views
Does it make sense to use Lua scripting in a game developed in Python?
Well for C++ written games using Lua scripts for easy changing ai, quets etc is very reasonable and it's common. However now I'm going to write a game in pure python and I don't know if I should use ...
0
votes
3answers
488 views
smooth movement pygame
Hello im trying to learn more about smoother movement in games. I have created a little program to hopefully help me understand this. As far as i can tell i am suppose to track time, and update ...
3
votes
1answer
90 views
Pathfiding for groups of agents
How can we refine this path search method to make group movement more elegant? I'm trying to make a RTS-style game, using a 2d tiled gameworld. I have implemented an A* pathfinding algorithm which ...
1
vote
1answer
405 views
Fatal Python error: (pygame parachute) Segmentation Fault when using PyGame and cx_Freeze
I'm using cx_Freeze to package my PyGame game. I'm running Ubuntu Linux, so I used the source package. However, I got the following error when I run cxfreeze game.py:
Fatal Python error: (pygame ...



