Tagged Questions
Python is a dynamically and strongly typed programming language that encourages readability.
1
vote
5answers
107 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
...
4
votes
1answer
178 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 ...
1
vote
1answer
54 views
Pygame circular cropping/masks
I have been going through the documentation and the Pygame functions and classes today, but couldn't find a reasonable way to either create a circular crop of an image or how to use a mask to perform ...
1
vote
1answer
185 views
Pygame water ripple effect
I have Googled for it but there are no ready scripts - as opposed to the same effect on Flash. I have checked the algorithm on The Water Effect Explained and also tested an implementation of the ...
9
votes
3answers
433 views
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. ...
5
votes
3answers
316 views
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... ...
0
votes
0answers
173 views
is Python enough to build big game? [closed]
Possible Duplicate:
Famous games written in Python
i will start build big game , and i have python as the available option for me at the current time , but i don't know if it capable and ...
0
votes
1answer
105 views
python for game development [closed]
Possible Duplicate:
Famous games written in Python
Is python any good for game development? Can I have some examples of great indie python games.
So I can have an idea what it's capable ...
10
votes
3answers
213 views
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 ...
1
vote
2answers
126 views
Searching a map fewer times
... or better yet, removing the need to search the map altogether.
I'm either looking for suggestions on how to optimize my code, or a change in design.
In my component-based entity system, the ...
1
vote
2answers
168 views
Basic developing in python?
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 ...
1
vote
2answers
165 views
Secondary monitor freezes game window
I was bored and dragging my game window around the screen and noticed something interesting.
When I drag my game window over to my secondary monitor, the screen updating just completely freezes.
Is ...
4
votes
1answer
351 views
Issue with implemented Minesweeper algorithm
So I'm attempting to learn Python by way of Minesweeper. I've got experience with SDL, so I figured playing around with PyGame sounded like a fun way to learn the syntax of the language.
Anywho, I'm ...
0
votes
1answer
106 views
Batch blit vs separate blit
A tutorial that I have followed had me collect and blit all of my sprites with the following lines:
allsprites = pygame.sprite.RenderPlain((l_sprites))
allsprites.draw()
At the moment, this is fine ...
-5
votes
2answers
195 views
I want to use Python as a scripting language for my game, can I use it purely with C (not C++)?
I want to use Python as a scripting language for my game, can I use it purely with C (not C++)? It is important to me that I not use C++, and purely use C instead.