game-engine

RPG dialogue engine / structure

I've always been interested in the data structures involved in an RPG (Role-Playing Game). In particular, I'm curious about dialogue and events based actions. For example: If I approach an NPC at point x in the game, with items y and quests z, how would I work out what the NPC needs to say? Branching dialogue and responding to player in...

How can I implement scripting in my game?

I'm trying to write a game and implement scripting so that later on in development I won't have to recompile everything when I want to change numbers. My problem is that I don't know how scripts should interface with the game. The scripting language I'm using is angelscript. Right now, I have a state: the intro state, which I'm using a...

AS3: Game development

Hi! I am looking a game framework for flex/AS3. I want to use it to create simple 2d games, such as tower defense, etc. Maybe someone can suggest something? ...

Component based game engine design

I have been looking at game engine design (specifically focused on 2d game engines, but also applicable to 3d games), and am interested in some information on how to go about it. I have heard that many engines are moving to a component based design nowadays rather than the traditional deep-object hierarchy. Do you know of any good link...

Performance benefit when using uint_fast8_t?

Hello, So after researching engines a lot I've been building a 2d framework for the iphone. As you know the world of engine architecture is vast so I've been trying to apply best practices as much as possible. I've been using: uint_fast8_t mId; If I look up the definition of uint_fast8_t I find: /* 7.18.1.3 Fastest-width integer ...

OOP Game Design Theory

I've tried to develop a 2D game with C++ in the past using mere objects, however, in the design process I don't know how and what parts of the engine I should split into smaller objects, what exactly they should do and how to make them interact with each other properly. I'm looking for books, tutorials, papers, anything that explains the...

Is there a middleground between writing raw OpenGL versus using a full-blown game engine?

I'm playing around with OpenGL and I'm finding myself writing code that I feel like I shouldn't have to write. GLU and GLUT are nice but not really what I'm thinking of. Code to load .obj models (vertex and normal vectors) from Blender and render them. Code for collision detection. Code for navigation/camera stuff. Code for simple ter...

Ready-made Javascript library for modelling card games?

MVC 'architecture'. I would like a convenient way of specifying the rules of a card game including aspects such as hands or tricks, scoring, which cards from the deck or pack are used, and so on. Does anyone know of anything like this, preferably in Javascript? Thanks for any guidance. ...

ublas::bounded_vector<> being resized?

Now, seriously... I'll refrain from using bad words here because we're talking about the Boost fellows. It MUST be my mistake to see things this way, but I can't understand why, so I'll ask it here; maybe someone can enlighten me in this matter. Here it goes: uBLAS has this nice class template called bounded_vector<> that's used to crea...

Linking Objects to list for manual editing later (Game Engine/Framework - Entity management part)

First of all hello, this is my first time here. I'm young coder (15) and this is my second attempt to make a game (actually whole reusable game engine AND framework, not sure how to call it, maybe GDK?), while making it much more organized this time. IMPORTANT NOTE: I'm using XNA framework, so the game engine is not purely low level Dir...

Make a variable be required - to evade NullReferenceException?

[SOLVED] - The mistake was mine, that I didn't link World (world_) to the entity, so that was null. Thanks for the explanation everyone! As you may know by now, I'm making a game engine/framework, and I've got stuck linking stuff with references to each other. Example: public void Attach(Entity Entity) { entity_ = Entity; en...

WPF<->XNA - how to combine these two technologies?

I've read on few places already, that it's possible to combine XNA and WPF. What I personally need is a game/map editor, which would actually be the game itself (would have the engine running in background), because map system writes serialized versions of objects to XML, which are later loaded. My problem is that I want an standard app...

how to discover .dlls my application is using

iam trying my hand at using the crystal space api in my graphics applications. crystal space website The applications compile fine but iam having hell with the dlls(dynamic link libraries). The compiled application crashes at run time and i suspect its because of not finding the needed dlls. The only solution i currently have is cuttin...

I'm looking for free 3d game engine for D language

On DevMaster.net I found only RealmForge. Is this the only choice? Are C/C++ game engines suitable for D? If yes, what difficulties I need to overcome to work with them? ...

Example of modular game engine?

I found this a very interesting read: http://www.devmaster.net/articles/oo-game-design/ The author repeatedly says "Wow, this could be great, if implemented carefully. This is the future!". Well, not very useful. I need code, and most of all, I need a proof that this kind of design actually works. Do you know of an example which implem...

Is it safe to ignore the read-write race condition of a smoothly changing floating point value?

While I try to put the animation update function and physics simulation of a game engine into a seperate thread for execution, I realize the potential race condition of some floating point values (say, position of an object) between the writer thread (animation,physics) and the reader thread (renderer) if both threads are going to access...

Longish delay between two consecutive KeyDown events

I'm kind of writing a little game engine -- purely to understand how these work from the inside. I currently don't want to mess with OpenGL or DirectX, so I stick to drawing on a control with GDI+ and all that WinForms stuff. Obviously, I need to handle input. More specifically, keyboard events. This, however, poses a problem: protecte...

looking for php game engine/framework

I'm looking for php game engine/framework. Free or cheap, preferably open source (but it's not requirement). If there's nothing like this available I'd be fine with modifying some open source game... I like Legend of the Green Dragon a lot (simple but enjoyable gameplay :) but it's use terms are very limited - they don't give you permis...

Good book(s) for MMORPG design & implementation?

I am a long time professional C/C++ programmer (mostly embedded systems) and a hobbyist windows & php hacker. Can anyone recommend a book(s) specifically aimed at designing and (hopefully) implementing an MMORPG? I don't need general how to design or how to code books. Maybe a really good generic games book, but I am not interested in ...

Is there an easy to script 2d game world?

For a school project we're developing a game that's a little like Conway's game of life, with different organisms taking up slots in the world and then eating each other. I would like to see this take place in a 2d world. Like being able to take starcraft and have zergling and marines play roles. The problem with starcraft is that the wh...