0
votes
0answers
8 views

2D mask based lighting

I'm kind of concepting a 2D game at the moment and am thinking about dynamic lighting. I plan on having a background layer, and a foreground layer. Objects in the foreground layer will affect ...
-2
votes
2answers
16 views

what is the ducking ability?

In my game framework I have this property: canDuck : Boolean = true Determines whether or not the hero's ducking ability is enabled. What does it mean ? regards
0
votes
0answers
9 views

How to get and change a mesh-renderer component in unity?

I've been making a simple brick-breaker game using unity 4.3 (In C#). I'm currently trying to make the blocks, which are stored in an array, all start with random colour properties. The colours are ...
1
vote
0answers
8 views

Setting up 3d Collision for Primitive shapes

Im having some trouble understanding how to set up collision detection between my first person camera and my primitive shapes which are made using the vertex buffer. Do i give my camera a boundingBox ...
0
votes
0answers
11 views

When are PyGame sprites actually deallocated?

After implementing a library that makes extensive use of weakrefs for publish-subscribe junk, I noticed that the number of subscribers to a particular message kept climbing. It's curious because a ...
0
votes
1answer
9 views

Adding Components (classes) to unordered_map in Entity? (Possible typeid as key issue)

I've got a little test put together that has a couple simple Components that are supposed to be added to an Entity, but the addComponent function isn't working; I think it's got something to do with ...
1
vote
1answer
24 views

Multiple keypresses causing wierd results in SDL

I have been building a pong clone. I've been using a mixture of peoples different code to understand the way they structure their games as well as reading on game patterns. Currently I've gotten to ...
5
votes
2answers
318 views

Constant 2D Bullet movement in a shmup

I've been following the pixelnest tutorial to make a 2D shmup (http://pixelnest.io/tutorials/2d-game-unity/player-and-enemies/). While working on this I've experimented with increasing the firing ...
0
votes
0answers
30 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
1answer
23 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
54 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 ...
0
votes
0answers
42 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
1answer
31 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
38 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
1answer
26 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
95 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
12 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
43 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
39 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
35 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
15 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
677 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
51 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
163 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
14 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
22 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
1answer
36 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
53 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
45 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
34 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
28 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
17 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
34 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
24 views

shiffting the camera and set a new scene when using box2d

this is my jsfiddle : jsfiddle.net/V8eKp/4/show // START -- MOVE CAMERA var p = new b2Vec2(); p = (ball.body.GetWorldCenter().x) * physics.scale; ...
0
votes
2answers
81 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
91 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
103 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
74 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
52 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
51 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
31 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
1answer
46 views

Most efficient way of brighten and darken sprites with OpenGL > 2.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
57 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 ...

15 30 50 per page