0
votes
0answers
10 views

Third Person Camera OpenGL

I am currently working on my first OpenGL project for school, some demo code was given to us and now we have to build upon it. It's a space game and here is part of the Player Class (ship.c, just a ...
0
votes
0answers
12 views

jQuery - calculate map polygon Width and Height

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" ...
1
vote
1answer
32 views

Unity3d - zooming with orthogonal camera like in Google maps

I am implementing 2d orthogonal zoom. As far as I know - in Unity3d there are no translations like in OpenGL. Taking this into consideration, I work with : camera size camera position (center) real ...
1
vote
0answers
28 views

Sequence of turns in RPG combat [on hold]

I am developing turn-based cards RPG with fighting small squads of characters. Squads can be united to the alliances. Each alliance attacks any other and can be attacked by other alliances. Each ...
0
votes
0answers
14 views

my movement is working good on keyboard but on android its not

So basically here is what my movement is like for keys: key down if (keycode == Keys.LEFT) { mishi.getAcceleration().x = -13; } key up if (keycode == Keys.LEFT) { ...
0
votes
0answers
20 views

Question regarding the separation of input , logic and animations. (SFML)

I am completely new to game development and I've been trying to make a 2d game as a project for the past couple of days. I am using SFML and so far things are going well, but I am not sure how I ...
0
votes
0answers
14 views

2d OnMouse(anything) Not working

So I want to be able to click on these targets and have them destroy themselves. Right now I have many OnMouse functions all just trying to print something for testing. For whatever reason it doesn't ...
1
vote
2answers
71 views

Why anti-aliasing needs so much graphical processing?

This is a question I have always asked myself, especially when we are talking about x4 anti-aliasing or x8. It seems to me that over the course of years, the algorithm has remained the same and it ...
0
votes
0answers
10 views

java slick2d - gettileproperty returns true when it shouldn't

I'm trying to implement some collision detection to a test game i've been making. I've used TiledMap to create the map and set a property on one of the tiles to blocked=true This tile is then drawn on ...
2
votes
2answers
36 views

How do I detect when an HTML 5 game has ended?

I'd like to embed HTML5 games in a website, but I need to be able to detect when the game has ended so I can run some of my own JavaScript. Looking at the output of some game engines (Construct 2, ...
1
vote
1answer
33 views

AddComponent using a variable

I want to add a Component to a GameObject using an existing instance of the Component class. Let's say I have the class Foo: public class Foo : MonoBehaviour { int id {get; set;} string name ...
0
votes
0answers
31 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
13 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 ...
10
votes
3answers
576 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
47 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 ...
5
votes
1answer
151 views

What does Unity's “Speed of Sound”-option do?

I've been reading Unity's manual on the AudioManager's properties. Speed of Sound is the only undocumented option. What is it for?
0
votes
0answers
13 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
21 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
28 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
1answer
48 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
37 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
10 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
33 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
27 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
15 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" ...
1
vote
1answer
31 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
20 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
79 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
87 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? [on hold]

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
102 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
72 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
34 views

OpenGL camera Rotation Matrix & view Transformations [on hold]

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
50 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
49 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
140 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
29 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
21 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
51 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
55 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
28 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
28 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
68 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
38 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
29 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
38 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
35 views

Updating counters using time.delta [on hold]

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.

15 30 50 per page