Engine-design related questions. How code is structured.

learn more… | top users | synonyms (2)

3
votes
3answers
466 views

What are the techniques used to save space with very large levels?

Some days ago I was thinking "how would I store the real world into a continuous game level ?". I guess it must have been some challenge for RockStar engineers (for GTA 4 or Red Dead Redemption) or ...
4
votes
1answer
2k views

Managing Shaders and Objects in DirectX 11

The title explains my two biggest logical problems with developing a game. It's something I sit up at night thinking about, and that is "What is the most effective way to manage shaders" and "What is ...
4
votes
3answers
414 views

Calculating game map changes overtime when user is not even online e.g. farmville

With a game like farville, there is both processing during gameplay and when the user is offline (plants are growing, etc.) So many of the elements on the game map depend on time. Is there a trick ...
4
votes
1answer
321 views

How should I structure moving from overworld to menu system / combat?

I'm making a text-based "Arena" game where the player is the owner of 5 creatures that battle other teams for loot, experience and glory. The game is very simple, using Python and a curses emulator. ...
3
votes
1answer
534 views

Browser game architecture considerations

I am currently working on a browser game. It's not my first one, but it is the most complex I have worked on to date. In the past, I would code everything in PHP, and have functions checking whether ...
3
votes
3answers
2k views

How to access SpriteBatch, Input, and ContentManager from all game screens?

I'm trying to make a Game State Manager and I'm using the Microsoft Game State Management Sample as guidance. However, I want a more simplistic design (no transitions, reflection, or support for ...
4
votes
2answers
2k views

Performance/architectural implications of calling SpriteBatch.Begin/End in many different places?

I notice some code samples only call SpriteBatch.Begin and SpriteBatch.End in the game's main draw method and then draw everything within that method through direct SpriteBatch.Draw calls or indirect ...
7
votes
2answers
2k views

Book about Entity System?

I'm really interested about the capabilities of Entity System. I'm trying to search for a good book on this one, but failed. I don't want to get lost on learning this paradigm so a book will be a big ...
5
votes
1answer
295 views

What's the right/standard way of achieving separation of concerns?

Some background: I want to start developing games, and taking some of the advice given in this site, I've started with something simple and familiar, such as pong, tetris, etc. I want to take as much ...
0
votes
3answers
1k views

For learning purposes only, is creating a game engine or using one such as Unity3D or UDK better?

Alright, let me start off by saying this: I've seen multiple threads comparing creating custom game engines to already created game engines such as Unity3D or UDK, but none of the threads I've found ...
1
vote
2answers
448 views

Implementing Power-Ups in a game

I'm making an Arkanoid or Brick Breaker game, but I got confused when I wanted to implement power-ups. The idea is that when you destroy a brick, a powerup-block falls down, and if you catch it you'll ...
0
votes
3answers
209 views

A question regarding how to respond to 'events'

What is the best practice to use when events happen in a game? For example: You have a sensor. When a particular game actor is near that sensor, a sound must be played and a door must be closed. ...
2
votes
2answers
1k views

Roguelike Class Structure Makes Everything Effectively Global

A brief rundown of the hierarchy of the game data objects: Configuration - loaded from XML files, has Descriptors, among other things Atlas - has a Configuration, has a CreatureInstance(represents ...
10
votes
3answers
559 views

Good way to play a sound when something happens? How does this sound?

So I was thinking about how monolithic my classes get a lot of the time. For example, in the Character class's Jump method, one may have a reference to a sound effect object and play that. By itself ...
8
votes
2answers
5k views

Interaction between engine parts

I want to ask a question about how the information exchange between game engine parts should be implemented. The engine is separated in four parts: logic, data, UI, graphics. In the beginning I made ...
5
votes
1answer
897 views

What are the drawbacks of this messaging system implementation?

So I've just been thinking about component and messaging systems recently for simple C# XNA games and came up with this. How extensible would this implementation be and what are the drawbacks? Example ...
3
votes
2answers
182 views

Is my StatisticManager idea overkill?

I'm writing a shmup and I'm working on implementing things like level design and achievements. I have a trigger system that I've implemented which allows me to do basic things and can assist the basic ...
2
votes
1answer
314 views

Implementing Object Composition

I'm trying to structure my game object classes similar to how it is done in this article. One way to implement this strategy is discussed in this StackOverflow question. Following the strategy ...
9
votes
2answers
701 views

Implementing behavior in a simple adventure game

I've been entertaining myself lately by programming a simple text-based adventure game, and I'm stuck on what seems like a very simple design issue. To give a brief overview: the game is broken down ...
3
votes
1answer
564 views

How are collision and collision callback systems usually implemented?

I'm writing my own game engine for learning purposes and was wondering about common ways to handle collision callbacks/responses. I'm NOT looking for ways to resolve collisions (no math needed here), ...
10
votes
3answers
5k views

How to organize a game engine in C++? Is my use of inheritance a good idea?

I'm a beginner both in game developping and programming. I'm trying to learn some principle in the building of a game engine. I want to create a simple game, I'm at the point where I'm trying to ...
1
vote
4answers
241 views

Designing a game that allows for selectable perks/customization

Call of Duty games all have the core functionality of any FPS (walking around, killing, dying and repeat). Layered on top are various stuff. Of interest to me is during pre-game when you pick your ...
2
votes
2answers
1k views

Sparse Voxel Octrees which parts on GPU or CPU?

I'm currently doing research into building my own voxel engine and found a lot of articles mentioning SVOs as the best mechanism. I just wanted to know that I understood the algorithm correctly, ...
1
vote
5answers
2k views

Need opinions: is it worth making component based entity system? [closed]

I've been reading about component based entity-system for couple days now and I'm not quite sure if it is worth implementing in my next game. I haven't started making the game yet, but I have bunch of ...
19
votes
4answers
3k views

“The Game Object” - and component-based design

I've been working on some hobby projects the last 3-4 years. Just simple 2d and 3d games. But lately I have started a bigger project. Soo in the last couple of months I've been trying to design a game ...
8
votes
1answer
789 views

Processing component pools problem - Entity Subsystem

Architecture description I'm creating (designing) an entity system and I ran into many problems. I'm trying to keep it Data-Oriented and efficient as much as possible. My components are POD ...
5
votes
2answers
1k views

Should I use inheritance or composition for modelling game objects?

In terms of game engine modeling, please give your pros and cons for two types of interfacing: class MySceneObject_Model1 : public IRenderable, public IScriptable, public IAnimatable { ... } class ...
3
votes
3answers
1k views

Is “pure” OpenGL productive enough?

I know that this is a difficult question and I hope I can convey my meaning. Over time I've used many different engines from XNA over Unity to Panda3d and even tried native directX once. My final ...
2
votes
2answers
2k views

NoSQL (CouchDB) database design for MMORPGs

Are there any pratical examples of database implementation for an MMORPG in CouchDB? Even a detailed thesis? I've looked but found very little on practical examples and not even find any good UML ...
2
votes
1answer
689 views

What threading strategy does a game like Transport Tycoon use?

Transport Tycoon is a simulation game where you control a transport company, place railroad tracks and trains, airports, bus depots, boats etc. Now the game is about 15 years old and I remember ...
0
votes
2answers
2k views

I need an enemy spawning algorithm for a 2D tower defense

I need an enemies spawning algorithm for a 2D tower defense game. I have 4 maps, each has 4 stages and each stage has 40 rounds. I need to create an algorithm which will instantiate waves, increase ...
0
votes
0answers
69 views

What are the responsibilities of a game engine, and which of these things need to especially be efficient? [duplicate]

Possible Duplicate: What should a game engine do? What are the usual responsibilities of a game engine, and which of these things especially need to be efficient (performance-wise)? Can I ...
3
votes
3answers
287 views

Should each UI screen contain the list of screens on the stack or should I use a manager class?

I have a Screen class that encapsulates the updating and rendering of several distinct states, such as the menu, gameplay, and credits. A stack of screens exists on which the screens themselves need ...
13
votes
2answers
709 views

How should I check if a player has completed an achievement?

I'm making an MMO game and I just got to a point where I need to implement achievements... How do I do that? The most straight forward thing to do would be to run this once every 100ms,: for a in ...
1
vote
2answers
580 views

Entity manager loop opinions

This days I'm refactoring code and one of the things I want to improve is my entity manager code. More precisely, the update funcion where entities are updated. My engine is a 2D tile based engine ...
11
votes
2answers
5k views

how should i develop my android game efficiently?

I have attached a image of a flow chart that i made in paint. The image shows how i want to develop my game. I want a game that runs great with smart coding that is easy to update and ad features ...
2
votes
2answers
126 views

How to handle similar actions in derived actors (inheritance)

I have a base class called Attacker that has a update method. The update method moves attacker through an array of waypoints as given below: - (void) update:(ccTime)dt { if(state == kMove) { ...
2
votes
1answer
197 views

Making abilities (Programming FFG's boardgame Descent)

I am trying to program Fantasy Flights boardgame "Descent - Journeys in the Dark", but I have hit a wall when dealing with implementing abilities, which are a crucial part of the game. Abilities are ...
2
votes
5answers
1k views

How should I implement side-scrolling level design?

I'm working on a college project using the educational Java framework Greenfoot, and as stated above we're making an r-type clone. I've been looking at using an array of strings to populate the ...
-3
votes
2answers
1k views

Where can i find tutoral for Designing building in 3dsmax [closed]

I have searched various tutorials for 3ds max. They only show simple house apartment and that too not compelete. Is there any online company which have tutorial set for complete building design from ...
3
votes
2answers
216 views

Which of these two particle generator lifetime management techniques is better?

What would be better: An explosion class which gets created when needed, does it's stuff, then is deleted. (one instance per explosion) An explosion class which persists through the whole game, and ...
3
votes
4answers
357 views

Which of these two approaches to particle generator design is preferable?

What is a better idea for a particle generator (bearing in mind the intention to instance the draws to all the particles in the future)? A particle emitter that maintains its own list of particles ...
2
votes
3answers
2k views

Building an XNA Game Engine: Loading Sprites outside of LoadContent()

I'd like to build an engine in XNA, primarily for a 2D RPG. At first, I began abstracting out some classes and built a Sprite class which wrapped a Vector2 and a Texture2D, and tried loading in ...
3
votes
2answers
365 views

How can I improve this architecture?

In a roguelike I'm developing in Ruby, I started with a traditional object hierarchy where all game logic relevant to creatures were contained in the Creature class. Movement logic, for example: ...
1
vote
1answer
144 views

3D Location Handling

I am thinking about making a simulator type game that will involve having lots of small objects in a 3D space. What is the typical solution for handling these objects? The first thing that comes to ...
4
votes
1answer
1k views

How can I create an orthographic display that handles different screen dimensions?

I'm trying to create an iPad/iPhone game using GLES2.0 that contains a 3D scene with a heads-up-display/GUI overlaid on the top. However, this problem would also apply if I were to port my game to a ...
7
votes
1answer
772 views

2d, Top-down map with different levels

So, I'm creating a 2d, top down, sprite based (tiled) game, and right now I'm working on maps (well, a map editor at the moment, but it will be creating my maps, so basically the same thing). The ...
3
votes
3answers
586 views

State Changes in a Component Based Architecture [closed]

I'm currently working on a game and using the naive component based architecture thingie (Entities are a bag of components, entity.Update() calls Update on each updateable component), while the ...
12
votes
2answers
1k views

Could I be going crazy with Event Handlers? Am I going the “wrong way” with my design?

I guess I've decided that I really like event handlers. I may be suffering a bit from analysis paralysis, but I'm concerned about making my design unwieldy or running into some other unforeseen ...
5
votes
1answer
796 views

Merging adjacent cubes into large ones

I am currently working on a basic minecraft like game. I have a list of coordinates using which i render instances of a cube model. To optimize my rendering, i need to merge similar adjacent cubes ...