Questions tagged [python]

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

Python is a dynamically and strongly typed programming language, used for developing a wide range of applications. The philosophy of Python is succinctly formulated in The Zen of Python, which can be revealed by issuing this command at the interactive interpreter:

>>> import this

The exhaustive and up-to-date reference to the Python specification and standard library documentation can be found in the official docs. There are a wide variety of implementations. The reference implementation is known as CPython.

The current stable versions are 2.7.1 and 3.2.6.

634 questions
31
votes
5 answers

Famous games written in Python

I've seen a couple of these, namely Java and C#/XNA ...and I've recently been picking up Python. Which kind of made me think. What (famous) games have been written in Python, with Pygame/Pyglet/Pyopengl?
PrettyPrincessKitty FS
  • 10,355
  • 8
  • 47
  • 68
22
votes
3 answers

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 weapons (around 50 for starters) that yield unique…
henrebotha
  • 323
  • 1
  • 2
  • 8
21
votes
5 answers

noSQL - Is it a valid option for web based game?

Out of an opportunity and boredom, a friend and I decided to make a web based game. This is the first 'game' I will be making, since usually I program web apps in django. I've opted to use the same framework for the game, but I am not totally sure…
Pran
  • 381
  • 1
  • 2
  • 7
20
votes
4 answers

What's the best Python 3D engine?

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 issue.
John Riselvato
  • 351
  • 1
  • 3
  • 10
19
votes
4 answers

How can I generate random lakes and rivers in my game?

I have a 2D block building game and am trying to make randomly generated lakes and rivers. I have looked into the Perlin noise algorithm, but, I couldn't get it to generate random and nice results. I have been trying to use the python noise library…
Julian
  • 193
  • 1
  • 1
  • 5
19
votes
3 answers

What is a good algorithm for fractal-based procedural city layout?

Background I run a minecraft server where I'm going to design a starter city of fairly large scale. I have a series of things, like rule signs and mob cages, I would like to put in buildings there. The city itself will be extremely large and spread…
Ken
  • 870
  • 6
  • 13
18
votes
2 answers

Why does my sprite player move faster when I move the mouse?

I'm trying to develop a simple game made with Pygame (Python library). I have a sprite object which's the player and I move it using arrow keys. If I don't move the mouse, the sprite moves normally, but when I move the mouse, the sprite moves faster…
Drumnbass
  • 295
  • 3
  • 9
14
votes
5 answers

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 Maker game (The Iconoclasts) which ran at a…
user6482
13
votes
3 answers

How to make natural-looking paths with A* on a grid?

I've been reading this: http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html But there are some things I don't understand, for example the article says to use something like this for pathfinding with diagonal movement: function…
Anonymous Entity
  • 756
  • 11
  • 24
13
votes
6 answers

Efficient Algorithm for the boundary of a set of tiles

I have a grid of tiles of a known finite size that forms a map. Some of the tiles inside the map are put into a set known as a territory. This territory is connected, but nothing is known about its shape. Most of the time it would be a fairly…
ScienceSnake
  • 318
  • 3
  • 11
11
votes
3 answers

Would a Python game run on multiple platforms?

I have plans to write a game in Python and probably some SQL. I'm concerned about how versatile my program will be when I finish it, ideally I'd like it to run on Windows, Mac, Android, and iPhone... however I have a feeling the phones would be…
Vine
  • 173
  • 3
  • 9
10
votes
2 answers

How can I distribute a native executable for a Python program?

Lately all of my work has been in Python (and Ruby), and I'm in love with those two languages. There are many libraries for game development on Python but the problem I see is that many of those frameworks don't cover the "distribution" aspect of…
Rodrigo
10
votes
3 answers

Should scripts interact with an abstraction of the engine?

I'm using Java and Jython, and after some research I discovered giving scripts direct access to the engine interface could be a mistake, as it would tightly couple the two. It looks like most scripting that allows mods to create and manage entities…
user6214
10
votes
3 answers

Is it a good idea to develop non-trivial 2d game in python?

I am planning to develop 2D space RPG and i am facing the choice: what is the best language to write it in? My candidates are C++, Java and Python. Obviously, I want to write game in Python because of its expressiveness, speed of development and…
Anton Barkovsky
  • 203
  • 2
  • 5
10
votes
1 answer

Pygame for python 3.5?

I just got Python 3.5 from this link . 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 compatible with that version of Pygame that I had gotn for the 3.4. I Found the latest…
EdinsonC
  • 171
  • 1
  • 1
  • 6
1
2 3
…
42 43