0
votes
1answer
34 views

Class design for a risk-like game [closed]

I'm currently coding a AI for a risk-like game, but I'm not sure how I put even the base classes together. I've read a lot about game design patterns, entity component designs and such, but I've ...
0
votes
1answer
39 views

How do I cut off the edge of an image in a 2D JavaScript Array?

OK, I am trying to make a game that is a little bit like SimTower but utilizing HTML5 (particularly the canvas element) and JavaScript with a little CSS. I have ran into a couple of little problems ...
0
votes
0answers
19 views

How to play mod/tracker music (muzak) in android game loop? [closed]

Is any library out there to play mod-music in android games/demos? By mod-music I mean that one made in trackers, so I can "sync" the images/movements of the game back and forth with the music. So I ...
1
vote
2answers
32 views

Dynamic Flow Control in HLSL with Array References

I'm trying to do lighting calculations for an array of point lights in HLSL. I simply want to pass light direction vectors from the vertex shader to the pixel shader. Here is sample code: static ...
0
votes
2answers
63 views

Game Background graphics blurred edges?

Why when using this code for the background for my game do I receive blocks with blurred edges? public final class State_Play extends State_Template { private BufferedImage background; ...
-1
votes
0answers
33 views

libgdx or unity for 2d game running on smartphones [closed]

I'd like to make a 2d game such as an arcade game like pac man who will be running on ios, android, blackberry and windows phone devices. To do this, I need a game engine, but I'm puzzled between two ...
1
vote
2answers
115 views

How can I implement a futuristic “barrier field” that reacts to hits?

I want to implement a "shield" that reacts to projectile hits. Currently, my colliders are mapped to the animated sprite's outline on all frames. I'm looking for something like the image below. For ...
0
votes
0answers
21 views

Connecting lines from edge to edge of a gameObject Unity

I am trying to get the world position of a gameObject edge so to connect one edge to another edge with a lineRenderer component just like shown in the image below. I ran this script I found online to ...
0
votes
0answers
22 views

Drag object on the XZ plane

I wrote a script to drag an object on the XZ plane. It works good when the object is close to the camera's position. So here is the code: using UnityEngine; using System.Collections; public class ...
2
votes
2answers
138 views

How to draw the contour of a hexagon area, like in Civ 5

I am trying to achieve to hexagon contour look you find in Civilisation 5: I want to outline the area a unit can move to on a hexagon grid, so far I can get a list of all the tiles a unit can move ...
0
votes
1answer
44 views

Transparency using HLSL in XNA

I currently working on Depth Data on Kinect SDK v1.8 on XNA and I wanna show an Image Inside the Depth view of Human body. the image below is just an example of what I wanna do : ...
0
votes
0answers
19 views

Change a vertices and display corner of a polygon

I'm currently building a level editor for my game and i'm having some trouble on how to change vertices of a polygon. Basicly i searched the web trying to figure out how to update the vertices of a ...
0
votes
1answer
27 views

Editing the components of an instantiated prefab

Is it possible to edit one or more components of an instantiated prefab ? For example if you instantiated five cube prefabs. Is it possible to reference each of the cube prefab and change a value ...
-1
votes
1answer
18 views

Sound plays several times upon collision

Upon collision, my sound effect plays several times. How can I fix this? public Sprite charAlive, charDead; public AudioClip popAudio; void OnCollisionEnter2D (Collision2D col ){ if ...
-1
votes
0answers
21 views

Java rendering to android [closed]

How can I render a java code in android? I know that Java codes are working under android, but I do not know how to give some fancy visualization to my graphical objects.
0
votes
1answer
35 views

Mecanim animation with displacement and physics (isKinematic)

I have my game 3D wolf models from animator with displacement i.e wolf transform with animation (not in-place). I have added rigid body on models. I am facing following issues while executing them in ...
0
votes
0answers
14 views

Cant Set Image Origin in Table Cell - LibGDX

I am having real issues with my Actors when placed in table cells. I would like to set center Origin to allow me to tween the scale around the center. I am aware that the Table is responsible for ...
2
votes
0answers
30 views

Drag And Drop in libGDX (Target and Source)

I'm trying to put together a drag and drop system in libGDX with the help of DragAndDrop class. I have the typical system in which you can drag something into a box. So far it is working all dough I ...
0
votes
0answers
24 views

Resize gameObject when it has extended a restricted area

So here i have an image will provide a better understanding of my problem. So currently i have some white blocks and within the white blocks i have some cyan bordered boxes. So the current problem i ...
0
votes
0answers
34 views

Sample source code for coordinated group movement. Preferably in c# or java [closed]

I implemented Astar algorithm from andengine gles2 for path finding in my android RTS game. Now i want to implement group movement. Anyone can point to some sample source code for coordinated group ...
-2
votes
1answer
108 views

Can i buy a license to create a Pokemon game? [closed]

Is there a way to purchase a license to create a Pokémon game? Would I be able to pay owners or the Pokémon name and creators of concept and whoever has permission to make games a fee to make my own ...
0
votes
1answer
12 views

Images became unavailable and can't even deleted [closed]

I'm following this tutorial. I noticed when I want to use background.png, it is somehow became unavailable and I can't even delete it. Except for two images, others are fine. If I add same ...
-2
votes
1answer
37 views

Gamepad controlled at c++ [closed]

i want get control my gamepad (MaxFire G-08XU) with c ++ ?. I need to make a robot can control him with the gamepad. please help-- Thank you.
5
votes
3answers
908 views

How to find path in graph without crossing the walls?

I would like to know how to find path in a graph while having the edges "double-sided". Consider this scenario: I have list of the line segments. These represents "walls" or rather impassable edges ...
0
votes
1answer
55 views

Marching cubes leaving holes in the mesh

Hi I'm trying to reproduce GPU Gems 3 chapter 1 (Generating Complex Procedural Terrains Using the GPU) and so far I managed the basics... Now I'm betting some strange output. I started with the ...
0
votes
0answers
27 views

Placement Shader [duplicate]

Do you know what this shader is called, if you can give a link that's even better :) . I am talking about the green outlines on the objects that are selected. That's the shader that I would like to ...
8
votes
6answers
2k views

How do you move a sprite in sub-pixel increments?

Pixels are either on or off. The minimum amount you can move a sprite is a single pixel. So how you make the sprite move slower than 1 pixel per frame? The way I did it was to add the speed to a ...
1
vote
1answer
77 views

How can I implement a camera like the one in RotMG?

RotMG, an MMO top-down shooter, takes on a unique 2d-3d style, and has an intriguing camera; The game is obviously 3d, not simply isometric, and if you play the game and turn on camera rotation you ...
1
vote
0answers
22 views

HaxeFlixel, Font gets fuzzy android upscale

I made a simple game for android with a small native resolution (320x480). When text gets upscaled it loses its sharpness. Tried having anti aliasing on and off and both results were fuzzy. The size ...
-1
votes
4answers
115 views

Scripting vs Programming [closed]

How does using Scripting and calling functions of scripting API differ from programming using C++ in UDK or Unity?in scripting we use the scripting API to interact with the engine and use functions ...
0
votes
1answer
31 views

NGUI Texture Background Font of Sprite

I am new to Game Development and using NGUI plugin free version. There are few sprite images in my game. I made them prefab and instantiated at runtime. then I created NGUI Texture and Made it ...
1
vote
0answers
47 views

Geometry shader: Dynamic output?

I'm currently using a geometry shader to generate grass blades out of single root points that are layed out in a grid. For each root point, I generate a grass blade with, right now, a constant number ...
0
votes
1answer
40 views

Camera stops moving forwards near World-Center

So basically this is a problem I've been having since forever. I implemented a Camera System, it works fine but somewhere around the center (0, 0, 0) of the world it doesn't work. Actually it works, ...
0
votes
0answers
29 views

Very subtle HLSL syntax change causes compliation error

The following HLSL works and compiles: texture2D renderTarget; float h; // declared here sampler GetRenderTarget = sampler_state { texture = <renderTarget>; }; float3 GetHsvFromRgb(float3 ...
1
vote
1answer
51 views

Triangles go missing as Z changes

I'm rendering a height map using shader-based OpenGL (3.3 to be precise). The height map data is from a grayscale bitmap (2D array of bytes). The dimension of the bitmap is 256 x 256. With this data, ...
0
votes
0answers
9 views

Interacting with custom SQLite in UE4

How can I interact with my own SQLite databases in Unreal Engine 4? Can it be done via blueprint and C++ or would it have to be purely C++?
0
votes
0answers
26 views

Dynamic VBO update possibly corrupting data?

I want to draw a line between two vertices. On a mouseclick the vertex data will change and I want to update the line to use the new values. I am using a VBO for this and it looks like the update ...
0
votes
0answers
12 views

Removing extra blank window when adding Jmonkey based sound to Java based game

I'm currently programming a simple run and jump game in java. I'm in the process of implementing sound and I'd like to use Jmonkey's sound because I'd like to eventually switch the whole game over to ...
0
votes
1answer
34 views

Card game - creating card Listener

I am making a card game where there are 21 cards on hand and 2 options from where user can draw cards to his hand and throw a card from hand. I am new on game development and I'm following the ...
0
votes
1answer
48 views

Gravity: Slow down on ground approach

I'm looking for some math, nothing language dependant. "Standard" gravity for a character in a 2D game would go something like this: if player.y > ground.y { player.velocity.y = ...
0
votes
0answers
46 views

2D Distance Field as collision handler method

Pixeljunk Shooter has really cool fluid simulation. I found the dev's video explaining what they did. Here I understand that it is particle based simulation Smoothed Particle Hydrodynamic I can ...
0
votes
0answers
58 views

Automatic gamma correction on DX11

Trying to figure out how to get automatic gamma correction on DX11. I'm using deferred shading. I'm not exactly sure exactly which textures needs to be in the SRGB format. Here's my guess: The ...
0
votes
1answer
46 views

My texture blends into one single color (DirectX11)

First thread on gamedev stackexchange. I am currently creating a cube with a single texture on each side. I got my cube up and running. But when I apply my texture, I get this: It blends the ...
0
votes
1answer
10 views

Box2dWeb: must fixtures be destroyed explicitly when destroying the body?

I use b2WorldObj.DestroyBody(bodyObj) to destroy the body when it is not needed anymore. The body has one fixture attached to it. Do I need to destroy the fixture before destroying the body? or ...
0
votes
0answers
15 views

iTween.LookTo works only when the boolean gets changed

im trying to rotate an object when the player gets too close to it but it only rotates when the player leaves leaves the range for 0.5 seconds or less. It does the same if i use ontriggerenter and ...
0
votes
0answers
42 views

Soft Subsurface Scattering in Unreal Development Kit

I'm trying to make a jelly-like material in UDK, but what I've achieved is only something like that (with BLEND_Translucent): (The scene is "Crytek Sponza" by Frank Meinl) As you can see (mostly ...
0
votes
0answers
12 views

In libgdx, how do I get the intersection of a ray with a model instance?

I am using LibGDX trying to use raypicking to pick a point on a Mesh. I have two methods for this that don't seem to work quite right: /** * @param ray * @param intersection The vector to store ...
0
votes
1answer
35 views

Is there a builtin way to convert rect to spherical coordinates

This seems like a fairly basic and common problem. Is there a builtin way to achieve it or do i have to write the algorithm on my own?
0
votes
0answers
24 views

glBlendFunc() makes primitively drawn quads disappear

i have experienced some issues with glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);. Having this invocation in OpenGL init code makes stuff drawn with the following methods ...
0
votes
0answers
49 views

Random Object in Array

I am using Unity3d. I am stuck in my game. I Couldn't find the solution yet. I have created 8 different types of objects, stored in array, . i displayed them on the scene randomly in grid pattern. ...

15 30 50 per page