0
votes
0answers
1 views

LibGDX how to efficiently handle button presses

I'm making a simple 2D game for android using LibGDX. My game needs to have many buttons in it that fire off a method when pressed, and I was wondering what the best way to do this would be. I tried ...
1
vote
4answers
82 views

Is there a quick way to determine if a vector is in a quadrant?

I am wondering if there is a quick easy way to determine if a given vector is in a specified quadrant. In the below image, I've define the ranges of the blue quadrants. For example, if I am given ...
1
vote
1answer
41 views

Rotating towards a point in Box2D

I'm using Box2d as my physics engine and I'm trying to solve what would normally be a simple problem but what has become a nightmare for me and preventing me from finishing my app. (6 months work) ...
3
votes
1answer
3k views

What are the differences betwen Texture, TextureRegion, TextureAtlas, Sprite and Image in libgdx?

I've searched around for tutorials. I've seen people using the above classes to load images. As according to my understanding, all of the classes can read in a non-power of two images, ...
0
votes
0answers
4 views

Unity 5 The Editor has stopped working Windows 7 64bit

As soon as I press the play button to attempt to run any of my updates games crashes the editor immediately and I can't run my games. Does anyone know how I could debug this or where to start? Does ...
0
votes
0answers
2 views

Facebook login issue in unity debug

Okay, I am not sure how to look for an answer to this question, I might be wording is wrong. Anyway, I have been working on a login button for my iOS game and the issue I am having is that the login ...
0
votes
0answers
8 views

What does the update button in the Unreal Engine launcher actually update the engine to?

Unreal Engine 4 seems to have a very handy way of managing different versions of the engine - mainly you get to keep several copies and choose which one to launch. That said, not having used the new ...
0
votes
1answer
26 views

Imported Blender modular mesh lighting/shadows issue - Unity

Hi I've very recently started using Unity and am creating a game level. I've created my environment in blender and am currently using a modular design as I'd like to include destructible environments. ...
0
votes
1answer
79 views

How i can do colisions with irregular hitboxes [XNA]?

I'm developing my new platform engine and i don't know how to program collisions with slopes - I'm using hitboxes. For the collisions of rectangles i use this: if (player.rec(Position, ...
1
vote
1answer
56 views

LibGDX scene2d good practices

I'm developing a game using LibGDX and in a part it has a pretty complex UI for profile selection and stuff. I have some general problems. I'd like to know good practices when generate good looking ...
1
vote
1answer
32 views

Understanding HingeConstraint in jBullet

I'm using the java port of BulletPhysics engine jBullet. I'd like to make a joints between 2 triangles so that one edge of the first and one edge of the seconds act like a hinge. But I don't ...
0
votes
0answers
6 views

XNA renderTarget, how to convert mouse coordinates to world position when upscaling

I'm currently developing a monogame game with a tile engine. I have been experimenting with different tiles and sprites sizes : 16px, 32px, 64px I have settled for 32x32 pixels tiles rendered at a ...
0
votes
0answers
1 views

Dialog bar with LibGDX: Scrollpane won't' scroll to bottom after adding stuff to the contained table

To my game I want to add a gui element that displays text and textButtons whenever something is happening or it wants you to make a decission (an answer while talking to a person for example). To keep ...
0
votes
0answers
12 views

How to create a separate bin folder?

I am now creating a 64 bit and 32 bit executable of my game. How could I achieve so that the executable and dlls lie in a separate folder without changing all the path variables in the game? To ...
0
votes
0answers
11 views

Unity sprites are no longer batched after the object rotates/moves

With Unity 5 and access to the profiler, I'm running our game through some stress tests so I can find where our performance issues are. While testing having 1024 units on the screen with 4 selection ...
3
votes
1answer
148 views

Pyglet: text.Label().draw to FBO?

I just started OpenGL (PyopenGl) & Pyglet 3 weeks ago, and decided to read the Red Book. So sorry if my question shows my lack of comprehension... My question is: Is it possible to display/write ...
0
votes
1answer
31 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 ...
0
votes
4answers
65 views

Class design and data structures for a Tower Defense

I was trying to come up with a structure for a simple TD game that has following elements Tower Each Tower has a set of properties like range, damage, health etc There could be different types of ...
0
votes
0answers
9 views

Monogame and Windows Phone Store [on hold]

I create game (Monogame 3.2 and Visual Studio 2013) for Windows Phone 8.1 in test work everything fine. I upload game to Windows Phone Store. When I download game to my phone from store and run this ...
0
votes
0answers
47 views

Physics2D.OverlapCircleAll seems to be bigger than my radius

Im trying to make a "Scorched earth"-like game using unity. I managed to fire my bullet and make it explode on contact. What I am trying to do is do some damage to the tanks even if the bullet didn't ...
0
votes
1answer
176 views

Need Help with Cocos2d Ver 3.3 AudioEngine

So I have 2 audio files that I want to play at different times: background.wav a sneeze.wav. I believe that I have to convert both wav files into mp3, caf and ogg files. Then I do this: static ...
4
votes
1answer
1k views

2D game - Missile shooting problem on Android

I have to make a tank that sits still but moves his turret and shoots missiles. As this is my first Android application ever and I haven't done any game development either, I've come across a few ...
0
votes
0answers
16 views

Implementation details for Abe's Oddysee and Abe's Exoddus? [on hold]

Is there any article/resource describing implementation details of the first two games in the Oddworld series, Abe's Oddysee and Abe's Exoddus? If there is not any resource, I would also greatly ...
0
votes
0answers
14 views

How to get used to an Engine from a Framework? [on hold]

I don't know anywhere else where I can ask this and get very experienced and rational responses. I am very new to game development, I barely started about a week+ ago, spent most of it learning and ...
-1
votes
0answers
12 views

Value grow fast at first and slow down later between range [duplicate]

I'm looking for math formula which start very quickly increase value in first few x value but later it's slow down a lot. Range x should be between <100.0; 50.0> y should be between <0; 100> So ...
0
votes
0answers
19 views

Efficiently creating animation sprites

I'm currently developing a simple 2d game on LibGDX. The core game logic is in place, but the assets are simply taking forever to create. My current method to create each animation frame is to ...
0
votes
1answer
48 views

How to invert a damage formula?

I have created simple damage formula based on source percent, which return fixed percent of damage. DAMAGE_PERCENT = Exp(Log(100) * (1 - (100 - SOURCE_PERCENT) / 150) Here is the result: ...
0
votes
1answer
377 views

post on Facebook from cocos2d-x on windows phone

Is it possible to share/post on Facebook from cocos2d-x on windows phone. Is there any example/tutorial available.
1
vote
1answer
27 views

Space Shooter Unity 5 Collisions not working

After upgrading the official Space Shooter Tutorial to Unity 5, collisions stop working. Additionally, the following error is reported: Non-convex MeshColliders with non-kinematic Rigidbodies are no ...
33
votes
1answer
3k views

What is Vulkan and how does it differ from OpenGL?

Khronos Group (the standards body behind OpenGL) has just announced Vulkan: Vulkan is the new generation, open standard API for high-efficiency access to graphics and compute on modern GPUs. This ...
-1
votes
0answers
24 views

Many things internet failed to help me out with [on hold]

I know people wrote useful things on the web, but to get to them is impossible from all the dumb sites. Please note that this account is on my personal email, so I will be only one posting here and ...
1
vote
2answers
2k views

Is it possible to use C++ with Unity instead of C#?

The title kind of says it all. Is it possible to replace C# with C++ on a game using Unity?
2
votes
1answer
2k views

Using Nifty GUI with Slick2D

As seen here NiftyGUI has it's own GameState classes, I want to know if for adding UI to one state of my game I need to make that state NiftyOverlayGameState or still a BasicGameState but to add a ...
3
votes
2answers
654 views

Slick & NiftyGUI. Nifty initialize exception

I found my self into trouble when trying to run a Slick game with a Nifty Game State. This is the code: @Override protected void initGameAndGUI(GameContainer container, StateBasedGame game) ...
0
votes
0answers
15 views

Second pass in multipass effect is ignoring

I am trying to render my vertecies in 2 passes, but seems I am doing something wrong, because only one pass applying. I cannot make the second one work despite that second pass is applying. Here is ...
0
votes
0answers
17 views

Additional dependencies in XNA/Monogame

I made a game in monogame recently, using the XNA content pipleline. I then sent the whole folder (The release folder in visual studio) to a friend of mine who does not have visual studio or monogame. ...
1
vote
0answers
9 views

iPhone game app won't flip over like it's supposed to

I'm making a game iPhone app and I want the entire game to flip it's orientation as the user flips their device plus it's a requirement by Apple to have this orientation flip in iOS games. ...
0
votes
1answer
21 views

Wrong distance in Depth-buffer

I am currently trying to get the Depth Buffer as a texture to use it for edge detection algorithms. Since XNA4 does not allow direct access to the Depth Buffer as texture i have to render it into a ...
0
votes
1answer
45 views

How to merge 2 textures into single SRV

I have 2 textures in 2 different ShaderResourceViews. What's the fastest/least expensive way to merge them into one? I would use CopySubresourceRegion but copying a texture is quite a bit expensive. ...
0
votes
1answer
38 views

Making a gameObject push the player

I am working on a Unity 3D game for Oculus and I have problems with making my objects to apply physics on a player. So getting rid of a CharacterController and using something like a rag doll is not ...
0
votes
0answers
21 views

How to Implement a geometric algorithm for acurve counterclockwise (CCW) and clockwise (CW) [on hold]

Implementing counterclockwise (CCW) and (CW).. Given tow points a, b on a curve (as shown in fig.) is a-b a counterclockwise turn or clockwise or straight?? How can I limit the motion on a curve and ...
1
vote
1answer
22 views

How to Incorporate two loops: One for Turn Based Gameplay, and another for ongoing actions

I'm working on a roguelike using libtcod. So far everything works well with the turn-based functions. Essentially, when a player takes a turn, it triggers everything to advance. What if I have an ...
0
votes
1answer
34 views

How to use a buffer in GLSL to do a LUT-lookup?

I am currently on a medical application which needs different kinds (up to totally individual) lookup tables (LUT) for image display. And this done with 10bit finish. So it is most of the time ...
0
votes
0answers
25 views

How to DrawUserPrimitives after Drawing a separate Vertex List

I am currently making a voxel based game and so far I have chunk loading working well. My voxels are stored in an array, then pushed to a VertexBuffer, then drawn as a triangle list. My problem is ...
-1
votes
1answer
30 views

GUI in SDL Game?

I want to implement a very easy GUI for my SDL Game. Just an inputfield to insert a name and a button to choose the level of difficult. After reading this tutorial i'm not sure if that is what i need. ...
36
votes
3answers
9k views

How do audio based games such as Audiosurf and Beat Hazard work?

Note: I am not asking how to make a clone of one of these. I am asking about how they work. I'm sure everyone's seen the games where you use your own music files (or provided ones) and the games ...
1
vote
1answer
65 views

Unity 5 2D drawing sprites programmatically

How can I draw sprites in Unity 5 programmatically ? I am looking for something similar to spriteBatch.Draw() in XNA. The results I get when I search about it are either outdated ...
-2
votes
1answer
49 views

Collision Detection in OpenGL

For a 3D Game using OpenGL i have to implement a simple collision detection. After thinking about that, i have had the idea to read out the glm::mat4 MVP values and compare them to each other. Is that ...
0
votes
2answers
94 views

Where the physics should be put

I'm studying a book of artificial intelligence applied to games. It shows several algorithms for each argument (movements, path finding.. ecc). Unfortunately (but obviously) it does not explains how ...
0
votes
2answers
59 views

Z-Value of clip-space position is always 1.0

I render a lot of quads on the screen into z direction (20 x 2000). I want to get the depth value in a final render target. But it looks like z is always 1.0f. I checked the result with the OpenGL ...

15 30 50 per page