-1
votes
0answers
9 views

Back to the West game - tribute to West Bank and Bank Panic - iPhone and Android

Like your opinion of our game, if you have time to check it. Guys, finally we have released this game for iPhone and Android devices. If you have time, please download it and comment. Thanks a lot! ...
0
votes
1answer
6 views

Unity: Instantiate an object respecting the prefab's default rotation

Simple question, I hope. I've built a variety of prefabs for an isometric shooter game (hazards, enemies, health indicator bars, popup texts, shots, explosions). All of these prefabs were ...
0
votes
1answer
24 views

Why does my character move up forever when he jumps with this code?

I've been doing some stupid stuff in Slick2D+LWJGL and I've run into a problem. I press the UP arrow and my character continues to go up until I let go :/ Here's the code: if ...
0
votes
0answers
20 views

Android: OpenGL vs Native API [on hold]

I am making a game very similar to Final Fantasy (as far as RPG/Party system goes, and the free-roam aspect of the gameplay. The roaming will be like Pokemon-style). Should I go for OpenGL to ...
0
votes
1answer
18 views

Is it possible to use Unity components individually outside of the Unity Studio?

Such as physics, rendering or math libraries/objects. I would like create a project which would benefit from a few game engine related things but rather than use a mixture of separate libraries I ...
-1
votes
0answers
16 views

What does this piece of Tiled C++ code do? [migrated]

I'm trying to figure out the purpose of this piece of code, from the Tiled utility's map format documentation. const int gid = data[i] | data[i + 1] << 8 | ...
0
votes
0answers
24 views

Text Based RPG Crime Algorithm

Ok so I am creating a text based RPG and i've got an app where players can do crimes and earn xp towards their level and crimexp towards their rank (which would also increase the users chances of ...
-1
votes
0answers
13 views

Theoretical Flash online DMO (very small game) [on hold]

I am a part of a team working on a Flash mmo. I am an animator on the team and was just involved in a pre-alpha test of our game. It got me thinking about the coding it took to do the multiplayer ...
0
votes
0answers
6 views

Packages and Design Patterns for a “Hotline Miami” type JAVA game [on hold]

I want to make a java applet game in the style of "GTA1/2" or "hotline miami" for a college project, of course completely 2D, focusing only on the mechanics with ripped music and pixel art and no ...
0
votes
0answers
15 views

using eclipse instead of visual studio for cocos2d-x project

im using coco2d-x v 3.0 i made a new windows project to test it and it is working but when i try to build and run a project using this command cocos run -p win32 it is print this error it seem ...
0
votes
0answers
22 views

Bounding box center after transformation - want degree values for GUI

Similar to my previous question, I have a bounding box that I have transformed and scaled. Now, I want to get its center by doing this operation and store this value. bbCenter = glm::vec3(bbMin_x + ...
0
votes
0answers
16 views

Problem with Cocos2D engine [on hold]

currently i'm using cocos2d engine, but when i try to run the project i see this error message: #include "glfw3.h" fatal error: glfw3.h: No such file or directory i am already installed GLFW with ...
2
votes
0answers
19 views

Quaternion - rotating rigidBody to particular angle over time

Using Bullet Physics. There's a rigid body that is rotated. For some delta-time I need to rotate that body to have rotation of (0, y, 0) - keep the old y value rotation but reset x and z. The ...
0
votes
0answers
36 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
76 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
1answer
34 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
20 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
17 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
21 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
28 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 ...
6
votes
2answers
678 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
39 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
24 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
64 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
45 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
44 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
43 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
30 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
3answers
124 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
51 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
40 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
36 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
16 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
719 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
54 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
167 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
39 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
54 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
54 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
11 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
35 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
29 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
44 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. Update This is my code: ...
1
vote
0answers
25 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
82 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
93 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 ...

15 30 50 per page