1
vote
2answers
80 views

How do I limit the rotation speed of a mouse-following object?

I am trying to make a 2D top-down game where player controls a spaceship. The spaceship (a rocket) is just a sprite following the mouse cursor with a fixed speed and is always pointing toward the ...
1
vote
1answer
28 views

How do I let a MUD engine support different rule sets?

I'm making a MUD game engine that supports D&D , Pathfinder and other tabletop-RPG rule sets. I am starting to build out how characters interact with the world (e.g. dialog, battle, searching for ...
0
votes
2answers
14 views

Multiplayer game principles

I am developing game using libGDX libraries . I want to create multiplayer mode , where several players can play at the same time in the same room , each player can create his own room and other ...
0
votes
1answer
588 views

Communication between Box2D and libGDX Stage (Scene2D) running in separate threads

I'm making a physics based 2D game using libGDX and Box2D. I want to move the execution of the simulation out of render thread. I use immutable messages and the BlockingQueue to pass the information ...
1
vote
1answer
17 views

Mesh fading to transparent

I have a 2D Mesh object generated at runtime painted all with uniform color. I want that mesh to have its color fade to transparent color close to the edges. Despite I searched everywhere I could not ...
0
votes
0answers
3 views

Can't submit facebook app for review

I'm trying to submit my app for review with publish_action. I keep getting the following error: "It looks like you haven't made any API requests to access content with the publish_actions permission ...
1
vote
0answers
11 views

Why does this impulse not affect the body?

I'm just getting started with Box2d and I'm trying to apply an impulse to a circle but nothing really happens. First I define ball: BodyDef bodyDef = new BodyDef(); bodyDef.type = ...
0
votes
2answers
95 views

How to make a game from the ground up [closed]

I've been using unity to make 2d indie type games for a while now. However, i've tried to branch into different genres and unity cant do some of the things that i want it to do(although it is still ...
2
votes
1answer
119 views

How would you implement a simple strategy player controller in Unreal Engine 4?

All player controllers in the C++ game templates are not for strategy games. They all implemented so the player controls just one character. I'm not sure what approach to take when you want to control ...
1
vote
1answer
67 views

Discard Transparent Pixels in Z-Buffer

I am building a 2D game using sprites. I'd like to use the z-buffer to aid with shading. For that I need Unity to write only opaque pixels to the z-buffer (aka depth buffer). In Unity, sprites are ...
0
votes
0answers
5 views

Can’t Load .fbx from blender to Monogame correctly

I am using pipeline.exe tool, to convert an .fbx file I made using Blender (using the default Blender 2.73a export settings) to .xnb, and then manually copy and paste it in my content directory (Is ...
0
votes
0answers
6 views

Pole vault with Box2D?

I would like to replicate the behavior of a flexible pole as used for pole vault. Can somebody give me some inspiration how to simulate that with Box2D? Would I cannot multiple objects with flexible ...
0
votes
0answers
23 views

Creating a 3D Point Out of a 2D Mouse Position Using DirectX11 and MFC

In my view port, I need to translate the cursor position to a 3D coordinate. This coordinate needs to be a set distance from the origin, being the camera position, and represented as a float (or any ...
0
votes
1answer
16 views

How to call a method from another c# script using invoke?

I want to call a method from another script in my script using Invoke(),but unable to run it.How can i achieve this ? Following is my code - void Start () { int randNum; randNum = ...
0
votes
1answer
22 views

How does rendering with Swing compare to rendering with openGL?

[summary: Is the performance of Swing at least in the same dimension as openGL [through LWJGL]? If yes, what percentage would you give it? What possible other problems can I expect from Swing in the ...
3
votes
3answers
751 views

How can a load and play an .x model using vertex animation in XNA?

From a game I developed years ago, I still have character models that my former 3D engine designer created and that I'd like to reuse in a Windows Phone project now. However, the files are in DirectX ...
13
votes
5answers
11k views

How to load 3D models into Java?

Using LWJGL what is the easiest way to load a 3D model to be drawn on screen? I know LWJGL doesn't have built in loading support so I am looking for a small library that would help to load ...
-3
votes
1answer
49 views

Translate a point on a circumference

If point A is r units away from point O, how would i get a point B which is also r units from point O, but is also d units away from point A (translate d units on the circumference)? I know this is ...
1
vote
1answer
23 views

Simplify paths when a user builds

I am looking for some guidance on how to simplify my nodes on a path when a user builds on the fly. Imagine a path like this with a gap: Logically 3 nodes are required 2 connected one isolated. ...
5
votes
2answers
629 views

Why do tutorials use different approaches to OpenGL rendering?

http://www.sdltutorials.com/sdl-opengl-tutorial-basics http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/ These two tutorials use completely different approaches to ...
0
votes
0answers
8 views

Game Center Leaderboards in Monogame

Do anyone know how to integrate a game center leaderboard in monogame framwork... I have searched high and low yet I haven't gotten any luck of finding articles that might help... Please direct to ...
0
votes
1answer
36 views

Unity3D | Cost of accessing a script via a static reference to the instance

I saw this pattern around and I was wondering what would be the pros and cons about it. Does this suffer performance issues ? If so what would be a better alternative? using UnityEngine; using ...
1
vote
1answer
214 views

Bullet 3D Physics Objects Not Rotating?

So I've got Bullet 3D controlling the motion of objects rendered with DirectX. In the clipping below I've got 2 identical rectangles & 5 balls. The lowest rectangle has a mass of 0 and doesn't ...
0
votes
1answer
7 views

FBX UV Coordinates is strange

i want correct UV Coordinates model likes this model but Model load and render at my importer result is likes this My fbx uv coordinates extract code is here FbxLayerElementUV* layerUVs = ...
0
votes
0answers
40 views

Alternative to a timer in a separate thread in a turn-based game

I'm making a 2d turn based game and I'm having some difficulties with the timer itself. 3 characters vs 3 characters, two players. A timer giving them a chance to preform acts within a set amount of ...
0
votes
0answers
22 views

How to execute events one after another?

I have a mortal combat spritesheets from which i am creating a animation clip.So, I have 2 characters and I want to execute its different actions at different time.When one character is doing action ...
-1
votes
0answers
39 views

How do I extract 3d data from the Maya c++ API correctly

My model doesn't show up in my Direct3D 11 application with animation. So, either I am loading the model incorrectly, or I am extracting the data from Maya incorrectly. I know the mesh data is ...
0
votes
0answers
13 views

How to determine the pixel coordinate values of regions in an image? [on hold]

I am following a tutorial on how to make a flappy bird clone from http://www.kilobolt.com/day-6-adding-graphics---welcome-to-the-necropolis.html. I am on the part where the actual graphics of the ...
2
votes
0answers
40 views

What are some ways of making a game engine centered around the idea of drawing vector lines and polygons only?

I've always loved the look of games that just use simple lines and polygons for graphics. Rez is one of my favorite games, visually. I'm a programmer and designer first and foremost, and I'm horrible ...
0
votes
0answers
10 views

Displaying intersection by removing vertices

I am using WPF, using the MeshGeometry3D class to build up my model. I have 2 pipes intersecting each other, and I would like to remove the region of intersection (meaning erase the portion of pipe 1 ...
0
votes
0answers
11 views

which is the best approach or algorithm to calculate real-time ranking

I want to know the fastest and most efficient way to compute points and ranking in real time. I'm doing a betting football game (a game where users try to predict the outcome of a game before it). In ...
0
votes
1answer
27 views

Rotating 2D objects with trigonometry

I cannot seem to intuitively grasp why the equation x' = x * cos(theta) - y * sin(theta) y' = y * cos(theta) + x * sin(theta) rotates an object. I understand how to derive these equations from x ...
0
votes
0answers
9 views

How to experiment for the value of gravity in Libgdx? [duplicate]

I am following a guide on how to play a flappy bird clone in the LibGdx framework. -http://www.kilobolt.com/day-5-the-flight-of-the-dead---adding-the-bird.html I am currently on the part where the ...
0
votes
2answers
36 views

How to render apart blocks of a cone

in OpenGL I want to render a cone in parts like on the image. My problem is to calculate the arc of each block in 3D space. has someone an idea how to handle this?
0
votes
0answers
10 views

Unity android app chrashing [on hold]

I have samsung galaxy ace gt-s5830 (android 2.3.6) and I'm trying to compile an app for it. I'm, trying the CameraRelativeSetup scene (from default assets - mobile). But it keeps crashing at startup. ...
0
votes
0answers
11 views

Monetization Platforms/Resources [on hold]

I am looking for prebuilt game monetization systems, but I have been thus far unsuccessful in searching the web for a solution to my specific needs. I am currently working on a game that is highly ...
1
vote
1answer
15 views

Using a different “max texture size” depending on the device

I am developing an Unity game for a wide range of iOS devices. I noticed that some scenes load pretty fast in the iPad mini 3, but very slow in the iPad mini 1. Of course, that's to be expected as one ...
0
votes
4answers
63 views

Designing a multi-level game

I want to know to code structure of a game that has different levels to choose from on the main screen. More precisely, I want to know how does the main loop hands off the rendering to another loop ...
-1
votes
0answers
13 views

Splice Objects from one array and push it on Another one in JavaScript

I'm an advanced 2D Graphic programmer from Germany and want to build a JavaScript Space Shooter. It's fun to work on it and i'm optimistic about to finish it to april and that's not a joke ;) First, ...
1
vote
2answers
50 views

Could I use Direct3D to make 2D games?

My goal is to make a completely 2D game using DirectX, but I'm new to it and I'm confused about all of the different APIs that are available. From Wikipedia: Direct3D is used to render ...
0
votes
0answers
9 views

Problem Rendering TTF_Font Textures to one Texture with SDL2

I'm trying to render multiple lines of text to one texture so I only have to render one texture to the screen. However, when I use a dstrect argument in SDL_RenderCopy the text doesn't show up and ...
0
votes
0answers
30 views

Visual studio and Unity does not sync

I'm pretty new to Game Development world. I'm using Unity 3D (4.6 - Latest version I think) and Visual Studio to code the script and something when I edit the script un VS 2013 and go back to Unity ...
0
votes
1answer
33 views

How do I make this block go back to the left with another click?

This is the script I've written so far which makes the block move from the left of the screen to the right on a mouse click. What I want to achieve is for the block to move back to the left when I ...
0
votes
0answers
5 views

admob or airpush revenue [on hold]

For how long the ad has to be visible to count that as an impression? How much revenue could i approximately generate in admob or airpush from 100 users if they are active for 1 hour a day and each ...
0
votes
0answers
5 views

Scene2d Stage Actor setup issues

I am creating a game using libgdx. In the same each level has a class. I have stage as a member variable of the class. To this stage, I add actors. Inside the levels class, I have attaced the input ...
-1
votes
0answers
20 views

GLEW doesn't work

I included both "glew.h" and "glew.c" and compared to earlier attempts, i don't get errors when i compile and run my project, that contains code depending on GLEW. The result is not what i want, ...
0
votes
0answers
162 views

Libgdx/Box2D PolygonShape has no position… well, what now?

As my prototype works perfectly fine I want to advance to more fun areas of the project and add a more complex player-character body. So for Box2D I figured I'd need multiple fixtures, like one for ...
0
votes
1answer
29 views

Question about save games format

my question is about save-games format. Look at this screenshot: On the left I made a "simple" fake savegame (Ini format) and on the right there is a "complex" TR2 save game. I'm wondering how ...
3
votes
4answers
6k views

How to add a scrolling camera to a 2D Java game?

I am attempting to create a game where the camera follows the player, always making sure the player is in the center of the screen. How would I go about this? This game is a 2D Java game, made with no ...
1
vote
2answers
104 views
+50

Problems with rendering a SkyBox

At the moment I'm writing an Android OpenGL ES 2.0 game but now I get stuck on rendering a SkyBox. Here is my (a bit simplified) code for the SkyBox: float vertices [] = ...

15 30 50 per page