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
1 answer

How to calculate direction vectors from axis-angle rotation?

I'm representing rotations for actors in my rendering engine using a vec4 with axis-angle notation. The first 3 components (x, y, z) represent the (normalized) axis of rotation, and the last component (w) represents the angle (in radians) we have…
chpatton013
  • 363
  • 1
  • 5
  • 11
1
vote
1 answer

Creating Linked List of Locations in C

FIX: I wasn't saving the locations back into world so I was just leaking the information. Credit to Skeeto. while(!feof(fp)){ loc = readLocation(fp); join(loc,world); } should actually be while(!feof(fp)){ loc = readLocation(fp); …
iF3V3RzXD
  • 31
  • 2
1
vote
3 answers

GameLoop fps controller

i've been following a series on youtube on how to create a 2d game using java, and i cant seem to wrap my head around how this piece of code works, if anyone can elaborate how this code works id be very gratefull. public void run() { long…
Filip Bog
  • 19
  • 2
1
vote
1 answer

Object shrinks when rotated javascript

I have been developing a basic game engine just to learn the process and I have hit a issue with my rotation function. It works fine except that the object shrinks and appears to invert. Here is a jsfiddle that illustrates my point. I think the…
Devcon
  • 767
  • 2
  • 8
  • 23
1
vote
2 answers

How does a real time browser game work?

I was wondering how a real time browser game work like ogame? How do you constantly update stuff like resources? My only suggestion is having a computer turned on 24-7 but that can't be it.
NicklasF
  • 863
  • 3
  • 10
  • 26
1
vote
2 answers

Apply the grey colour to inactive screen when showing popup

I am trying to show a pop up screen in my LibGdx based Android Game. While doing so I have to blur of apply grey color to the background screen which is inactive while showing the popup. As of now To achieve this I have created a texture with the…
iappmaker
  • 2,945
  • 9
  • 35
  • 76
1
vote
1 answer

Using Cocos2d-x SEL_CallFunc

I'm trying to make a custom sprite, which could receive touch and handle the function as callback. Okay, first step, receive the touch, easy, we can search it online everywhere. The one I couldn't do is, I want to make it receive SOMETHING in the…
Duy Tran
  • 11
  • 1
1
vote
1 answer

HTML5 Memory Game - JavaScript function

HTML5 Memory Game has a JavaScript function to check image matches. Whenever the first match is made, the check() function stops the document from selecting other images for more matches. How should I add another parameter to the check() function…
Cody Taylor
  • 31
  • 1
  • 8
1
vote
2 answers

Reduce recompilation when editing global variables

I am working on a game, I have a huge list of const global variables .h file which many .cpp file relies on. (Enemies would like to know the max hp of players etc) However, this is a compilation nightmare when any variable is changed in the file for…
1
vote
1 answer

HTML 5 canvas game stop

I have created a game on my webpage using HTML 5 canvas and javascript.. the game runs in a loop and the user can play this using the keyboard. The game canvas on the webpage has an ID ="gamecanvas". However, when the view port size decreases, I…
stckpete
  • 571
  • 1
  • 4
  • 13
1
vote
1 answer

Display the score in unity

I am completely new to unity. I am making a simple 2d platformer game using unity. Can somebody help me to display the score on the game. I am storing the value on a int variable. Below is the c# code i used for the distance covered. using…
1
vote
1 answer

How to find nearest N grid points (greedy)

I'm using 2d arrays for to handle objects in a game. The dimensions of the array act like coordinates on a cartesian grid. When the player selects a point on I want to collect the N nearest grid cells from the array, even if the point is not a…
veta
  • 716
  • 9
  • 22
1
vote
2 answers

using arrays to get best memory alignment and cache use, is it necessary?

I'm all about performance these days cause I'm developing my first game engine. I'm no c++ expert but after some research I discovered the importance of the cache and the memory alignment. Basically what I found is that it is recommended to have…
Alberto Toglia
  • 381
  • 1
  • 5
  • 17
1
vote
5 answers

Animation not working Unity 5

So I upgraded my project to unity 5 but now ALL animations on the project just don't work !!! whats the problem Every thing was working fine before upgrading to unity 5
Smaika
  • 1,187
  • 4
  • 12
  • 20
1
vote
0 answers

Slow scrolling of Qt QGraphicsView

I made a simple 2D game in Qt and deployed it to Android device. Main screen of the game is basically a QGraphicsView. Game world is represented by QGraphicsScene which is larger then the main screen. I used…