Python is a dynamically and strongly typed programming language that encourages readability.
0
votes
0answers
29 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 = ...
0
votes
1answer
70 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, ...
-2
votes
0answers
30 views
How to make a simple, updating counter in Python, Pygame [closed]
Notice: New to this site, not so new to StackOverflow though, assuming this is pretty much the same.
Anyhow, I am working on a game (code at end) and I want to make a counter for the number of balls ...
-1
votes
1answer
85 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 ...
1
vote
3answers
138 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: ...
3
votes
0answers
70 views
Creating Animal Crossing style world rendering with Python
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 ...
3
votes
3answers
190 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 ...
-1
votes
0answers
70 views
High Level 2D Python Game Engine with tiled integration [closed]
I am looking for a 2d game engine that is scriptable in python that is integrated with Tiled. By integrated, I mean it can use Tiled objects and (obviously) can open tmx files. It should also be high ...
-4
votes
1answer
221 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
48 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 ...
1
vote
2answers
206 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 ...
15
votes
2answers
542 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 ...
3
votes
2answers
222 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 # ...
0
votes
0answers
48 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:
...
1
vote
3answers
141 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 ...