Most Popular

1500 questions
56
votes
5 answers

How could I implement something like Minecraft's crafting grid?

The crafting system in Minecraft uses a 2x2 or 3x3 grid. You place ingredients on the grid, and if you put the right ingredients in the right pattern, it will activate the recipe. Some interesting points about the design: Some recipes can exchange…
David Eyk
  • 713
  • 6
  • 8
56
votes
14 answers

1% idea, 99% execution?

I keep reading in the game development community that the idea of a game is 1% and the execution of the game is 99%. Do you believe that to be true? Not necessary in those percentages.. I always thought that a great idea is invaluable and it makes a…
m.Alin
  • 824
  • 7
  • 14
56
votes
2 answers

Can a developer change their product name on Steamworks?

I recently got access to Steamworks and paid the product submission fee. Now I am able to create an app on Steam. The app I'm working on is still untitled, but I want to start playing around with the Steamworks functionality. Unfortunately, when I…
DyingIsFun
  • 1,307
  • 1
  • 17
  • 39
55
votes
7 answers

How can I set up a flexible framework for handling achievements?

Specifically, what is the best way to implement an achievement system flexible enough to handle going beyond simple statistics-driven achievements such as "kill x enemies." I'm looking for something more robust than a statistics based system and…
lti
  • 763
  • 6
  • 8
55
votes
1 answer

How do Raymarch shaders work?

I have been looking at shaders found here shadertoy.com and most of the cool ones have noise and raymarch in common. I do not understand the source code at all but I really want to. How do these shaders work and how does the raymarch algorithm…
jmasterx
  • 2,089
  • 2
  • 26
  • 41
55
votes
12 answers

Is it reasonable to write a game engine in C?

Even though C++ appears to be king, from what I've been told C is still widely used in games, especially on the consoles. However, would writing an entire game engine in C be unreasonable today? What are, if any, some advantages that C has over C++?…
bruxisma
  • 768
  • 1
  • 6
  • 8
55
votes
3 answers

How are voxel terrain engines made?

A few days ago I found something called voxel terrains and I think that they're pretty cool. But I don't know anything generating them. Do you model it in your modeling software or use something like a heightmap? I read on wikipedia that voxels are…
Daniel
  • 3,461
  • 8
  • 36
  • 55
55
votes
2 answers

How can I get textures on edge of walls like in Super Metroid and Aquaria?

Games like Super Metroid and Aquaria present the terrain with the other facing parts having rocks and stuff while deeper behind them (i.e. underground) there's different detail or just black. I would like to do something similar using polygons.…
meds
  • 1,480
  • 3
  • 21
  • 34
55
votes
8 answers

What is the design rationale behind melee retaliations in turn-based games?

I've seen quite a lot of turn-based games in which melee attacks on another unit cause the attacked units to also damage the attacking unit, while ranged attacks do not suffer from this "retaliation" mechanic. Examples include the Heroes of Might…
Oak
  • 1,242
  • 12
  • 20
54
votes
7 answers

Automated testing of games

Are there methods of automated testing of games? Specific experiences are appreciated, with relevant information about the project such as platform and type of game if that helps with clarification.
slicedlime
  • 868
  • 1
  • 9
  • 8
54
votes
6 answers

How to maintain artistic consistency when working with multiple artists?

I'm making a game that requires a volume of artistic content which is not practical to be created by a single person, so I've enlisted the help of additional artists. The problem is, each artist has their own style, and mixing the content produced…
Panda Pajama
  • 13,395
  • 4
  • 44
  • 77
54
votes
11 answers

How can I implement dialog trees into my game?

What is the best way to implement a dialog tree system in my game? I want an NPC to give the player different sets of responses, some which may only appear when the Player has an item or a previous event has occurred.
Bryan Denny
  • 5,103
  • 13
  • 38
  • 47
54
votes
1 answer

in/out keywords in GLSL

I don't really understand how to use the in / out keywords in GLSL, and google is being uncharacteristically unhelpful. What exactly do they do? How would I use them if, for example, I want to pass a varying variable set per vertex to the fragment…
Publius
  • 1,493
  • 2
  • 16
  • 23
54
votes
5 answers

How to avoid the GameManager god object?

I just read an answer to a question about structuring game code. It made me wonder about the ubiquitous GameManager class, and how it often becomes an issue in a production environment. Let me describe this. First, there's prototyping. Nobody cares…
Laurent Couvidou
  • 9,171
  • 2
  • 41
  • 57
54
votes
4 answers

How are imaginary numbers useful in video game creation?

I learned about imaginary numbers in school and they seemed so impractical, so I asked my teacher what they were used for and he said "video game creation". I just want to know if this is true and if so how is it used during the creation process.
Daosof
  • 651
  • 1
  • 6
  • 13