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

learn more… | top users | synonyms (1)

5
votes
2answers
141 views

Decoupling input from game states / entity behavior

I'm looking for a way or general best practice advices for decoupling the architecture of my game, in the example below the input from the current game state workflow / entity behavior. While I'm all ...
-1
votes
1answer
53 views

Unity3D 5 Personal? [duplicate]

I want to make a game in Unity3D and I am planning to launch it to Android using the free license. However, if the game becomes a huge success and earns more than $100k, does (a) unity take the money ...
1
vote
1answer
45 views

Quaternion Types in Game Engine

I've recently been coding a quaternion class for my game engine and have run into a problem. Firstly, should I be using unit quaternions for my engine? Secondly, should I have the functions ...
3
votes
1answer
301 views

Should I implement Entity Component System in all my projects?

I'm not here to ask for any specific code implementation, I'm here just to make my ideas clearer. But let me explain the situation: I have already developed some little and amatorial game projects (...
6
votes
1answer
190 views

How to detect collision only in non-transparent texture?

I am developing a game using libgdx. I am trying to detect the collision between bee and tube. I am using the following code to detect the collision. if(player.getBounds().overlaps(boundsBot)){ } ...
4
votes
2answers
381 views

Complex system-component dependencies in entity-component system?

I am trying to design a typical (data-oriented) ECS engine. The issue I am struggling with is that my rendering system have to rely on two different sets of entities to actually do rendering. My ...
0
votes
3answers
140 views

Alternative to entity system in a game engine? [closed]

I have been developing a game engine. I was wondering what I should use for a component system. I've read up on entity component systems, but what other alternatives are there? The idea of searching ...
0
votes
1answer
92 views

Why is the alpha value of a Sprite in LibGdx 0.99607843 and not 1?

I'm developing a game in LibGDX and one of my problems is related to the alpha value of a Sprite object. If I create a new Sprite sprite object then sprite.getColor().a is equal to 0.99607843 and not ...
-1
votes
1answer
54 views

How are pocket dimensions created in multiplayer games? (programming aspect) [closed]

How do multiplayer games deal with multiple instances/dungeons/regions? I'm familiar with server clustering which is what larger games use such as Eve and World of Warcraft. How do games such as ...
0
votes
1answer
91 views

Organizing Setup(), Update() and Draw() function in a game engine

I'm creating my first game engine and I want help with organizing the Setup(), Update() and Draw() functions in the correct way. Here is how my main() function looks like /* BEGIN main() Function */ ...
3
votes
3answers
207 views

Using two languages in a game engine?

I'm thinking about making a game engine as a learning project. I know Java the best and I figure most of the code is not going to be running that much of the time, (20/80 rule) so why not write most ...
1
vote
1answer
201 views

Want to create live-voice chat between players either in unity or unreal engine [closed]

I would like to create a real-time voice chat in either in unreal or unity between the players.I would like to associate and apply this voice-chat depend on username. I am saying "or" for the ...
3
votes
1answer
73 views

How to store renderer vertex / index data in scene graph objects?

I have a SceneNode class which contains a Mesh instance. The Mesh class stores client side information such as vertex and index arrays (before they're uploaded to the GPU). I also have an abstracted ...
2
votes
1answer
62 views

Unreal Engine Player Quality

I had to force Unreal to use my integrated graphics card because VR wasn't working with my NVidia card. When I did this, the framerate dropped terribly and it popped up a dialogue "Frame rate's bad, ...
0
votes
0answers
42 views

How to parse a and displat TMX map object in SDL using tmxparser ?/How to make a platform game using tiled editor and SDL?

I am newbie in this field getting too much trouble in simple platform game for one of my project module if you guys could help or share some code. This is what I have done till now. I could parse a ...
-1
votes
1answer
61 views

Why not draw a custom font with lines and/or polygons?

Reasons/advantages I see: More flexible procedural animation. Completely custom font. Performance (no texturing or high-poly)? No assets (unless data-driven). Multi-resolution compared to sprite ...
3
votes
1answer
94 views

Ideal draw order - sort primarily by distance or material?

When it comes to pre-sorting the draw calls for a given frame, I am aware of two different methods for optimising. The first is to batch draw calls by their material. This minimises shader changes ...
4
votes
2answers
58 views

Threading/Streaming files while rendering the scene

I am writing a game engine and am trying to wrap my head around data streaming while rendering. What I mean by this is being able to load resources (however slow it may be) while rendering and not ...
-5
votes
2answers
131 views

The Power of 2D Engines vs Modern 3D Games [closed]

I'm toying around a lot with Game Maker. I really like it. GML is very simple and with its nearly object oriented design you could create anything in 2D you can think of. However there is a limit. ...
16
votes
6answers
4k views

How do I correctly use singletons in C++ engine programming?

I know singletons are bad, my old game engine used a singleton 'Game' object that handles everything from holding all data to the actual game loop. Now I'm making a new one. The problem is, to draw ...
3
votes
3answers
244 views

How do you apply relativistic physics to a 4x strategy game?

I had the big idea of trying to create a hard science fiction 4x strategy game (with the obvious space setting), which is supposed to simulate a realistic way of creating interstellar societies while ...
1
vote
0answers
44 views

Stencil buffer confuse

I was trying to make two object outline. One would color the object with orange and other with green. I just wanna know if is it possible to have two object outline at the same time because every time ...
16
votes
2answers
2k views

Can I embed a game in a Pdf Resume?

I was thinking how it could be cool to have an interactive game on resume. (Obviously the digital version, not paper version.) For the sake of this question and scope of this site, let's ignore ...
-1
votes
2answers
107 views

How to model an Attack( ) action? How to model combat? In general, how objects communicate?

I never understood how would you elegantly describe two people talking in OO. I think this question extends to how similar objects communicate in general. I am designing a game now and Units have to ...
0
votes
2answers
105 views

Connect phone to computer? [closed]

In order to test out my game, I need to use my real life device. The problem is, android studio isn't recognizing my device plugged in: The problem: My device isn't getting detected in android studio ...
2
votes
2answers
82 views

LUA form/scene loading

At the moment, I'm working on a small game project using LUA and the love2d framework. Using this framework, I've made my own assets (i.e. button images, form images, etc), and using these assets I've ...
2
votes
1answer
40 views

Draw lines in game scene [closed]

I want to do game for Android that allows draw lines. These lines should be physic object at the same time. I am good at Unity3D and I tried in Unity3D. But it is not supported. What engine should I ...
-1
votes
1answer
49 views

Manager Game Logic [closed]

I'm currently trying to figure out a way where I can achieve the following; Pre-Calculate the game - This will predetermine any event / interaction between the players. Simulate the calculation - ...
-1
votes
1answer
82 views

How to avoid mouse click over the trigger object?

I'm detecting the mouse clicks if the click is happened over the collider but i dont't want to fire mouse click if it is on the trigger object. How to i do this. Anyone give me a suggestion. Thank ...
-2
votes
1answer
73 views

DirectX is difficult sometimes [closed]

I recently started DirectX 11. Sometimes I can't get my head around it. First of all what are COM objects and why we do have to release them? I have done most of initialization, but I am stuck in ...
2
votes
0answers
69 views

What is the best abilities modding system that you encounter in games? [closed]

I'm thinking about designing an abilities system (as in a moba game). Most important goal is to be able to easily create new abilities in the editor, with a low learning curve (ultimate goal: simple ...
2
votes
0answers
28 views

difference between an engine and a library [duplicate]

I'd like to know the difference between a library and an engine. I've searched some information and if I'm not wrong, an engine gives you more options and makes work easier than a library. An engine ...
1
vote
2answers
57 views

Where could i find 3d items in 3d points array?

I've been reading a lot but i can't find any answer, evenmore, English is not my main language so i don't even know how to ask it correctly. I'm currently working on a 3D render engine on JS and ...
4
votes
1answer
164 views

Finding it difficult getting to grips with LibGDX [closed]

So I have spent about a week now learning libGDX and have made very little progress. I started small and wanted to make a strategy game where there is a tiled map of squares and you control a ship, ...
2
votes
0answers
139 views

What are the newest alternative to all-in-one game engines? [closed]

I have been seaching a while for recent alternative to engines like unity or unreal, however, I haven't found one actively maintained that meet my needs. For instance, I tried irrlicht with maps ...
1
vote
1answer
47 views

openGL : render each mesh at their respective locations

At the moment I have a single mesh, and I give the vertex-shader a matrix which holds the objects position, scale and rotation, and it seems to work. in vec3 position; uniform mat4 object; uniform ...
2
votes
1answer
46 views

Libgdx - Viewport for Tetris-style game [duplicate]

I'm a beginner in libgdx, and I'm trying to create my first game. It's pretty simple, circles are falling from the top and sides of the screen, and the user needs to "blow" them before they touch the ...
2
votes
2answers
142 views

Low performance from unordered_map when accessing elements in member template function in derived class

I'm trying to implement a component based architecture on a game engine project. Each GameObject has an unordered_map that holds a pointer to Component base class. At this point, I only have one ...
3
votes
3answers
115 views

Creating a Game Engine: How to position game objects (top left vs. center)

I'm building a custom game engine in C++ using SDL and I'm not sure how I should define the position of my game objects. I tried googling a bit but I wasn't sure how to refine my search terms to get ...
2
votes
0answers
84 views

How to develop a good game project? [closed]

I have enough experience in both C++ and Java, since I've been working on them a lot. My graduation project is, in my case, a game (I still have almost 8 months remaining). I already took down the ...
2
votes
1answer
87 views

How to test the effectiveness of a game engine?

A few friends and I are working on a home-brewed engine for a selection of games we wish to produce in the future. We're making it to satisfy a few key requirements that we haven't found were properly ...
2
votes
0answers
60 views

Efficient mobile rendering order, given transparent vs. non-transparent objects

I'm interested to know how others would do / have done this. Part 1. Constraints. My current renderer is being built to support OpenGL ES 2.0 primarily and so aims for performant mobile as well as ...
1
vote
1answer
60 views

Invalid GLSL on some machines

I'm writing a game engine using OpenGL 4.3 using gcc 5, mainly to teach myself graphics programming. Initial development was on my Surface Pro 3 using mingw-w64 and worked like a charm. I've decided ...
2
votes
1answer
292 views

Resource streaming with job threading system

I am currently researching resource streaming for my current game engine. To add a bit of context, I am doing a contiguous world for a Baulder's Gate style CRPG. So while the camera is usually looking ...
1
vote
1answer
81 views

My Sprite is disappearing when it collides with my floor (libGDX)

I am just starting to build the game "engine" and I am using a sprite drawn in the same position as a rectangle and the two always move together. I have another rectangle which is the floor when the ...
0
votes
1answer
111 views

How do I create a playing field of collapsing bubbles, as in Tsum Tsum?

Tsum Tsum App is a pretty interesting game and I am wondering how the main play area's data structure is, erm, structured? Characters are stacked, disappear as the player swipes over matching ones, ...
3
votes
0answers
125 views

World scene graph questions [closed]

I am going through the process of rethinking my current game engine's design. And I'd like to ask about some information from other's experiences about scene graph. Before we begin, this graph is in ...
0
votes
0answers
97 views

What is a good way of handling shaders?

I'm currently reading this book and are at the chapter about the rendering subsystem of a game engine. Now, the book suggests that a material is a structure that provides information on how to shade ...
15
votes
3answers
2k views

Separating Game Engine from game code in similar games, with versioning

I have a finished game, that I want to decline in other versions. These would be similar games, with more or less the same kind of design, but not always, basically things might change, sometimes ...
5
votes
1answer
125 views

Is locking required to implement a seperate rendering thread?

I kept reading a lot about this, but still not sure about a proper way to implement an independent render thread (variable timestep) running parallel to a physics thread (smaller, fixed timestep). I'...