Questions tagged [game-engine]

Use this tag only if you are creating or modifying a game engine framework, or if the game engine you use doesn't yet have its own tag on Stack Overflow. Otherwise use the engine-specific tag(s).

A game engine is a software framework designed for the creation and development of video games.

Some game engines even include a suite of visual development tools in addition to reusable software components and an asset pipeline that takes care of pre- and postprocessing resource files.

Many so-called "game engines" only provide real-time rendering capabilities instead of the wide range of functionality (physics, collision detection, pathfinding, user interface controls, AI, etc) needed by games. These engines rely upon the game developer to implement the rest of this functionality and are more correctly referred to as a "graphics engine" or "rendering engine".

3791 questions
9
votes
6 answers

HTML5 Canvas game loop delta time calculations

I'm new to game development. Currently I'm doing a game for js13kgames contest, so the game should be small and that's why I don't use any of modern popular frameworks. While developing my infinite game loop I found several articles and pieces of…
Kosmetika
  • 20,774
  • 37
  • 108
  • 172
9
votes
2 answers

Avoid ground collision with Bullet

I'm trying to use Bullet physic engine to create a 3D world. I've got my character with a Capsule shape on his body and my ground his made of some static blocs stick together, here is a schema to illustrate my words: The problem is present when my…
user30088
  • 497
  • 1
  • 6
  • 14
9
votes
1 answer

Diffuse light/shadow

I just implemented a light system in my engine. In the following screenshot you can see a light (the yellow square) in action: Take into account that on top of the light illuminating the scenario, its also implemented a FOV which will occlude…
Leo
  • 1,174
  • 11
  • 25
9
votes
2 answers

How to implement a game-loop with C++ and QtQuick

I'm developing a game with QtQuick 2 (Qt5.2) QML and C++. I want most of the game-logic in C++ (I don't want to do it with JS), and I'm trying to use QStateMachines for a lot of the logic. Now my question is, how do I implement a proper game-loop in…
Ela782
  • 5,041
  • 5
  • 53
  • 66
9
votes
2 answers

Setting up projection, model, and view transformations for vertex shader in eigen

I've looked around and have never seen, nailed down, exactly what each matrix does and what operations form them (so the actual eigen function calls). This is what I'm looking for. Or at least a description of the process and a couple examples…
user173342
  • 1,820
  • 1
  • 19
  • 45
9
votes
6 answers

How do you get started when trying to understand the code of a 3D game engine (like id Tech 3)?

I'm a C# developer for the most part. Back in college I had classes on C/C++ so I "know C" and that's a good chunk of the reason I'm a C# developer. However I've never had the chance to code in C/C++ professionally and I'd like to study how a modern…
Tom Kidd
  • 12,830
  • 19
  • 89
  • 128
9
votes
1 answer

Game programming and quantity of timers

I've made a simple 2D game engine using C# and DirectX and it's fully functional for the demo I made to test it. I have a Timer object that uses QueryPerformanceCounter and I don't know what's the better choice: use only one timer in the game loop…
andresjb
  • 101
  • 4
9
votes
1 answer

Game Networking Projectiles Implementation/Concept Issue

I am trying to come to some sort of solution to a common problem with synching projectile firing and game networking in general, but am unsure on what would be the best fit. This is a 2D action side-scroller with several projectiles (no instant hit…
Joshjje
  • 220
  • 4
  • 14
9
votes
2 answers

What are the "gotchas" when developing an iPhone Game?

Am used to developing business and reference apps. Now I have to do an iPhone game. What tips can you share to help me with: understanding the scope of the project defining the deliverables specifying the game play and other parameters estimating…
9
votes
1 answer

Why are game renderers so fast compared to 3d applications' renderers?

I have been doing some 3D graphics in Blender in last few years and I have also tried making 3D games (in Unity 3D). I also play computer games very much and I'm surprised by one thing: Why are 3D applications' renderers so "slow" compared to game…
Miroslav Mares
  • 2,292
  • 3
  • 22
  • 27
8
votes
3 answers

Implementing a CVAR system

I would like to implement what I know as a CVAR System, I'm not entirely sure on what the official name of it is (if any). It's essentially a system used in some programs and video games, where a user can pull down a console and input a command,…
shmeeps
  • 7,725
  • 2
  • 27
  • 35
8
votes
3 answers

How do you scale a design resolution to other resolutions with Pygame?

So in every Pygame example I've seen, there seems to be a resolution the game is designed to be played on and that's it. No options for setting higher or lower resolutions. If you do change the resolution via display.set_mode, then the scale of the…
Matthew
  • 768
  • 1
  • 11
  • 25
8
votes
2 answers

SceneKit game architecture

I am trying to design an architecture for a SceneKit iOS game. I've shown below two rough high level object diagrams/graphs of my current preferred ideas. I am only looking at the high level architecture at the moment, i.e. managing transition…
Sulevus
  • 669
  • 5
  • 13
8
votes
3 answers

Writing my own 3D Game Engine

I want to write a simple 3d game engine for apply. I have bought some vital Books like : Ultimate 3D game programming by sherrod Advanced 3D Game Programming with DirectX 10.0 Real-Time Rendering, Third Edition 3D Game Engine Design, Second…
Behrouz.M
  • 3,445
  • 6
  • 37
  • 64
8
votes
2 answers

MonoGame vs Unity3D

This is my first question asked on StackOverflow. I want to ask the more experienced game developers which is better MonoGame or Unity3D. My intention is to learn one of these to enable me to create my own Android and possibly Windows games using…