Not to be confused with the Super User moderator, no matter how appropriate. Random variance is a very common component of many games. From calculating the amount of damage dealt, to determining what opponents will be faced, to constructing entire dungeons through procedural generation, randomness ...
6
votes
2answers
163 views
Can adversarial agents flip coins?
I was thinking about peer-to-peer games by considering a simple coin tossing game.
You open up your version of P2PCoinFlipping Beta 2.3 and it displays a
list of player name servers. After ...
5
votes
3answers
232 views
Random monsters move in-sync instead of individually
I am making a game in which monsters spawn randomly and begin to move around randomly. I am fairly new at programming but not at game development. Through using a few tutorials I was able to make 1 ...
8
votes
6answers
288 views
Is there a (family of) monotonically non-decreasing noise function(s)?
I'd like a function to animate an object moving from point A to point B over time, such that it reaches B at some fixed time, but its position at any time is randomly perturbed in a continuous ...
8
votes
2answers
372 views
Random numbers on C++
Recently I got used to modern languages which include a stock good random generator, which usually is the Mersenne Twister; now that I got back to C++ I have to decide what to use.
I searched for ...
0
votes
2answers
167 views
As3 Random movieclips from an array to the stage
For a game with orders and clients I was trying to create the following situation:
Every half minute, a client should appear at the counter. In this case I have an array with 4 movieclips (4 ...
5
votes
2answers
139 views
How to generate random points on the surface of a quadrilateral
Alright, I'm sure there has to be a simple way to do this but it eludes me at the moment.
I want to be able to generate random points on the surface of a quadrilateral in 3D space. (Defined simply as ...
10
votes
3answers
333 views
Biased, conservative random walk
I have a sprite which has Velocity and Position, either stored as Vector2. At each Update cycle, velocity is added to the position.
I would like to give the sprite a third vector, Target. New targets ...
0
votes
1answer
393 views
Large Blob of landmass in Minecraft Terrain Engine in XNA
I am creating a Minecraft Terrain engine in XNA, and want to create a large blob/cluster of blocks, in a random sort of blob thing, shaped somewhat like the stuff under the Volume Rendering heading on ...
2
votes
3answers
615 views
Concerning The Minecraft Skybox
I was wondering how does the stars in night time in minecraft work, are they point sprites? And are they placed on a texture or just randomly placed on some far away location.
EDIT 1:
OK, well, with ...
27
votes
6answers
902 views
Why use random numbers when it comes to rewards and stats?
Many games use random numbers for things like attack damage, gold loot, or monster type being spawned. It is obvious that random numbers allow you to generate content to make games more re-playable, ...
14
votes
3answers
968 views
How can I generate floating land masses for a Minecraft-like engine?
I am creating a Minecraft-like engine in XNA. What I want to do is create floating islands similar to the one shown in this video:
http://www.youtube.com/watch?v=gqHVOEPQK5g&feature=related
...
3
votes
2answers
241 views
How to place objects/entities randomly in JS?
I'm making a game and I have a script (running it with Node) on the server that currently just randomly places things on the map... I'd like to change that. I saw something about Perlin noise but I'm ...
1
vote
5answers
179 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
...
6
votes
3answers
307 views
Algorithm for Randomized Weather
I'm having a hard time modeling weather.
Modeling a single aspect is trivial - some sinusoidal pattern + random noise. However more than 1 is blowing my mind. I cannot have wind, falling leaves, ...
2
votes
1answer
153 views
Simplest way to generate a random path
What's the simplest way to generate a random "path" for a level in a game? I don't know what search terms I should use to read more. I've looked into maze generation but thats not quite right.
The ...