33
votes
3answers
3k views

When should I hard-code data versus load external data?

I'm a thousand or so lines of code into making my own 2D space-based game, which creates networks of randomly generated star systems and populates them with a random selection of planets, stations, ...
33
votes
4answers
35k views

Using multiple shaders

I'm currently studying opengl shaders but I can't figure out something: how to apply different shaders to the objects, for example, a teapot rendered using toon shader and another one in the same ...
33
votes
4answers
4k views

How do graphics evolve so much on the same console hardware?

Is it only a matter of code optimization? Do game developers plan to start small on a new hardware, to have space to evolve while creating a series of that game? Are computer graphics breakthroughs ...
33
votes
6answers
10k views

What is a good file format for saving game data? [closed]

I need to save some custom game data. Map, player, etc. All of them will have "sub objects". For example, a map and map will have an "array" of tiles. ie, hierarchical data. Hopefully nothing ...
33
votes
4answers
22k views

Vertex Array Object (OpenGL)

I've just started out with OpenGL I still haven't really understood what Vertex Array Objects are and how they can be employed. If Vertex Buffer Object are used to store vertex data (such as their ...
33
votes
5answers
21k views

How can I draw outlines around 3D models?

How can I draw outlines around 3D models? I'm referring to something like the effects in a recent Pokemon game, which appear to have a single-pixel outline around them:
33
votes
6answers
3k views

Hexagon collision detection for fast moving objects?

A object has a position and a speed vector. Usually only the position is used to check if two objects collide, this is problematic for very fast moving objects as it can happen that the object moves ...
33
votes
1answer
50k views

What is the correct order to multiply scale, rotation and translation matrices for a proper world matrix?

Assume DirectX as the platform, if that is important. (Pretty sure it isn't) Assuming I have a proper scale, rotation and translation matrix, in what order do I multiply them to result in a proper ...
33
votes
1answer
1k views

How to deal with “level design creep?”

Level Design Creep is what I've started to call what happens when you build a series of levels and notice that every level is a little bit better looking or designed than the last, or when working ...
33
votes
6answers
9k views

Should I be using Lua for game logic on mobile devices?

As above really, I'm writing an android based game in my spare time (android because it's free and I've no real aspirations to do anything commercial). The game logic comes from a very typical ...
32
votes
16answers
52k views

What are some famous games developed with .NET and/or XNA? [closed]

Are there famous games written in .Net and/or XNA?
32
votes
4answers
9k views

Why are so many games not fully voiced?

I'm wondering why so many MMOs are only partially voiced? I asked makers of games (Thimbleweed Park, in their Q&A) how expensive voiceover is, and they said it wasn't especially expensive unless ...
32
votes
7answers
8k views

Why do games ask for screen resolution instead of automatically fitting the window size?

It seems to me that it would be more logical, reusable and user-friendly to implement flexible, responsive UI layout over a 3d or 2d screen, which can then be run on any screen resolution. Some ...
32
votes
12answers
2k views

Alternates to scratch damage to solve combat deadlocking

Scratch damage is a game mechanic whereby any successful attack always does some minimal amount of damage. This is often used in subtractive combat systems, where the defense is subtracted directly ...
32
votes
6answers
5k views

Can I (safely) assume that people playing my game have a middle mouse button?

The title pretty much says it all. I am currently writing a desktop game, which will probably not be played by the casual gamer. Thus my expectation is that nearly every user will most likely ...
32
votes
9answers
2k views

Starting from Scratch - Is it a Mistake if I re-invent the wheel?

Usually whenever I want to start a game, I will think to have a good basic architecture for rendering and better game loop from scratch. I usually don't want to use existing engines. The reason behind ...
32
votes
6answers
5k views

Do complementary shadows make sense for games?

According to color theory, shadows work better if they don't use pure blacks or grays, but instead use a color that's complementary to the color of the object casting that shadow. That is, if you ...
32
votes
6answers
10k views

Is OpenGL appropriate for 2D games?

I have been teaching myself the OpenGL library for a while now, and want to start making a game. However, for an easier introduction, I want to start with something 2D, such as a top down ...
32
votes
9answers
27k views

How can I make a peer-to-peer multiplayer game? [closed]

How can I make a p2p multiplayer game? I would like to have a server-less multiplayer game. But then, how all the clients know each other? Why the p2p-protocol is so famous in file transfer but not ...
32
votes
2answers
2k views

In a browser, is it best to use one huge spritesheet or many (10000) different PNG's?

I'm creating a game in jQuery, where I use about 10000 32x32 tiles. Until now, I have been using them all separately (no sprite sheet). An average map uses about 2000 tiles (sometimes re-used PNG's ...
32
votes
4answers
10k views

How does Flow Field pathfinding work?

Supreme Commander 2 has something called flow field path finding. How does it work? Is there some article available I can read up on how it works?
32
votes
2answers
3k views

Calculating the rotational force of a 2D sprite

I am wondering if someone has an elegant way of calculating the following scenario. I have an object of (n) number of squares, random shapes, but we will pretend they are all rectangles. We are ...
32
votes
2answers
5k views

How can I generate Worms-style terrain?

I'm working on a Worms-styled game and want to generate some terrain procedurally. I've previously done a lot of terrain generation using perlin noise, and this is what I started out using for this ...
32
votes
9answers
9k views

How can I prevent false score reports to global highscore tables?

Browser and mobile games commonly have global highscore tables. It's also common for those tables to contain scores of 2,147,483,647 — where people have figured out the webservice call that ...
32
votes
7answers
2k views

Elegant way to simulate large amounts of entities within a game world

Assume you have a game in which there are many (many many) entities serving some functions, not all of which are constantly needed or need to be considered in every frame. The concrete problem I am ...
32
votes
5answers
23k views

Workaround to losing the OpenGL context when Android pauses?

The Android documentation says: There are situations where the EGL rendering context will be lost. This typically happens when device wakes up after going to sleep. When the EGL context is ...
32
votes
2answers
2k views

What exactly does an installer do and why might I need one?

this is probably the noob-question of the day: So I've written this game. Now there's the .exe file that does the work, a folder with my beautiful, beautiful assets and a bunch of .dll files and ...
32
votes
5answers
1k views

How can I make space recognizable and easy to orient in?

I'm thinking about making a game set in space, that would feature very large, procedurally-generated game world (many stars, planets and what have you). However, I foresee a big problem: cosmic space ...
32
votes
6answers
11k views

About floating point precision and why do we still use it

Floating point has always been troublesome for precision on large worlds. This article explains behind-the-scenes and offers the obvious alternative - fixed point numbers. Some facts are really ...
32
votes
4answers
21k views

How were cartridge-based games programmed? [closed]

I'm thinking of like the SNES, N64, Atari... even the DS today, I suppose. SNES games did not usually take up more than 4 MB of space, and N64 games were usually 32 to 64 MB worth of data. These ...
31
votes
8answers
10k views

How can a game handle all characters at once?

This question is just to gain knowledge about how a game can handle so many characters at once. I am new to gaming so I beg your pardon in advance. Example I am creating a tower defense game in ...
31
votes
11answers
6k views

Do 2D games have a future? [closed]

I'm currently working on a 2D soft-body physics engine (since none exist right now -_-), but I'm worried that there's no point to spending what will most likely be years on it. Although I love ...
31
votes
8answers
3k views

Profanity filter for an MMO chat

We are developing an MMO using Smartfox Server. The targeted audience is kids from 7 -12 years. There is a global chat option in this MMO. Whatever the user types in a textbox get displayed next to ...
31
votes
5answers
5k views

How can I calculate current level from total XP, when each level requires proportionally more XP?

In my game, XP needed to reach the next level is Current Level × Level Threshold. Given that, how can I get my current level from the total XP ever earned? For example: Level Threshold = 50 ...
31
votes
13answers
15k views

How are sound effects made?

My friend and I are finishing up our first game right now and I have just discovered that even though he can make some decent music tracks, he has no idea how to make a sound effect. An explosion, for ...
31
votes
9answers
4k views

Why should I choose to design a health bar rather than heart containers?

When designing any hero-based game, be it adventure, RPG, brawler, or similar, you eventually need to decide on your health system. Barring any regenerative systems with zero UI (like Call of Duty), ...
31
votes
5answers
7k views

In 2D, how do I efficiently find the nearest object to a point?

I have a sizable game engine and I'd like a feature for finding the nearest of a list of points. I could simply use the Pythagorean theorem to find each distance and choose the minimum one, but that ...
31
votes
4answers
1k views

Creating an illusion of stress and danger

I'm currently experimenting with an adventure game setting where at some point the game is quite calm and the player has to solve puzzles and at some point there are enemies or environmental traps. I ...
31
votes
9answers
36k views

Is ruby a suitable language for game development? [closed]

I want to move into some game development, but the only language I know really well is Ruby. Most of what I have read seems to point towards lower level languages like C++ for game development, or ...
31
votes
11answers
5k views

Strategies to Defeat Memory Editors for Cheating - Desktop Games [closed]

I'm assuming we're talking about desktop games -- something the player downloads and runs on their local computer. Many are the memory editors that allow you to detect and freeze values, like your ...
31
votes
4answers
4k views

Is there a practical reason for saving game data in %UserProfile%\Documents instead of %AppData%?

My documents folder is flooded with subfolders of various games, including those of some very recent AAA titles. As a professional application developer with no experience in the gaming industry this ...
31
votes
4answers
5k views

Proper OO game engine design: how to parcel responsibilities

(note - I don't have the reputation to create new tags, so mod action may be needed to re-tag) I'm in the midst of developing a 2D sprite-based game for Windows 7 Phone using XNA. The training and ...
31
votes
1answer
8k views

Difference between “staggered” isometric and “normal” isometric tilemaps?

The Tiled Map Editor v0.9 recently added support for staggered tilemaps in addition to its usual isometric tilemap support. What are the exact technical differences between these two types of ...
31
votes
4answers
3k views

How do patches in games work?

Console and PC games have patches sometimes to fix bugs which the developers missed/didn't have time to fix. My question is how do these work? Sometimes the patch files are a few megabytes in size. ...
31
votes
6answers
6k views

Implementing a wrapping wire (like the Worms Ninja Rope) in a 2D physics engine

I've been trying out some rope-physics recently, and I've found that the "standard" solution - making a rope from a series of objects strung together with springs or joints - is unsatisfying. ...
31
votes
5answers
1k views

How can I test my game for epilepsy-safety?

I've been developing a game which is rather blinky in terms of color and brightness contrasts. It's an iPhone game, so the screen will be quite small, but I've heard about Wipeout XL failing the ...
31
votes
4answers
3k views

What are some common ways to generate revenue from a free game?

When creating a free game what revenue options are there and how successful are they? What are the pros and cons of different revenue models such as ad-supported, freemium, partnerships, ...
31
votes
5answers
18k views

Should I use textures not sized to a power of 2?

In the early days of OpenGL and DirectX, texture sizes were required to be powers of two. This meant interpolation of float values could be done very quickly, using shifting and such. Since OpenGL ...
31
votes
2answers
3k views

How to network this entity system?

I have designed an entity system for an FPS. It basically works like this: We have a "world"-object, called GameWorld. This holds an array of GameObject, as well as an array of ComponentManager. ...
31
votes
3answers
2k views

How do you author HDR content?

How do you make it easy for your artists to author content for an HDR renderer? What kinds of tools should you provide, and what workflows need to change, in going from LDR to HDR? Note that I'm not ...

15 30 50 per page