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
1
vote
2 answers

Can Python run multiple instances of a script with each instance containing it's own data?

I'm in the process of trying to engineer a data structure for a game engine, and allow a scripting language to grab data from it. Due to some limitations of design, the data would need to be stored on the C++ side of the program in a database like…
1
vote
1 answer

Organizing a global system access in a modern-C++ game engine

First of all, I beg your pardon if this question has been already answered, but I simply cannot be sure of my choice. I am working on a C++ game engine and I want it to be according to the modern standards. I wrote it in OOP manner and I have a…
featherless biped
  • 163
  • 1
  • 5
  • 16
1
vote
2 answers

Running Javascript code on Unity giving error.

Hello everyone trying to built a simple game, this is my code when i run this code its giving me the error 'playerMovement' is not a member of 'UnityEngine.Rigidbody'. public var speed : int = 15; var player : Rigidbody; var player2 :…
Sami
  • 387
  • 1
  • 3
  • 10
1
vote
2 answers

how can i implement first person controller movement touch keys for android devices in unity 4.5

i'm new to Unity . i have a simple Terrain in my unity project. what is the simplest way to implement touch joystick buttons to my project so mobile users can move around with? something like this mobile movement joystick example image when i export…
Siamak
  • 1,689
  • 1
  • 17
  • 26
1
vote
1 answer

How to scan all XNB files in Content Manager?

So I'm building a game with MonoGame in VS. I'm using the Content Pipeline from MonoGame (that generates XNB files). The thing is that my game is expansible (it is a rhytim game that user can download songs/charts). So I had to support "plug-in" XNB…
Lucas Teske
  • 642
  • 9
  • 19
1
vote
0 answers

Android game loop not smooth

Trying to make very easy game loop, with one ball on screen (using interpolation). Game loop: private double FPS = 50; private double TIME_STEP = 1000000000L/FPS; private double MAX_TIME = 1000000000L/5; Canvas canvas; double…
mkoval
  • 61
  • 8
1
vote
1 answer

How to dynamically load dlls using macros

Sorry if the title is confusing. Anyways I'm working on a small game engine in C++ and I want to modularize it. I want there to be a core module and then you can install other modules based on what your using (2D Graphics, 3D Graphics, Audio,…
PlanetVaster
  • 507
  • 1
  • 6
  • 18
1
vote
1 answer

Handling normals with indexed geometry

Is it possible to use Vertex Buffer with Index Buffer and apply normals? It seems that normal is more like an attribute of a face, than an attribute of a vertex. F.e. in a cube, each vertex have 3 normals, depending on the face. Is there a smart way…
Bartosz Boczula
  • 349
  • 1
  • 2
  • 9
1
vote
0 answers

My boxes are not colliding

I am making a game engine in java, and am using the separate axis theorem to do collision. There is something wrong where it sometimes doesn't register the collisions. Does anyone see anything wrong with my collision program? public…
1
vote
2 answers

Unity3d C# Trying to access array in script but in void

I have been trying to solve this problem for many hours now, but i just cant figure it out. I need to access the array "letters in the voids "nextItem" and "prevItem", but i get an error saying "ArgumentException: GetComponent requires that the…
Kevva
  • 83
  • 4
1
vote
1 answer

InvalidEnum error in Piston

I am a beginner at game development in Rust and the Piston game engine, specifically. I have compiled and run the spinning square program but the red-square program won't run despite my efforts to resolve the errors. This is on Debian 8.3 and Rust…
Bluebird45
  • 147
  • 2
  • 10
1
vote
1 answer

Error: C2280 Creating a vector of unique_ptr to Class

It seems that when using a unique_ptr in vector> I get an error stating: Error 1 error C2280: 'std::unique_ptr>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' :…
Rashid Ellis
  • 330
  • 3
  • 22
1
vote
1 answer

Phaser JS walk up tile based stairs

I'm creating a small 2d-minecraft clone, in Phaser js, on my own as a learning experience. So far I have gotten player movement and random level seeds to work ok. I am using Phasers P2JS engine and have sprites that are box based. What I'm…
Pablo Jomer
  • 9,870
  • 11
  • 54
  • 102
1
vote
3 answers

OpenGL sigsegv error in class constructor

EDIT* I rearranged the initialization list, as suggested by much_a_chos, so that the Window object initializes before the Game object, ensuring that glew is initialized first. However, this did not work: //Rearranged initialization list class…
thatman
  • 107
  • 7
1
vote
2 answers

Why is there weird number in transform, -90 to -89.9801

Do you notice that sometimes, the number in transform is weird. Like: -90 to -89.9801 270 be 271.00001 or like this Even that what you set originally is 90 or 270. Why does this happen? Does it have some connections of unity's mechanisim?
tim
  • 1,454
  • 1
  • 25
  • 45