0
votes
1answer
169 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
0answers
3 views

How can I get float values using glReadPixels? [Android NDK es3.0]

c++ code: float* data = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat float* result = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat for (int i = 0; i < texWidth ...
0
votes
0answers
6 views

How to calculate spherical harmonic coefficients for indirect diffuse?

After reading the article "An Efficient Representation for Irradiance Environment Maps", I'm a bit confused as how to calculate the spherical harmonic coefficients. I'd like to generate these ...
0
votes
0answers
3 views

Source SDK 2013. Binded key doesn't drop weapon. Please help!

I'm having a problem with weapon drop system in my Source SDK 2013 Single Player Mod. I've followed this guide from VDC https://developer.valvesoftware.com/wiki/Adding_a_Weapon_Drop_System After ...
0
votes
1answer
49 views

Why is each column being shifted down the X value of the column in my 2D Data Structure?

I have a two 2-dimensional arrays. One of which stores characters from a text file, and the other stores pointers to instances of Blocks. For some reason, in either of the arrays (I'm not sure which), ...
2
votes
1answer
29 views

GLSL 2D Silhouette

I'm trying to render a silhouette of any entity behind foreground objects to indicate their position to the player. Here's an example of what I want to achieve, from Hyper Light Drifter: From what ...
0
votes
0answers
8 views

SpriteKit How to Slowdown Game with RepeatForever Actions continuously running, similar to Matrix Dodging Bullets Effect?

I'm trying to slow down my _gameLayer Node by 0.5 when the player collected a slowing down timer and I want to see all the nodes inside _gameLayer is running at a much slower speed. However when I ...
1
vote
1answer
56 views

Make a triangular mesh from of a map defined by points that follow the coast lines

I have a set of points which follow the coast lines of a world map. I would like to somehow triangulate so that I can render the continents filled in. The points seam to be in order so that if you ...
0
votes
0answers
7 views

xna multiplayer movement

So I have a tcp sockets network setup with the ability for clients to connect to the server. I'm currently trying to do movement. And iv discovers that tcp is terrible for sending out the x and y ...
0
votes
0answers
9 views

LibGdx scaling properly

I've mad use of view ports and they do what they say they do, but the problem is I'm not able to get it to scale the whole world with it. The game is for android which it looks nice on but desktop is ...
0
votes
0answers
4 views

Player rotation issues (Player returns to default forward rotation after releasing keys)

So basically what is happening is that my player rotates and faces the direction that he is currently being steered toward (which is wonderful). But after I release, let's say the A key, meaning he is ...
1
vote
1answer
120 views

Unity - How to save variables for Android Game?

This is my current code, it only work into unity, when i test it in an Android Device it don't save the variable public class Click : MonoBehaviour{ public UnityEngine.UI.Text proiettiliTotali; ...
0
votes
2answers
319 views

Cocos2d-x 3.0 animation frame by frame

As I know animations are actions. Now I need to play animation frame by frame. Say I have an animation from N frames. each frame should be played after t delay. Now I want to play animation frame by ...
0
votes
1answer
35 views

Libgdx - How to change GestureListener pan finger sensibility?

I implemented GestureListener in my Overlap2dStage to pan the camera when the player drags its finger over the screen. But I also have some actors that extend InputAdapter to detect when the user ...
0
votes
0answers
3 views

UV texture mapping with perspective correction works for 50%

So, I've been trying to get the UV texture mapping down with perspective correction. The triangle rasterization seems to work. The interpolation seems to work too. It's just the perspective ...
0
votes
1answer
118 views

Incomplete mesh using DrawIndexedPrimitives after rotating mesh

Through help on this site I was able to draw the triangles of an unrotated, nonscaled nontransformed mesh created in Blender and exported to OBJ, accurately imported through Assimp and rendered in XNA ...
0
votes
2answers
39 views

Libgdx - How to rotate a single ShapeRenderer object

So, looked at a couple of questions similar to this, led me straight into dead ends. I have an object drawn out in ShapeRenderer, and I wish to rotate only that one object. I have tried ...
-2
votes
0answers
10 views

How can I get the position of a grouped object?

I'm trying to figure out how to get the position of grouped objects, is it even possible? all I'm getting is nil whatever I try. I am creating falling balls on my screen and would like to remove them ...
0
votes
0answers
6 views

Can't clip a sprite that has a custom shader in NGUI

I am using NGUI. I have an "NGUI Unity 2D Sprite". This sprite has a material with this shader: Shader "DM/Ripple Shader" { Properties { _Color ("Color", Color) = (1,1,1,1) ...
0
votes
1answer
30 views

Efficient method to export a lot of pre-rendered sprites from 3D models

I have a lot of 3D Characters and I wish to use them in a 2.5D game as Sprites; in doing this I have to render them from a fixed camera angle and since each should have its own atlas file containing ...
0
votes
2answers
63 views

Ball oblique impact physic in Java?

I know Q3 + Q4 = 90 I searched internet and many physic topics, but not found how to calculate this values in Java? (I found V3 and V4 but not found Q3 and Q4) So how can i calculate V3, V4, ...
0
votes
0answers
18 views

How to handle game widget destruction as a result of an event?

I have a simple hierarchy of containers and widgets like buttons, line edits and labels. Every node in this hierarchy is a Widget, specialized with a subclass to make custom behaviors for each type of ...
0
votes
1answer
58 views

Backgrounds for a game [duplicate]

I am writing a 2d game, I have designed the characters but I would need backgrounds, i'm looking free cavern backgrounds for a free game, advice ? thanks in advance
0
votes
1answer
112 views

Solitaire Game: Transferring Cards Design in C++

So, I'm working on a Solitaire game. I already created a the classes: Card, Pile, Stock. Each work as expected on it's own. My question is: What possible design for managing moving card(s) between the ...
1
vote
1answer
96 views

How do I publish to Google Play if I'm under 18?

I've finished my first Unity and want to release it on the Google Play store but can't because I am under 18. The main issue is that Google Wallet requires you to be over 18. How could I work around ...
0
votes
3answers
54 views

Which is the best method implementing a background scrolling for game in libgdx?

My question is very simple I am new to libgdx development, which is the best approach implementing a background that is to make the background move in y direction 1)My First approach is drawing the ...
0
votes
0answers
35 views

Must have game engine? [duplicate]

So I been working with android studio to create apps, and thought that I would try out a game, am I reading this correctly that I can not create the game in android studio and I must use a 3rd party ...
0
votes
0answers
17 views

I only have experience with Flash/AS3. What should I develop a game with? [on hold]

I only have experience with making games in AS3/Flash. The reason I ended up with this experience is because I started off as an animator. I love being able to animate everything on a Flash timeline ...
0
votes
0answers
20 views

2d Platformer Player with set of Items [duplicate]

I need some help on what is the easiest way to implement this feature. I had created a 2d platform game. the main character has a sword. so I had some set of frames for its animation. currently I need ...
0
votes
1answer
63 views

Where in old code would you know what to include to compile the complete program? [closed]

I got the source code to a couple of outdated games that I was trying to either clean up, or use the tools they did to create a new game from the same engine. I am just not quite sure about how to ...
1
vote
1answer
38 views

XNA C# Texture Atlases

Fairly new to XNA and not an expert on C# either. So I was following a tutorial, specifically this one http://rbwhitaker.wikidot.com/texture-atlases-1, and there is a bit of code I am unfamiliar with. ...
0
votes
2answers
148 views

Java libgdx Game Screens and rendering tile map [closed]

I'm working on a 2D tiled game with Java and libGDX. I'm having problems implementing gamescreens. I'm trying to set the screen to gameScreen and start rendering tiles, but I'm getting a nullpointer ...
0
votes
1answer
102 views

How do games such as aa Game have high levels in the structure of their code

How do games such as aa Game have high levels in the structure of their code? I mean if we want create a game with high levels, should we create and use a class for each level? I do not want code from ...
0
votes
1answer
102 views

What degree do you need to become a game designer,programmer,developer.etc [closed]

I was wintering what degree do you need in order to become a game designer,programmer or developer. P.S i mean people who work for companies such as riot or ubisoft,etc
2
votes
0answers
49 views

OpenGL enabled Java game not detected by Fraps

Recently I found out that I could enable OpenGL hardware acceleration in my java game with the line System.setProperty("sun.java2d.opengl", "True"); Initial tests showed a big boost in performance. ...
1
vote
1answer
52 views

In the game loop, apply dt before the loop starts, or after it finishes?

Say I have a Game class with an update loop that receives a time increment dt by parameter. I was wondering if it's better or customary to apply this dt before the loop starts or after the loop ...
0
votes
0answers
70 views

How is a game like Simcity or any other RTS programmed? [closed]

I've programmed a couple of programs where things are deterministic and happen after some input (keypress or whatever), in let's say 'steps'. But, what about something like simcity? There are many ...
1
vote
0answers
75 views

2D Parallax Scrolling

I'm trying to implement parallax scrolling and have a partially working equation (from a book I've read) but it doesn't fully align to the screen. I also want to stick purely to integer maths. I've ...
1
vote
1answer
91 views

DirectX 11 - Get the world matrix of my camera

I'm relatively new to the world of 3D games programming and I am not sure if I am understanding some key concepts correctly. Right now I have created a sphere that is 2.0f in radius which surround ...
1
vote
1answer
68 views

Unity free look camera on two axes. How do I do it?

I'm new to Unity and c# but have programming experience... I have a a simple "game" in Unity that shows one sphere orbiting another. How do I allow the camera to be moved by the user in a "free ...
1
vote
2answers
120 views

Game networking, limiting amount of movement packets

I have been developing a server/client model for a game project I am working on. Everything works great, client side prediction works, server reconciliation works. Basically, the character can move ...
1
vote
1answer
78 views

Why the size of my game increased on deploying it to Android using Unity3D?

When I deployed the game to 'Web Player', it's size was just 2.4 MB but when I deployed it to 'Android', it's size got increased to 38 MB. Why this happened? I can't provide any more information or ...
1
vote
2answers
122 views

C# comparing alot of elements

Im making a small game in Unity(using c#) basicly what I have there is each player chooses one Damage Spell or one Shield Spell.and the thing is that the number of combinations is huge. like 100 ...
0
votes
1answer
353 views

Skeletal animation with ASSIMP, COLLADA, and glm

I have been trying to learn how to implement skeletal animation (skinning) from COLLADA files using ASSIMP and glm. But after a week of being stuck reading different tutorials and posts I have found ...
2
votes
3answers
125 views

How do game engines mitigate CPU cost for many trigger zones & entities? [on hold]

It's a rather simple question, but a somewhat fundamental in computing in general. Let's say we have a player controlled character in an open world. The world is large. In this game-world we have a ...
11
votes
2answers
1k views

Pausing the game inside the game loop

Inside the game loop, the game is paused by pressing P, meaning that the game loop does not run anymore. Problem is that after this loop is halted, P cannot be pressed again to resume the loop, since ...
0
votes
1answer
26 views

Checking 2 instances of the same object in GameMaker

There are 2 blocks. If the player stands on a block, some sound should loop and when he gets off it should stop. Problem is, The game checks both the objects and when player is on 1 block, obviously ...
0
votes
0answers
14 views

Google Analytics in game - do I need an opt-out or privacy policy? [on hold]

My Android game uses Google Analytics but doesn't collect AdvertisingId. Do I have to implement an opt-out checkbox in the game or add a privacy policy to the Store Listing?
1
vote
0answers
16 views

Portal view direction

I'm trying to add portals to a game (as in the entities from the Portal video game), and I've gotten them to a render the other portal's pos/dir to a texture which I can then display on a surface. ...
0
votes
1answer
111 views

XNA/Winforms - Nothing being drawn after calling SetRenderTarget(null)

I'm creating a basic scene/level editor using XNA/Winforms using the base classes from http://xbox.create.msdn.com/en-US/education/catalog/sample/winforms_series_1 Everything works fine and gets drawn ...

15 30 50 per page