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

Building a simple online game server for Unity

I'm trying to build an online game server for my Tank game 2D (Unity). In my game there will be 2-4 players control their tanks and fight each other. I've tried to use Unity networking, it was not really suitable for my game because we have to…
FlySoFast
  • 1,854
  • 6
  • 26
  • 47
8
votes
1 answer

Destroying clone destroys all clones

I want to destroy an instance of an object when it is within a particular circular area. The code is as follows: Collider2D[] overlap = Physics2D.OverlapCircleAll( ball.transform.position, (ball.renderer.bounds.size.x)/2); if…
Ahmed Zafar
  • 665
  • 2
  • 10
  • 24
8
votes
2 answers

Why do I get bad performance with SDL2 and SDL_RenderCopy inside a double for loop over all pixels?

I am programming a raycasting game using SDL2. When drawing the floor, I need to call SDL_RenderCopy pixelwise. This leads to a bottleneck which drops the framerate below 10 fps. I am looking for performance boosts but can't seem to find…
Marius Anderie
  • 23
  • 1
  • 2
  • 12
8
votes
2 answers

JSTilemap - Loading only visible tiles

Has anyone been successful in loading only the visible tiles using JSTilemap? The reason I ask is because my map size is much too large to load at once and I would either like to load segments individually or only dynamically load those tiles…
Calm Turtle
  • 292
  • 3
  • 18
8
votes
2 answers

How to safely decouple rendering from updating the model?

Talking with some game developers, they suggested that a performant OpenGL ES based game engine does not handle everything on the main thread. This allows the game engine to perform better on devices with multiple CPU cores. They said that I could…
Proud Member
  • 40,078
  • 47
  • 146
  • 231
8
votes
1 answer

How to make HTML5 games like Google Doodle's Doctor Who?

I searched over the codes on the front page of Google Doodle which plays Doctor Who HTML5 game. I wonder what game engine (if necessary) does Google team use?
8
votes
2 answers

What is ActionScript 3? How does it work?

I am actually new to android programming and I was wondering how an game engine such as the starling engine works. I have previously programmed in canvas, surfaceView and I was able to make simple 2D games, but now I want an easier way to make a…
8
votes
2 answers

LibGDX: Filtering a scaled TextureRegion

I have several objects with different textures for different states, so I am using a TextureAtlas made with TexturePacker, and resizing the TextureRegion where I need it. I have to resize because not only am I trying to support both 720p and 1080p,…
Mike Carpenter
  • 197
  • 1
  • 2
  • 9
8
votes
3 answers

3D Engine for Driving Simulation

Is there any open-source 3D graphics and physics engine specialized in driving simulation? Something like a configurable game engine targeted at games that involve driving, or something more specialized to urban traffic conditions and that would…
luvieere
  • 37,065
  • 18
  • 127
  • 179
8
votes
2 answers

How interoperability works

I know that many large-scale applications such as video games are created using multiple langages. For example, it's likely the game/physics engines are written in C++ while gameplay tasks, GUI are written in something like Python or Lua. I…
gone
  • 2,587
  • 6
  • 25
  • 32
8
votes
1 answer

Does "deWiTTERS Game Loop" assume a constant UPS?

I recently tried to get into games programming. I am pretty experienced with Java, but not with game programming. I read http://www.koonsolo.com/news/dewitters-gameloop/ and implemented the game loop proposed there with the following code: private…
BlackWolf
  • 5,239
  • 5
  • 33
  • 60
8
votes
4 answers

How to draw a bitmapfont on a stage in libgdx?

This is my current render method on my level in my Libgdx game. I am trying to draw a BitmapFont on my level's top right corner but all I'm getting is a bunch of white boxes. @Override public void render( float delta ) { …
Peter Poliwoda
  • 563
  • 2
  • 7
  • 19
8
votes
2 answers

Detect mouseover an image in Pygame

I have an image: newGameButton = pygame.image.load("images/newGameButton.png").convert_alpha() I then display it on the screen: screen.blit(newGameButton, (0,0)) How do I detect if the mouse is touching the image?
mattjegan
  • 2,724
  • 1
  • 26
  • 37
8
votes
2 answers

2D Physics Engine collision response rotation of objects

I'm writing my own basic physic engine and now I come to a problem I can't solve. Probably because I don't how to google this problem. So here is my problem. I hope this image can explain it: Collision response I have two objects. The gray one is…
tryzor
  • 800
  • 2
  • 10
  • 18
8
votes
2 answers

AI Minesweeper project

I need to implement Minesweeper solver. I have started to implement rule based agent. I have implemented certain rules. I have a heuristic function for choosing best matching rule for current cell (with info about surrounding cells) being treated.…
Nikita
  • 1,811
  • 1
  • 20
  • 41