Game engines are a collection of libraries and tools that provide a framework to create games.

learn more… | top users | synonyms (1)

11
votes
4answers
3k views

Physics engine recommendation which can simulate pool game correctly? [closed]

I'm making a pool-game like game. This game requires correct (or very accurate) reflective bounces. I tried Box2D and Bullet Physics, but they both have this problem. If there is a wall on top of ...
0
votes
0answers
37 views

Simple Libgdx bullet example

I'm looking for a SIMPLE example of the use of the bullet physics engine in libgdx. Before you point me at the wiki, I have read that, but that mostly describes installation, and just a "raw" ...
0
votes
1answer
91 views

How do I connect my objects to my meshes?

I am creating a simple 3D engine and I've run into a problem. I have an array of objects [Camera, Player, Player, MonsterA, MonsterB, MonsterA] and a number of mesh files that I need to associate ...
0
votes
0answers
13 views

alBufferData() sets AL_INVALID_OPERATION when using buffer ID obtained from alSourceUnqueueBuffers()

I am trying to stream audio data from disk using OpenAL's buffer queueing mechanism. I load and enqueue 4 buffers, start the source playing, and check in a regular intervals to refresh the queue. ...
4
votes
2answers
1k views

How do I support variable screen ratios using AndEngine?

When displaying a background, AndEngine produces black bars above the image on certain devices. How do I support variable screen ratios for different devices using AndEngine?
-1
votes
0answers
44 views

How to built game on windows form [on hold]

I want to build game on c#(windows.form) (Visual studio 2013), but I think that windows form does not support games graphics, some friends suggest me to do this task with the help of CANVAS. how can ...
3
votes
1answer
207 views

How to solve the big video memory requirements in 2d game

We are developing 2d game (Factorio) in allegro C/C++ and we are facing the problem with increasing video memory requirements as the game content increases. What we currently do is, that we gather ...
-4
votes
0answers
62 views

Super Meat boy engine [closed]

Apparently written over 18 months in C++, looks like DirectX also. I was looking at the Torque 2D engine source, and it's well, a lot of code. Would you say the SMB engine would be similar, I can't ...
2
votes
2answers
772 views

FBX Importer - Texture Name

I have a problem with the FBX SDK. I read in the data for the vertex position and the uv coordinates. It works fine, but now I want to read for each polygon to which texture it belongs, so that I can ...
0
votes
1answer
73 views

Grid collision - finding the location of an entity in each box

I am trying to implement grid-based collision in a 2d game with moving circles. The canvas is 400x400 pixels. Below you can see the code for my Grid class. What I want it to do is check inside which ...
-1
votes
0answers
54 views

Best way to create a Farmville-like game? [closed]

I want to create a game similar to Farmville (probably a lot simpler) which would be available as an Android, iOS and Facebook app. As I have no experience with cross-platform game development, I'm ...
1
vote
1answer
44 views

How to put basic scripting/variable changes into dialog xml files?

I have a simple XML structure for my dialog between the player and NPCs. What I'd like to do is put variable changes (and maybe other things) directly into the XML. So, for instance, if you select a ...
0
votes
3answers
66 views

How can a game engines renderer be compatible with a 3d modeling software such a Maya

So you create some model in say Maya, you apply all kinds of effect to the model and then export the file. So then the game engine has to load the file and render it, so surely the game engines needs ...
80
votes
3answers
22k views

Tips for writing the main game loop? [closed]

Can anyone recommend some good tips, articles, sites, etc. for writing the main game loop? What are some things that you should do in the game loop, and what are some things that you shouldn't do in ...
0
votes
0answers
29 views

Rendering bug in java

I'm using a simple rendering method in java to render tiles. Everything looks fine, but I notice that some rows grow 1 pixel when I move, and dhen shrink back, but I have no idea why. Infos: I'm ...
26
votes
6answers
3k views

Why don't all games permit changing the field of view?

This is less of a question aimed at developing a game and more about the technology behind it. A number of gaming journalists and pro gamers (both on the tournament and the home entertainment sector) ...
2
votes
2answers
114 views

How can I determine the pixels covered by a transformed triangle (without drawing it)?

I have three points that form a triangle in a 3D scene. I want to apply an arbitrary rotation/translation transformation to this polygon and later check in which pixels of an image they would be ...
-2
votes
2answers
134 views

Should collision sounds and UI responses be deferred or processed immediately?

When checking for collisions between entities, should you play a collision sound immediately on discovering a collision or queue every collision and process the sounds later? Similarly for user user ...
5
votes
2answers
1k views

Component based game engine and dependencies - singletons [closed]

I am thinking about how to create component based game engine. I understand that all things should be very similar as in Data Oriented Design (each object is a collection of various structures as ...
3
votes
3answers
331 views

How do I prevent memory-modification cheats?

There are many memory-altering programs out there nowadays (Cheat Engine & co). Is there an efficient way to keep a constant variable actually constant? I had two ideas: Make a separate thread ...
3
votes
1answer
54 views

Field of view determination with partially opaque cells

I'm currently implementing the field of view of a player in a 2D-grid based game. I've chosen a standard ray tracing algorithm because he really fits the features needed in my game. However, the ...
1
vote
0answers
35 views

Maintaining relative location of objects across different screen resolutions

I'm developing a very simple interactive HTML5 game, in which I need to show a room having multiple objects like cupboard, table, fan etc. How can I bind all of the objects together, so that they ...
1
vote
1answer
127 views

How can I manually control the lifetime of actor objects in C#?

I have the following Actor and Scene classes : public class Actor { string name; vec3 position; quat rotation; public void Update() { ... } public void ...
45
votes
5answers
2k views

Is there a pedagogical game engine? [closed]

I'm looking for a book, website, or other resource that gives modern 3D game engines the same treatment as Operating Systems: Design and Implementation gave operating systems. I have read Jason ...
1
vote
1answer
82 views

What are the advantage/disadvantage of publishing a game as Chrome App over Android app?

I have a 2D game on my mind that I wanted to develop. Though I am quite familiar with using Javascript, CSS3 and aware of HTML5's canvas, I am also aware of Chrome App and its ability to work offline. ...
1
vote
0answers
55 views

how to project a collision between a pair of polygons under rotation?

I am trying to create a physically plausible 2d physics engine. I have read many documents about detection of collisions, contact resolving, interpenetrations, projection, separating axis theorem ...
0
votes
1answer
147 views

Planet gravity? [duplicate]

I am trying to make a game with the Phaser game engine and would like to implement some sort of planetary gravity. Essentially I just want the player to be able to walk on a circle or orbit a point. I ...
9
votes
2answers
671 views

Should the content pipeline tools be embedded in the engine?

How minimal should a games engine be? How much of the content pipeline should be embedded in the engine? Some use cases where the super engine might be useful: When loading user content, the user ...
5
votes
2answers
913 views

What do I need to get an independent developer license for CryENGINE 3?

I have searched Google and CryEngine forums and I can't seem to get a solid answer to this question. I have seen threads where developers are complaining that they can't sell their game because they ...
0
votes
0answers
19 views

make ball to bounce [duplicate]

I'm making a game in GameMaker. I would like to know the code needed or the condition for a line that the player would draw and then a ball would bounce on it
0
votes
2answers
186 views

Should I use a engine when building a snake game? [closed]

I'm new to game development, and want to build a snake game for Android (Maybe also iOS). I've made several apps for Android and have a pretty good experience with Java. The question is, do I need to ...
1
vote
0answers
92 views

iOS OpenGLES - Multithread Game loop - Render and Update

I am trying to implementing multi-threaded game loop in iOS. (Actaully, two thread - Render and Update) This is my structure. Update Loop Has logic and at the end of loop, save update state. ...
1
vote
1answer
76 views

Is there a robust way to get a pointer to a resource when I have a handle to its base type that doesn't rely on dynamic_cast?

I'm building my own pet engine and after struggling with how to handle resource ownership for a while, I came across this question and specifically Josh and Sean's responses (as well as Sean's blog on ...
2
votes
1answer
181 views

How to implement a multi-platform Java 2D game engine's graphics?

I'm not sure whether this question should be posted here. I'm trying to make a basic generic game engine in Java. Here's what I have so far. public abstract class Device { public abstract void ...
0
votes
3answers
72 views

Getting entity type object [closed]

I have a custom entity class and what it does is create a SQUARE object. public class Entity { Rectangle rect; public Entity() { this.rect = new Rectangle(20,20); rect.relocate(200,200); ...
7
votes
1answer
277 views

RK4, Derivatives, Understanding Game Physics

Gafferon Games has a great article on RK4 Integration for building physics simulations which can be found here: Integration Basics Personally my mathematics and physics knowledge could use ...
40
votes
8answers
7k views

Where to start with game development? [closed]

I asked this earlier in this thread at stackoverflow.com. One of the early comments redirected me here to gamedev.stackexchange.com, so I'm reposting here. Searching for related questions I found a ...
0
votes
0answers
47 views

Space invaders 2d array to represent scene [duplicate]

For code optimization purposes, I want to create a 2d array that contains 40 equal squares (10x10px). Each square represents 1\40 of the displayed window (400x400px). I populate the 2d array with the ...
7
votes
2answers
2k views

Is the source code of the Source Engine available?

Is the full C++ source code of the Source Engine available? I know the SDK is available with the purchase of a Source-based game, but my goal is to find a open-sourced game engine that includes its ...
1
vote
1answer
98 views

Game Engines: how to keep different platforms code in separate plugins?

Considering that some game platforms are under NDA (mostly, the good old console trinity) and that publishing code using their SDK is not allowed, how do game engine usually manage keeping plugins for ...
2
votes
2answers
786 views

Do Playfish and Zynga use Flash game engines? [closed]

I'm very interested to learn how to make 2D and 3D games, but I'm very new to this field so I am wondering if companies like Playfish, Zynga and other producer of games on Facebook are using publicly ...
1
vote
2answers
100 views

Checking which object cause most gravitational force

I'm work on a proof-of-concept space-engine, and one of it's tasks is to find the object with the greatest Sphere Of Influence towards the player - that is the mass of the object divided by the ...
1
vote
1answer
316 views

Using Unity 3D in LibGDX

Is it possible to use Unity 3D engine with LibGDX when making Android game apps? Is it also possibly used for making 2D games using Unity 3D and LibGDX? I would like to know if it's possibly ...
0
votes
0answers
145 views

Using Spine in an EaselJS project

I am trying to develop a game using EaselJS. I am looking to use Spine for the getting the animation data, but I can't find any reference for combining these two, probably because Spine is fairly ...
1
vote
1answer
58 views

Swapping function definitions at runtime

I am developing an cross-platform game-engine with a friend using C++, OpenGL ( 2 + 4 ) and some other Low Level API provided by the platform. So far we've finished window initalisation and some ...
3
votes
2answers
156 views

How can I organise the code for an episodic game?

We're working on a game that's going to be split into three episodes, which we'll release one after another as they get finished. I'm worried that our typical somewhat monolithic architecture is not a ...
6
votes
4answers
228 views

Should references between assets be handled by name or ID or something else?

How should content or asset items be referenced in their serialized form? For example, a material might need to reference several textures. The simplest way would be to use a path, relative to the ...
9
votes
3answers
17k views

Writing Game Engine from scratch with OpenGL [closed]

I want to start writing my game engine from scratch for learning purpose, what is the prerequisites and how to do that, what programming languages and things you recommend me? Also if you have good ...
0
votes
0answers
94 views

Encapsulating variable elements into one drawable object - XNA/MVVM

Ok so I'm building a game and there is a class for an Object which gets the Values of a specific card from a XML Table and stores them in varibles. Note: I will have many "Card"'s instantiated at any ...
5
votes
1answer
972 views

What's the difference between Canvas and WebGL?

I'm thinking about using CAAT as a part of a HTML5 game engine. One of it's features is the ability to render to Canvas and WebGL without changing anything in the client code. That is a good thing, ...