Most Popular

1500 questions
73
votes
2 answers

What programming language was Super Mario Bros. written in?

Super Mario Bros. is definitely the most famous videogame created yet, selling a scorching 40.23 million copies. http://en.wikipedia.org/wiki/List_of_best-selling_video_games What programming language was it written in? Does anyone have some…
Luca Matteis
  • 863
  • 1
  • 7
  • 5
73
votes
9 answers

What's a way to implement a flexible buff/debuff system?

Overview: Lots of games with RPG-like statistics allow for character "buffs", ranging from simple "Deal 25% extra damage" to more complicated things like "Deal 15 damage back to attackers when hit." The specifics of each type of buff aren't really…
gkimsey
  • 1,003
  • 1
  • 8
  • 9
73
votes
10 answers

What is the purpose of having lives?

I think in game design it is incredibly important to ask the question why about everything, especially something that has become so standard as lives. So I am asking, what is the purpose of a game having the concept of lives? Why have lives?
Jeff
  • 2,448
  • 4
  • 24
  • 29
72
votes
6 answers

How does Lua work as a scripting language in games?

I'm a little hazy on what exactly Lua is and how a game that is programmed in C++ would use it. I'm asking primarily about how it is compiled and run. For instance when you use a program written in C++ which uses Lua scripts: does the code in Lua…
XSoloDolo
  • 823
  • 1
  • 7
  • 5
72
votes
12 answers

What is the fastest way to work out 2D bounding box intersection?

Assume that each Box object has the properties x, y, width, height and have their origin at their center, and that neither the objects nor the bounding boxes rotate.
Iain
  • 6,518
  • 3
  • 33
  • 46
72
votes
1 answer

Difference between Decision Trees & Behavior Trees for Game AI

What are some differences between Decision Trees and Behavior Trees for AI Game Development? For what applications would you use one over the other?
Free Lancer
  • 1,263
  • 1
  • 12
  • 17
72
votes
6 answers

Why do we use scripts in development?

In my current project, Lua scripts are called by the C++ functions on the server side. After that, the scripts again call the C++ functions still in that solution. Why should we do such things and not call the C++ function directly? What are the…
user608
72
votes
12 answers

most efficient AABB vs Ray collision algorithms

Is there a known 'most efficient' algorithm for AABB vs Ray collision detection? I recently stumbled accross Arvo's AABB vs Sphere collision algorithm, and I am wondering if there is a similarly noteworthy algorithm for this. One must have condition…
Dollarslice
  • 3,420
  • 6
  • 30
  • 49
72
votes
15 answers

Will the inclusion of LGBT characters in my game detract from possible sales?

As we all know, the inclusion of LGBT characters has been a mighty controversial topic in recent film and literature (Beauty and the Beast probably being the premier example). Some love it with every fiber of their being, while others absolutely…
ND523
  • 1,022
  • 1
  • 9
  • 23
71
votes
7 answers

What to consider when deciding on 2D vs 3D for a game?

How much "harder" is 3D than 2D in terms of: Amount/complexity of the code Level of math skills required Time involved in making art assets Original title: How hard is 3D game development versus 2D?
Brian Ortiz
  • 1,645
  • 4
  • 20
  • 17
71
votes
1 answer

How do you come up with ideas for new games?

What is the best way in your opinion to find new ideas for games? I want to invent something really new (like Gish, World of Goo, Crayon Physics etc), but I'm having problems coming up with new, creative ideas.
ajanba
70
votes
8 answers

Event-driven Communication in a Game Engine: Yes or No?

I am reading Game Coding Complete and the author recommends Event Driven communication among game objects and modules. Basically, all living game actors should communicate with the key modules (Physics, AI, Game Logic, Game View, etc.) via an…
Bunkai.Satori
  • 2,743
  • 9
  • 36
  • 47
69
votes
7 answers

What are typical pitfalls when writing games with a managed Language like C#?

What pitfalls did you encounter when writing games for the PC with a managed Language like C# and how did you solve them?
Michael Klement
  • 3,861
  • 4
  • 26
  • 23
69
votes
8 answers

What's the most efficient way to find barycentric coordinates?

In my profiler, finding barycentric coordinates is apparently somewhat of a bottleneck. I am looking to make it more efficient. It follows the method in shirley, where you compute the area of the triangles formed by embedding the point P inside the…
bobobobo
  • 17,074
  • 10
  • 63
  • 96
69
votes
1 answer

How can I replicate Quantum Break's distortion particle effect?

Quantum Break has this fantastic particle effect, it's a distortion effect like broken glass. I want know how I can replicate this effect? You can see it below, and a full video is available on YouTube:
Seyed Morteza Kamali
  • 8,333
  • 12
  • 50
  • 84