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
7
votes
2 answers

using different programming language in godot game engine?

I want to bind a different programming language to the Godot game engine. Is there an instructional document or video on this topic? For example, how was this project done: godot-rust. If I can learn the basics, I can succeed in working in a…
mrParabol
  • 73
  • 2
  • 6
7
votes
1 answer

How to manipulate the rendergraph in Bevy

I would like to be able to get the previously rendered frame and use that as a sampler in the current frame. There is a good set of example code in the Bevy repository to show me how to apply custom shaders as materials to a mesh. But I would like…
vivichrist
  • 309
  • 2
  • 9
7
votes
1 answer

Gaffer on games timestep: std::chrono implementation

If you're not familiar with the Gaffer on Games article "Fix your Timestep", you can find it here: https://gafferongames.com/post/fix_your_timestep/ I'm building a game engine, and in an effort to get more comfortable with std::chrono I've been…
Josh Sanders
  • 750
  • 10
  • 21
7
votes
1 answer

Spliting component in Entity-Component-System demands too much refactoring

I have an existing working C++ game library that use Entity-Component-System (ECS). User of my library would like to create some components e.g. Cat :- class Cat{ public: int hp; float flyPower; }; He can modify hp of every cat by e.g.…
javaLover
  • 6,347
  • 2
  • 22
  • 67
7
votes
3 answers

How can I exclude unnecessary DLLs from my build?

I'm trying to optimize the file size of my game, in particular the android build. I have optimized the assets and set the build stripping level to Use micro mscorlib. However, looking at the Editor.log reveals the DLLs still take up more than 50%: …
jvitoroc
  • 380
  • 1
  • 4
  • 16
7
votes
2 answers

Normal map lighting is different depending on the direction

I am trying to use a normal map instead of the vertex normals and I can't figure out which step I'm doing wrong. I want to transform the light direction into tangent space and do the calculation from there. First, I transform the vector normals and…
Sogomn
  • 304
  • 3
  • 16
7
votes
3 answers

AABB collision resolution slipping sides

So, I am currently reinventing the wheel (and learning a lot) by trying my hand at making a simple physics engine for my game engine. I have been searching the internet, trying (and failing) to fix my current problem. There are a lot of resources…
Tim Eriksen
  • 113
  • 1
  • 8
7
votes
1 answer

Ruby game frameworks that are still actively maintained?

I'm finding it very difficult to survey the options for game programming in Ruby. Several wrappers and frameworks that are mentioned in other posts and articles are no longer maintained or in use. Gosu / Ruby seems to still be active: there's been a…
Dogweather
  • 15,512
  • 17
  • 62
  • 81
7
votes
3 answers

Multiple instances of btDefaultMotionState, all ignored, but one

To summarize the problem(s): I have two bodies in my world so far, one being the ground, the other one being a falling box called "fallingStar". 1) I do not understand why my bullet world is not aligned with my drawn world unless I set an offset of…
user4063815
7
votes
7 answers

Design pattern for modeling two competing objects

I'm trying to figure out the best design pattern to use for managing a "competition" between two interacting objects. For example, if I want to have a Fox class that chases a Rabbit class through a simple environment. I want to let them "compete"…
emersonthis
  • 32,822
  • 59
  • 210
  • 375
7
votes
0 answers

Godot Engine published app gets security alert after adding AdMob

I recently released a simple game made with Godot Engine and after adding the Google AdMob library to display ads, I get this security alert : Your app contains URL credentials, which is often unintentional. Please see this Google Help Center…
PayToPwn
  • 1,238
  • 1
  • 16
  • 29
7
votes
3 answers

Write in C++ and expose to C# or write directly in C#?

I am doing a bit of research before I am going to write my own 2D (and maybe some 3D) game engine. I have made an engine before using C# and XNA but I want to go cross platform this time by making my new engine in C++ using opengl etc. But ... I…
WoutervD
  • 2,139
  • 2
  • 13
  • 13
7
votes
1 answer

Racket as scripting language in a game engine

I would like to add scripting capabilities to my C++ game engine. I have Engine.exe, Physics.dll, Audio.dll and I'm adding Scripting.dll which is a high-level Racket wrapper. Engine.exe loads Physics.dll and sets up physics world, loads Audio.dll…
7
votes
2 answers

In Unity what exactly is going on when I implement Update(), and other messages from MonoBehaviour

I'm pretty new to C#, coming from a strong background in Java, python, and some "web" stuff. So I'm probably just missing some knowledge here, that hopefully somebody can fill in for me. Going through the Unity Scripting API, I noticed a lot of…
Adam LeBlanc
  • 932
  • 7
  • 21
7
votes
3 answers

Fixed timestep stuttering with VSync on

In a 2D OpenGL engine I implemented I have a fixed timestep as described in the famous fix your timestep article, along with blending. I have a test object that moves vertically (y axis). There is stuttering in the movement (preprogrammed movement,…
Ed Rowlett-Barbu
  • 1,611
  • 10
  • 27