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
0 answers

How to implement a dialogue/quest system in a javascript game?

I've been looking around for any examples and implementations of a dialogue/quest system on the internet, and could find much on javascript. Mostly Unity tutorials, and those are on C#. So I'm running a node.js server, and an html5 client with…
Micard
  • 379
  • 2
  • 15
1
vote
1 answer

Java 2D Game Engine, LibGdx lights

I have already read a lot of question, about which engine you should use for a 2D Game, but I still have same questions. I already wrote a little 2d game with libgdx, but my next game should be a bit more advanced. By my first game I used…
Meister96Fels
  • 508
  • 1
  • 8
  • 26
1
vote
1 answer

Making a video games music get faster

Some video games music seems to play faster as the action on screen increases. How are they achieving this effect, Do they have the same loop but simply speed it up, do they have the loop cut up into different sections and play them closer…
Chris
  • 2,739
  • 4
  • 29
  • 57
1
vote
0 answers

How to optimize 3D AABB Rotate (Java)

recently I have been implementing 3D AABB's into my game engine, to accomplish rotations I use a simple method of rotating all 8 calculated corners around the center of the box using my Vector3f.rotate() method. But as you may notice below it is…
1
vote
1 answer

Purpose of having multiple game updates if there's a fixed timestep and interpolation

I am attempting to create a game and have implemented a fixed timestep as described in the article: http://www.koonsolo.com/news/dewitters-gameloop/comment-page-3/#comment-18678 This is quite a common strategy in order to get determinism in the…
TheMAAAN
  • 501
  • 5
  • 15
1
vote
1 answer

PlayerPrefs not working on Android nor Editor

I have problems with PlayerPrefs on Android. I want my tutorial to show just one time so I wrote this code: void Awake(){ firstTime = false; hasPlayed = PlayerPrefs.GetInt ("hasPlayed"); if (hasPlayed == 0) { …
user1423168
  • 155
  • 1
  • 1
  • 13
1
vote
1 answer

How to get full path for "../" in Unreal Engine?

I am trying to print full path for "../" in Unreal Engine but It only returns ".." , as i know it is parent directory , and it should return something like C:\Myproj.... FString fs = FPaths::GetPath("../"); UE_LOG(LogTemp, Warning, TEXT("%s"),…
Kas
  • 3,747
  • 5
  • 29
  • 56
1
vote
1 answer

Luxe - "Type not found : UserConfigDef" after updating

I've just updated Haxe, Luxe, Hxcpp, etc. on Windows after not using them for a while, and now none of my projects will compile, not even the "empty" sample. I get the following in cmd: C:\GAMEDEV\empty>haxelib run flow run flow / 1.0.0-alpha.2…
1
vote
0 answers

How to store edges of convex polygon?

I'm making my own simple 2D-Game's engine and I want to use Separating Axis Theorem to detect collisions but it requires objects to be convex polygons and I would really love to be able to create these polygons in an easy way because every physical…
1
vote
1 answer

Dragging image fix (libGDX)

I'm trying to make a draggable image, still can't get the result. The image jumps on the Y-axis when I click on it. My coding attempt: public class MyGdxGame extends ApplicationAdapter { SpriteBatch batch; Texture img; Sprite sprite; float…
Alex
  • 839
  • 1
  • 12
  • 24
1
vote
0 answers

Player hit animation not playing in phaser

I have a very simple game right now in Phaser, there is a player with walk left and walk right animations, a level with platforms, enemies, and such. I have everything working great except for the player hit and player dead pieces. I thought it…
1
vote
0 answers

Device Attitude (Euler Angle) to 3D Coordinates

Background Here is a drawing of my device's Roll/Pitch/Yaw values: Note: values aren't exact but for illustrative purposes only PI_2 is half of pi or roughly 1.57 PI_4 is a quarter of pi or roughly 0.78 Scenario I'm using the Euler Angles to…
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
1
vote
2 answers

Cost of Math.sin() .cos() vs whacky own implementation

So about an hour ago I had this nice and embarrasing moment when something clicks after a really long time. Pushing 30 I finally got sinus and cosinus. After an episode that can only be described as basically reimplementing the wheel. Aiming for…
1
vote
1 answer

Making an API or scripting language for game engine?

I am currently writing a very simple 2.5D game engine in java and game. This is basically just a fun project I am working on so the amount of time it will take to implement features is no problem, as I can always put it aside and work on it…
uncoded
  • 113
  • 1
  • 1
  • 10
1
vote
1 answer

Game in java: rotating selected object

I'm developing a Java game just for study purposes. I want the player to select the object. The selected object can move, but the others (non-selected objects) must not move. Game.java: import javax.swing.JFrame; public class Game { public…
kibe
  • 163
  • 1
  • 13