0
votes
0answers
2 views

Issues with 2D Body/Limb system

In my game I have programmed Body and Limb classes. The Body is guaranteed to have an origin in the center of its sprite. The Body class has a List of children Limbs, each with their own offset. Every ...
0
votes
0answers
2 views

Using libgdx to display different textures above and below generated terrain

I'm working on a Scorched Earth clone using libgdx. So far I've been able to dynamically generate the terrain as seen in the screenshot below: The polygons below the terrain surface are currently ...
4
votes
3answers
74 views

What are easing functions?

I found this cool website for game development and it has a list of easing functions: Although the site contains a description of what they're for, it goes over my head. What are easing ...
-2
votes
1answer
27 views

What to do? How can I begin? [on hold]

This is more a question for personal use. I want to learn how to develop games, but the problem is how am i going to start? Data about me: Im a 1 year CS student and I know the basics of OOP and ...
2
votes
1answer
55 views

What is the speed of sound?

I've been reading the manual about the properties of the AudioManager. http://docs.unity3d.com/Documentation/Components/class-AudioManager.html There's one option that isn't explained, which is ...
0
votes
0answers
10 views

Get the game state using Multithreading in Java Monkey Engine 3

I’ve been trying out Java Monkey’s multi threading recently via the wiki’s tutorial. Since I just wanted to test a prototype clinet, I made a program which creates some cubes using the ‘Cubes’ library ...
0
votes
0answers
15 views

Network serialization format for browsers [on hold]

I'm making a game (IE9+) using websockets and I'm wondering what other web gamedevs are using as the serialization format? I know JSON is native to browsers/JS, but I dislike its verbosity. I want ...
0
votes
0answers
15 views

Java Slick2D: When camera is scrolling, character moves too fast

I've been playing around with Slick2D for Java and I managed to get it to display maps and have my character sprite move around. I've tried to implement a camera that follows the player so that the ...
1
vote
0answers
25 views

Mixing interpolation with extrapolation in multiplayer game

I am creating a multiplayer drag racing game and have difficulties mixing extrapolation and interpolation. To save network bandwidth i am getting information from the opponent only on his button ...
2
votes
1answer
26 views

Why is my cursor not working if I add a scaling matrix?

After moving the camera to any direction, my cursor isn't getting drawn on the correct position. For example: I move my camera to the right, after that I click on the screen, but the cursor isn't ...
0
votes
0answers
9 views

SDL2 Gamepad triggers trigger when disconnecting the pad

I'm using MonoGame and SDL2. I'm having a strange problem with the Gamepad. When I disconnect it during the game, before the disconnected event fires, the left and right triggers return values as if ...
-1
votes
0answers
26 views

how to seperating raw input devices into classes?

Is there a way too seperate raw input keyboard, mouse and controller in classes so i can use them independent of each other(something like xinput for xbox controllers).
0
votes
1answer
21 views

Providing texture coordinates and using indexed drawing at the same time

Please consider the following vertex structure struct vertex { vec3 posL, normalL; }; Using this vertex layout, we can provide the vertex data in an interleaved way, i.e. ...
0
votes
1answer
12 views

jQuery - div border around map area

Let's say I have this map: <map name="diffmap1" id="diffmap1" class="myMap"> <area shape="poly" coords="152,347,253,292,264,307,167,358" class="diff diff1"> <area shape="poly" ...
0
votes
0answers
19 views

How to rotate an image around its own center in AndEngine?

I'm beginner in Android programming with Andengine framework. And my question: How to rotate an image around its own center in AndEngine? I use Body and AnimatedSprite. This is my code: ...
1
vote
0answers
16 views

shiffting the camera and set a new scene when using box2d

this is my jsfiddle : http://jsfiddle.net/V8eKp/1/show var Scene = { _Collection: [], addElements: function (Coll) { for (i = 0; i < Coll.length; i++) { ...
0
votes
2answers
70 views

How to control which polygons get rendered first in a batch (e.g. to draw leaves)?

Sorting transparent objects is a well-known problem. If you send a bunch of transparent polygons (e. g. leaves and branches on a tree) into the GPU and render them with alpha blending enabled, the GPU ...
1
vote
3answers
70 views

How do I deal with different “types” of entities in Entity-Component-System model?

I have CollisionSystem which basically iterates through the array of PhysicsComponent and checks if there was some collision between two entities. But where should interaction code go? And how should ...
-1
votes
0answers
23 views

What's the recommended way to add instructions for a simple iPhone/iPad game?

I'm making a very simple (single view application) iPad/iPhone game. However, the purpose and point and how-to might not be self explanatory upon launch of the app. Should I add a button "how to play" ...
0
votes
1answer
89 views

Prevent GUI Clickthrough

I'm using NGUI to setup my UI in Unity. Attached to the MainCamera I do have a script to rotate the camera view by clicking and dragging. It does handle mouse events using Input.GetMouseButton(). ...
0
votes
0answers
8 views

AntTweakBar compilation error [on hold]

When I try to add a button to the bar that calls a function when clicked, I interestingly get a compile error. The following is my code, and compilation is due to TwAddButton function call. The error ...
1
vote
2answers
59 views

glGenVertexArrays causes crash

My code keeps crashing at runtime, I have done some creative debugging and determined that it was the glGenVertexArrays that was causing the crash, I've looked around and come across some answers that ...
0
votes
0answers
33 views

OpenGL camera Rotation Matrix & view Transformations

Recently i implemented a simple Opengl program that composes of a scene of objects, i've applied most of the transformation & projection matrices, in such away that i am able to rotate transform ...
0
votes
0answers
35 views

How to correctly handle collision resolving with the MTV of Separating Axis Theorem?

I am making a top-down 2D game. I am in the process of implementing SAT for better collision detection and resolving (which seems to be resulting in one problem after another). Since I am in the ...
0
votes
1answer
46 views

GameObject remains null for some reason

The idea is to access the function BlockWasDestroyed(); from Combo class. Instead of var combo = gameObject.GetComponent(Combo); I've also tried with var combo = GetComponent(Combo); var ...
0
votes
2answers
137 views

How to make a bullet shooting system [on hold]

Some didn't understand what I was asking so here it is: I'm trying to make a method to fire bullets in java. When the space bar key is pressed then this method is called. In this method a bullet is ...
0
votes
0answers
28 views

World, View, Projection concept - history [on hold]

I've got some unusual question, actually I would like to know something about the history of the World-View-Projection concept. Where did it come from? When was it used first? Does it exist since DX ...
0
votes
0answers
18 views

Most efficient way of brighten and darken sprites with libGDX1.0

So I have been shading (brighten/darken +adding color) my sprites by using glTexEnvf with GL_MODULATE and GL_ADD and a vertex color. I only had to rebind the batch every time I needed to change from ...
2
votes
2answers
47 views

android game development using unity 3d [on hold]

I want to learn android game development. I dont have any programing knowledge. So should I learn JAVA and eclispe to develop games for android. Or should I learn Unity 3d. And is knowledge of java ...
1
vote
1answer
49 views

Adapting tilemap algorithm to support isometric tilemap

I'm using Phaser to build an isometric game. The framework doesn't have support for isometric tilemaps yet, so I'm starting to write a PR for it to support. What I currently have, loading an ...
0
votes
1answer
24 views

Set Position of multiple bodies

I have a character composed of five bodies which are tied together by a lot of joints. On of them is the overall chassis, to which all forces and impulses are applied to move the whole Character. All ...
0
votes
0answers
19 views

How to fix surface normal for mesh

I am developing an application that has to take STL files from users. However, some modeling programs seem to invert some of the surface normals. Basically some surface normals will be facing inward ...
2
votes
1answer
26 views

How do I fit the camera frustum inside directional light space?

I'm trying to improve the coverage of a shadow map for a directional light. Currently, it works great if the camera is looking straight down. However, if the camera is close to the ground and looking ...
-1
votes
2answers
66 views

Why is my C# array in unity not working?

I'm creating a 2D brick breaking game in unity 4.3. I want all of my bricks to be different colours for each game, so I've created a C# script to assign random colours to each brick when the game ...
0
votes
1answer
37 views

Generating shaders from fragments / HLSL Dynamic Linking in older shader models

In shader model 5 is a feature called dynamic linking which separates hlsl fragments by using interfaces and their methods implemented in classes. I don't have any experience with this technique, my ...
0
votes
0answers
28 views

Focus a turntable style camera on an object

I have a turntable style camera in the maya / blender / alembic / opensubdiv example. I want to be able to match the camera translation to any objects translation pivot point in the scene and then ...
0
votes
1answer
35 views

How can I fix “the referenced script on this Behaviour is missing” warnings?

One of my game objects used to have a script that I have now deleted on purpose. Now it keeps saying this message as a warning: The referenced script on this Behaviour is missing! How can I rid ...
0
votes
0answers
16 views

Component systems: No inheritance hierarchy at all, or a basic one? [duplicate]

(I asked a similar question, but it had more questions inside it and I feel it wasn't clear enough, so I'm opening a new one). Until recently I implemented all my games using an inheritance ...
-1
votes
0answers
34 views

Updating counters using time.delta

Why when we want to try to make a counter up or down we use counter+=Time.deltaTime; Isn't Time.deltaTime can be a fractions of number like 0.003, that wouldn't be accurate counting.
1
vote
0answers
81 views

Checkers make move and take move algorithm

I'm coding a checkers game and I encountered a problem and I'm 99% sure is about how the move is done and taken back. The structure of my game data is: an 8x8 array containing my board squares. ...
0
votes
1answer
44 views

JBox2D bodies don't collide?

I have two objects. A dynamic player and a static ground object. It was working for a while until I did some refactoring and suddenly my play falls right through my ground object. Is there anything ...
0
votes
2answers
93 views

Component based architecture: “pure” or some inheritance?

(I asked a similar question, but it had more questions inside it and I feel it wasn't clear enough, so I'm opening a new one). Until recently I implemented all my games using an inheritance ...
0
votes
0answers
33 views

2D Range Searching

I have a 2D jump'n'run browser game based on SVG, whereby the entire game-world is included in one huge svg (28px * 16000px, ~3.5MB). Unfortunately is rendering kind of too complex and the browsers ...
0
votes
0answers
16 views

setScaleY() works strange on Android

I have an ImageView which I want it to enlarge once the app is launched So, firstly I did this: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
0
votes
0answers
16 views

jBox2D Physics design

I'm working on a simple 2D game engine with a entity & component system. I decided to use jBox2D for physics & collision detection. I got it working but I'm unsure how to structure my code ...
26
votes
6answers
4k views

Why do games ask for screen resolution instead of automatically fitting the window size?

It seems to me that it would be more logical, reusable and user-friendly to implement flexible, responsive UI layout over a 3d or 2d screen, which can then be run on any screen resolution. Some ...
0
votes
1answer
35 views

Error when using GetComponent (Object reference not set to an instance of an object)

I'm using a textmesh to check variables in real time. Thing is if I use AddComponent within Update(), it obviously starts spamming and slows the game. If I try with GetComponent the error is the ...
1
vote
2answers
70 views

Different ways to load/select characters in a RPG game

I am brand new here, and have been designing a two player card game where from tens of thousands of cards each player selects up to 80 cards DECK, and then fights with those cards. For reference Yu ...
2
votes
0answers
36 views

2D Animation Blending

I have been researching on 2D Animation Blending technique similar to what Unity 4.3 has. I know how Animation blending in 3D works but I have no idea how it works in 2D. How does 2D Animation ...
0
votes
2answers
29 views

Converting xnb files to fbx files

All the while I can only find how to convert from FBX to XNB but not the other way around. Does anyone know how can I do that?

15 30 50 per page