Tagged Questions
1
vote
0answers
57 views
How to implement a multi-platform Java 2D game engine's graphics?
I'm not sure whether this question should be posted here. I'm trying to make a basic generic game engine in Java. Here's what I have so far.
public abstract class Device {
public abstract void ...
1
vote
1answer
235 views
CPU usage, game loop and sleep()
I've read about this topic on numerous discussion sites, but I can't seem to find a clear definitive (up-to-date) answer, and hopefully this will me some more insight:
I've read the excellent game ...
0
votes
2answers
320 views
how to get started with a game engine [closed]
I'm a 3rd year Computer Science student and I would like to get started with building a game engine or at least tinkering with making one. I am curious if there are any good resources to use to get ...
3
votes
2answers
276 views
What would be the problems with using a singleton design pattern for my engine?
I'm desiging an HTML5 2D game engine in Javascript, and currently, I use the singleton pattern.
There is only one global object in the namespace called simply Engine. All other objects are ...
1
vote
1answer
1k views
AS3 Calculating Delta Time In Seconds
Here is how I've been trying to implement delta time based on different internet resources.
var startTime:Number = getTimer();
game.Update(deltaTime);
deltaTime = Number(getTimer() - startTime) * ...
0
votes
0answers
111 views
When updating a mesh does glBufferSubdata belong in the update function or render function?
When updating a mesh does glBufferSubdata belong in the update function or render function? I'm trying to organize my game appropriately and knowing this would help me. This is my first game and I ...
2
votes
3answers
219 views
What are the pros and cons of a non-fixed-interval update loop?
I am studying various approaches to implementing a game loop and I have found this article.
In the article the author implements a loop which, if the processing falls behind in time, skips frame ...
10
votes
2answers
3k views
how should i develop my android game efficiently?
I have attached a image of a flow chart that i made in paint.
The image shows how i want to develop my game. I want a game that runs great with smart coding that is easy to update and ad features ...
20
votes
2answers
1k views
Several classes need to access the same data, where should the data be declared?
I have a basic 2D tower defense game in C++.
Each map is a separate class which inherits from GameState. The map delegates the logic and drawing code to each object in the game and sets data such as ...
4
votes
2answers
201 views
JS: Should I have an upper limit to the number of update cycles per sec?
I'm making a javascript game engine for fun and one thing I noticed was that my laptop runs super hot with the simplest game mechanics and that my game is doing about 600 updates per second.
The ...
3
votes
2answers
549 views
Designing the Update system (read very basic game engine) for an XNA game
I am trying to determine the best way to implement the "update" system or engine for a simple XNA game.
Description of situation
I have a few classes, lets call them
Player [will be an ...
64
votes
3answers
13k views
Tips for writing the main game loop?
Can anyone recommend some good tips, articles, sites, etc. for writing the main game loop? What are some things that you should do in the game loop, and what are some things that you shouldn't do in ...