1
vote
1answer
43 views

using delta timing is causing shake

I am using delta timing to account for potential drop in frame rate. Only trouble being when I do this, I can notice an ever so slight wobble. I checked out the following JSFiddle coming from a ...
4
votes
1answer
81 views

Odd Behaviour XNA Game Component

Inside of my main class file I am initializing a number of game components which are used to represent game scenes i.e. main menu and game. I am initilizing each component inside of XNAs LoadContent ...
4
votes
1answer
750 views

How do I fairly distribute new powerful cards to players in a collectible card game?

I'm writing a game in which users start with a few cards. They use those cards to play against other players. The winner can steal a card from the other player. The aim is to get ...
0
votes
0answers
14 views

Using Tile Maps with cocos2d - how do I handle a large amount of images?

I am building a game where the users (players) can build their own town. There they can build houses, add furniture to the houses etc etc. Basically similar to The Sims. I am using the Tiled Map ...
0
votes
0answers
16 views

libGDX new TextureAtlas(filename) and new Texture(filename) drawing stale image data

I'm trying to draw an image using libgdx but no matter what I do, libgdx seems to insist on drawing a portion of an image I had loaded and used in an earlier game screen. In my current game screen ...
0
votes
1answer
46 views

XNA C# 3D game Wall collision response glitch

I have been working on a reliable physics system in my code and so far it's ALMOST working. :D I am aiming for wall "sliding" style of collision response, like you'd expect it to work in commercial ...
-2
votes
1answer
64 views

What is the advantage of 6 Directional Movement vs, for instance, 8 or 4 [closed]

I'm making a fallout 2 inspired game and I'm wondering what you guys think about its use of 6 directional movement. It kind of bugs me for some reason and seems like it would make game play odd and ...
0
votes
1answer
60 views

How can I inspect 3D model exactness? [closed]

I am neither a game designer nor a graphic designer. I am a .Net and C# software developer. I have a game project and I've still been studying to learn game concepts and technolgies for a year. ...
0
votes
0answers
60 views

libgdx building 3D terrain

I've been spending a lot of my time working with libgdx scene 2d & have become very familiar with it. I've decided I want to move over to 3D & take a couple of weeks to learn & better ...
0
votes
1answer
37 views

Problem rendering simple OBJ model using assimp in android app

I am trying to load an OBJ model (http://pastebin.com/usGFkf4e) into an Android app using Assimp 3.1.1 Assimp model loaded like this : bool CGameObject::LoadModelFromFile(AAssetManager *amgr, ...
1
vote
4answers
115 views

How to read a data from text file in unity

Can anybody help me out with giving the steps needed for reading data from the text file in unity and how can the script be added.
-1
votes
0answers
45 views

Which licenses are compatible with Steam?

I am making a Pharaoh inspired game because I felt nostalgic about it a while ago, and if the game ever gets finished, what licence can I use or rather not use when putting the game on Steam or are ...
0
votes
1answer
26 views

Can't figure out projection transform

I'm trying to fugure out all the spaces transformations, and currently have some inconsistency I can't understand. I'm working on a 2D game (so we assuming Z is always 0 for now), on a device with ...
0
votes
0answers
51 views

Emit light from items

In order to create a day/night cycle in my game, I decreased the r,g and b values of the Color variable after a certain amount of time has passed. This worked as expected. I am wondering in order to ...
0
votes
1answer
87 views

2D object grids to a dictionary

I'm pretty new to Unity and trying to figure out what a good way of transferring objects in a grid to a dictionary would be. For example, if i have a grid of 2D objects (squares) such as below ...
0
votes
1answer
40 views

Creating a Player object in a physics engine

I have a working physics environment using Farseer - but how do I create a player object that can walk around? My current attempt involves applying forces to a rectangular body whenever keys are ...
-1
votes
0answers
23 views

How difficult is to port a Cocos2D-iPhone game to Android AndEngine? [closed]

I'm considering to develop a new game for iOS using Cocos2D. If the app shows good results, I want to port it to Android. I have a few options for porting it: Use apportable to port the ...
1
vote
1answer
86 views

Swarm Algorithms [closed]

I have been asked to deliver a presentation for my university course on ant, bee and particle swarm algorithms. Therefore I am attempting to learn more about swarm algorithms and their uses within ...
3
votes
2answers
147 views

Shader - Calculate depth relative to Object

I am trying to calculate depth relative to the object.Here is a good solution to retrieve depth relative to camera : Depth as distance to camera plane in GLSL varying float distToCamera; void main() ...
2
votes
3answers
144 views

How do I check whether a camera has unobstructed view of a GameObject?

I want to check if a GameObject is visible to the camera. The renderer.isVisible-method only checks if the camera is turned towards the object, not if there is anything between them (like a wall). ...
1
vote
1answer
23 views

How to remove the old sprites in pygame and show them at a different location

I am trying to show the motion of some basketballs towards walle using the pygae sprites. The idea is that I don't know how to remove the old ones so they won't show. Is there a move method so that it ...
1
vote
0answers
39 views

Why does my texture-based object picking detect the wrong object?

I am a LibGDX beginner implementing a RISK-like game. I want to let the player select territories by clicking on them, but for some reason, the wrong territory is sometimes detected. The clicked ...
0
votes
0answers
26 views

Issue getting started with MS Project Spark [migrated]

I am trying Project Spark for the first time. After launching the game, I get the introduction video, prompt to accept few T&C and then a promt to login to my Live account. Once all that is ...
1
vote
0answers
53 views

How do I port a game to low-end phones?

I'm creating a 2D game using Unity. My intention is to have separate SD and HD versions of the game for Android and iPhone. However, it makes sense for me (due to information I have about my target ...
0
votes
2answers
80 views

Are web browser games like Travian/Tribal Wars based on asynchronous responses? [closed]

I'm coding in Python. Currently, with some group of people, we are making a decision about server-side language choice for our web-browser-based strategy game. I have some questions: Are games like ...
0
votes
0answers
23 views

How to upload lights when doing one pass per light

Suppose I have a reasonable amount of light sources that I upload at once in my forward rendering and accumulate them in shader. Now that I am willing to move to deferred, and so one pass per light, ...
1
vote
0answers
19 views

Isometric Camera - Base Positions

Okay I have a terrain with the structure: terrain[x][y][z], and I want to create an isometric camera system, using a grid approach. Each element is assumed to be a cube, and it's default value will ...
0
votes
1answer
54 views

How do I raycast to detect which hexagonal tile was clicked?

I want to detect the hexagonal tile a unit is on upon clicking on the unit. I was thinking of using a ray cast I can't get it to work. I'm trying to get the raycast to shoot from the bottom of the ...
1
vote
1answer
72 views

How do I procedurally create a directional light cone with an HTML canvas?

To create a directional light effect, I want to draw this kind of transparency mask on an HTML canvas (using context2d): I also want to be able to generate such a mask dynamically. I've tried using ...
0
votes
1answer
52 views

Why does my modern OpenGL heightmap render as line segments instead of faces?

I'm brand new to OpenGL and have been trying my hand modern openGL. A few days ago, I tried to create some terrain by using a heightmap stored in a grayscale 32-bit BMP. I am using SDL 2.0, GLEW and ...
1
vote
1answer
337 views

Beginner: How do I calculate a vector?

I am trying to wrap my head around some concepts in a side project I'm working on. I'm struggling with how I can calculate a vector based on my character movement logic. Here are the relevant details ...
2
votes
1answer
43 views

Getting more particles in engine

I followed rbwhitakers tutorial on making a particle engine and I'm wondering how to get more particles on the screen. I was thinking that the "total" variable would do it but it doesnt. Is this ...
3
votes
2answers
258 views

Why should I use a list of enemies instead of an array of enemies?

I have been making 2d shooter similar to galaga using xna in C#, where the enemies (2 types) are all in rows above the player's ships, and are supposed to randomly launch attacks. I had previously ...
-3
votes
0answers
50 views

GLSL array with variable index? [closed]

I have a GLSL fragment shader with this part of code: for(int i = 0; i < 10; i+=3){ vec3 l_pos = vec3(lightMat * vec4(light_poses[i],light_poses[i+1],light_poses[i+2],1)); vec3 ...
0
votes
1answer
19 views

Sprite rotation in libgdx

Is it possible to rotate my sprite in LibGDX? public class Flame { private static final int FRAME_COLS = 6; private static final int FRAME_ROWS = 1; private Animation flameAnimation; private ...
0
votes
1answer
44 views

GLSL: Vertex attribute to int

I'm trying to write a shader which renders a multitextured geometry wihout rerendering the geometry with each texture. In my test I'm not using textures, I just convert the texture index to a color ...
0
votes
0answers
34 views

Handling menu input in the GameStateManager sample

I've been trying to get more customization out of the GSM sample and i'm a bit lost. I've made a new method in InputState.cs that returns true when a key is being held down. This is for scrolling ...
0
votes
0answers
39 views

Unity3d Multiplayer Game | Personal Camera [closed]

I'm working on a multiplayer game on unity3d . so here comes the question...How can i attach a player clone to the script on a camera clone , just after the game started? I mean , I need to attach the ...
0
votes
0answers
14 views

Changing a single component of a prefab?

I'm working on a unity project and I'm looking to show the range of a certain character. However, the terrain is generated through a script at run time, and considering that the script uses the ...
0
votes
0answers
15 views

Lag in game LibGDX [closed]

I'm currently developing a game with LibGDX engine and my character sprite sheet animation is not smooth enought while he is moving. Also I have coin which rotates very smoothly in that game. So one ...
0
votes
2answers
134 views

How does making of games using game engines happen? [closed]

I am a complete beginner to game programming. I have decided to give a try on UDK game engine. I have some simple doubts. I searched Google for the answers but couldn't get my doubts cleared. This ...
4
votes
1answer
161 views

Is there a way to prevent the user from playing the game simultaneously on 2 devices

Our game uses Google Play Services for authentication, multiplayer and cloud saves. We save the users inventory as a cloud save, and as the player partakes in multiplayer matches they might use items ...
2
votes
1answer
43 views

How can I tint a Texture2D with a gradient?

I am working on a lighting system for my game. Instead of lighting each tile completely with only one color, I want to create a gradient on that tile so to make the lighting look more dynamic and ...
2
votes
0answers
31 views

Why do my Box2D bodies occasionally get stuck and separate forcibly?

I'm making a space game with LibGDX and Box2D. I made a video here to illustrate the issue. Verbal description: When objects collide, they sometimes get stuck together and are then suddenly separated ...
0
votes
0answers
30 views

Scaling issue using a GUITexture on a sprite object in unity

I'm trying to make a Kinect game using MS-SDK wrapper from the Asset store in Unity, In the kinect manager script the Hand Cursor object is where you can set the gameObject you want to act as a ...
0
votes
0answers
10 views

Cocos2D v3 CCParallaxNode scrolling can't keep player in focus

I am very fresher to game development and I need to develop a game like NinjaJump. I have created a CCParallaxNode to setup scrolling background and added CCPhysicsNode to setup Physics world. I have ...
3
votes
5answers
212 views

Is it bad practise to have an object for every tile?

In the game I am working on, many of my tiles must have special attributes (such as triggers when the player steps on them). I was wondering if it would be bad practise to create an object for every ...
0
votes
0answers
22 views

Drawing quadtree nodes

I'm using a quadtree example that I found on a tutorial. I have initialized the tree and using a breakpoint I am able to determine that there are 4 child nodes, each containing a number of items. So I ...
1
vote
1answer
28 views

How can I fill a Color[] from a Texture2D given a Rectangle in SharpDX?

I used to fill a Color[] using XNA's Texture2D.GetData<T>(int, Rectangle?, T[], int, int) method, but there doesn't seem to be an equivalent overload on SharpDX's Texture2D. Anyone know how I ...
0
votes
1answer
36 views

How to create soft Icecream like particles with Liquidfun and Corona

Currently using the "elastic" flags for particle behavior, which looks decent when it is flowing downwards but when the icecream collects in cup it is too liquidy. Also this gives it a springy bounce ...

15 30 50 per page