0
votes
1answer
16 views

Why Is My AABB Collision Detection Not Working

I am going to be making a 3D game and I need to be able to test for accurate collision. I was able to get bounding sphere collision working (too inaccurate to be used for the whole game), but AABB ...
-4
votes
0answers
28 views

What is a .zmesh file? [on hold]

The first 4 bytes of a .zmesh file is ZMSH. Which program should I use to open it?
-1
votes
0answers
16 views

Collaborative game development: Unreal Engine 4 or open source [on hold]

I want to program a game in c++ where most of the scripting, actual game environment, and possibly much of the base code can be built by players and/or a modding community. For this reason, using an ...
0
votes
1answer
22 views

How to determine the distance between a point and a rotated rectangle

This question is very similar to How do I calculate distance from a point to a rectangle?. But that question assumes that the rectangle is axis-alligned, or not rotated. So just like in that ...
0
votes
0answers
23 views

What kind of AI for a complex board game [Summoner Wars]

I am thinking of creating an AI for the card/board game Summoner Wars (by PlaidHat Games). It's a very nice tactical game for two players, with simple rules but quite deep. I have considered min-max ...
0
votes
0answers
26 views

Euler angle and quaternion rotation

If I have a player at [12,0,54] and an enemy at [5,0,-9], to calculate the Euler angle for the enemy to rotate and face the player, would I subtract enemy minus player positions and then divide that ...
1
vote
1answer
35 views

Building a C-E engine in a high level language, how can I integrate optional lower-level components that own overlapping state?

To clarify, by overlapping I do not mean overlapping between said components, but rather, let's say I have: My entity contains components, and a parent-children system. Call it a mandatory Hierarchy ...
1
vote
1answer
23 views

Stop vibration (bouncing efect)

I have a game with some ball and I want to make it bounce. I already have movement, gravity, collisions implemented, I only need to make it bounce. Thing is, using this code: player.getVelocity().y ...
0
votes
0answers
17 views

How do I limit the scope of equip events only to certain inventory items?

I have an ItemBase class as the base class for all weapons and armor. When the player equips an item, an event is raised. Class ItemBase Public Event OnEquip(Player1 As Player) Public Sub ...
0
votes
0answers
12 views

Control a music sequencer inside a program for Virtual Reality App

I am developing a VR app for a class project. Basically, a vinyl disk is revolving and the user "draws" notes on it and each revolution represents a loop, reading the music on the disk and playing it ...
2
votes
1answer
23 views

In XNA 4, how can I access SpriteBatch's transformMatrix in my shader?

I would like to use a custom effect with a regular XNA SpriteBatch. I have a 2D camera which computes a transform matrix, so I need my shader to take this into account. I have put a world matrix ...
0
votes
0answers
4 views

Camera3D in Node(PSM)

i'm so sorry that my english is not good.... As we know, Node members object Camera, and Camera2D / Camera3D (which of then one will be instantiated). So there is a Scene, which has a Node. I want to ...
0
votes
1answer
29 views

Java 2D RPG Game smart pathfinding [duplicate]

Hello I have a top down survival game where you shoot bad guys(green squares). The player can collide with certain tiles and so can the mobs but I want the mobs to go around the tile if there is a ...
0
votes
2answers
53 views

Triangle doesn't render

I am trying to make the OpenGL Version of the "Hello World" program. Basically a spinning triangle in 3D space. I have found the Tao Framework because I am reading the book called C# Game Programming: ...
1
vote
0answers
2 views

How can I use CCClippingNode to trim the top and bottom from a CCTableView?

I'm fairly new to Cocos2d and struggling with sizing a CCTableView. How can its height be controlled so that I have space at the top and the bottom? I'm trying to visually wrap the top and bottom of ...
1
vote
1answer
82 views

OOP design, keeping track of entities

First, I would like to say that I have no experience with this and am still getting my head around OOP, so if something is really obvious, just point it out :) I am designing a game and I am not sure ...
0
votes
0answers
44 views

Should I enforce “console” control flow? [on hold]

I have a game where the user enter commands in a JTextField to interact with the game engine (move his character, get a description of its current location, see his inventory...). The problem is that ...
0
votes
1answer
23 views

Sending RPC calls from server to client inside Unity

In my game inside Unity, I have two scenes setup. One for the main server ( acts like authoritative server ) and the other scene for my client. The game starts once my client connects to the server. ...
1
vote
2answers
78 views

How do I create the visual effect of transitioning between night and day?

I am making an open-world project in Unity 4.5.5 and I want to create a visual effect of transitioning from day to night? The Legend of Zelda: Wind Waker HD has a great example of such a transition. ...
0
votes
0answers
26 views

Alternative to singleton based game class [duplicate]

Lets say I have my main game class: class Game { public GameLoop Loop; public Scene ActiveScene; } and in my implementation of a game that uses it I do something like: Game game = new ...
0
votes
2answers
48 views

Finite-state machine with more than one concurrent state

I am using a FSM for the player entity and it is working fine. Currently the entity has one state and only one (e.g. paralyzed). The entity's state process() method is called every turn. It is ...
0
votes
0answers
13 views

libGDX differences/advantages of GL30 over GL20? [on hold]

So the question is pretty straightforward, what are the advantages and differences between using GL20 and GL30? I know that GL20 supports deferred shading and other nice lighting effects, what about ...
0
votes
0answers
29 views

Making a player jump [on hold]

I am developing a game in eclipse for android and I wont to make the player jump like in flappy bird.I developed some code to make the player jump when the screen is touched but when I run the app and ...
0
votes
2answers
44 views

How do I have a camera follow my object in Unity?

I have an object that automatically moves by itself and I want the main camera to automatically follow it.(Like in games such as geometry dash and jetpack joyride) This is the code for the automatic ...
0
votes
0answers
58 views

Calculating Projectile Movement

I'm having some trouble putting together a method that will constantly move a "bullet" in the same direction accurately. Here is what I have so far public Vector3f moveFromPosition(Vector3f location, ...
0
votes
1answer
16 views

D3D11_SAMPLER_DESC::MipLODBias vs ID3D11DeviceContext::SetResourceMinLOD

When implementing a max-texture-detail functionality for a game, which approach is better to use, out of: Setting the D3D11_SAMPLER_DESC::MipLODBias value of a sampler state object, or, Setting the ...
0
votes
2answers
26 views

Getting the correct texture from an Atlas

I'm writing an OpenGL ES (2.0) app and have a custom Quad class which draws a textured quad for my sprites. Currently, I put the textures of any sprites of the same size into a single file or atlas, ...
0
votes
0answers
7 views

3D Model in the midst of tracking state inferred and tracked

I am developing Kinect motion capture application by using XNA framework.My 3d model's bones are sometimes at the state inferren and tracked ,so for example the hand is being at the very unrelated ...
0
votes
0answers
50 views

Layers with parallax in a game with zoom out by a transformation matrix

I'm trying to implement a parallax rendering to my multi layered backgrounds. It's a classic 2d fighting game like The King of Fighters and Street Fighter. It may have a stage composed by 5 layers. ...
0
votes
0answers
19 views

Unity 2d make character move perpendicular to ground [on hold]

I am trying to make my 2D character move perpendicular to the ground but I am having no luck I need him to be able to jump freely but stay perpendicular to the ground when grounded only.
0
votes
0answers
20 views

C# XNA Weird black line behaviour of sprite animation spriteBatch.Draw()

So I've been making a Space Invaders game in XNA. I have my ship spritesheet (sprites are left-to-right - horizontal). The spritesheet has 6 sprites. Here's my class: playerShip.cs using System; ...
-1
votes
1answer
42 views

How to deal with extremly big numbers in javascript? [on hold]

I am making a idle game like http://www.clickerheroes.com/ . I am doing it using createjs html library(doesnt matter). Anyways what i want to know is how i can deal with extremly large numbers that ...
-4
votes
0answers
50 views

AntiCheat Tool using C++, AntiDebugger & more [on hold]

I want to make an AntiCheat tool for my game. I thought maybe check if something gets injected to the process or something was edited in it's memory. Please note, it's an extern one, so it's not ...
1
vote
1answer
12 views

How do I find the shape of Tiled's circles or ellipses in libGDX?

I created a level in the 'Tiled Map Editor' and loaded it into my libGDX game. I can easily transform almost all objects into Box2D objects (although this problem is not Box2D specific), but I have ...
0
votes
1answer
18 views

trasformation matrix for model's bones

I was developing an fbx converter for legend of grimrock object model (www.grimrock.net), I just wanted to get the animations cause the rest has been converted by others' tools. I was reading all of ...
-2
votes
0answers
19 views

Text Rendering free type2 with directx 11 [on hold]

Hi Im building a 2D game engine but im having problem understanding free type 2 and how it works with directx 11.
-2
votes
1answer
42 views

How to spawn multiple enemies? [on hold]

I can store it in an array, ok, but after how can i paint it? Because if i do enemy = new Enemy(); enemy2 = new Enemy(); i create two istances of the object, but afer how can i paint it? I use: ...
11
votes
7answers
2k views

How do I design very difficult games? [on hold]

I would like to design games with very high difficulty levels. I have read these questions: How is game difficulty tested/balanced? What is an optimum failure rate that will keep people coming ...
0
votes
0answers
19 views

Passing random number parameter to RPC call inside Unity

So I have posted a similar question previously but this is more specific to actual code that I am trying to implement for a multiplayer game that I am working on for IPAD. In short, this will be a ...
0
votes
0answers
17 views

InvalidCastException: Cannot cast from source type to destination type [on hold]

I have fetched the data from xml and stored it in an array.I have coded as below private var timearray:Array; private var distancearray:Array; private var distancedata : String; private var timedata ...
0
votes
1answer
23 views

FBX SDK texture file name

I have built an importer that retrieves necessary vertex data however I wish to be able to read texture file directories. How do I retrieve the texture file name?
-2
votes
0answers
27 views

How can I display endless movement on a road in android? [on hold]

I want to create an endless road (and later include some obstacles). I thought that if I could get an image of a road, I could use a loop to give 'the idea' of moving, but it's not working.
-1
votes
0answers
46 views

Arcball camera rotation

I need some help adding Arcball camera rotation in my LWJGL modern OpenGL game. Right now, I have a camera that follows the player. I want to be able to hold down the right mouse button and move the ...
0
votes
0answers
19 views

Rewriting the existing code for RPC in Unity

So I am basically done making a game inside Unity. The next phase is for me to make the game run on different IPAD devices ( max 4 ). So the main game would run from a PC which would act as a server ...
0
votes
0answers
26 views

Rotation not as expected, perpendicular to expected one

I can't seem to get the rotation between two vectors right. I use the following: var quaternion = new THREE.Quaternion().setFromUnitVectors( (new THREE.Vector3( x1, y1, z1 )), (new THREE.Vector3( ...
0
votes
0answers
26 views

How is a 3D Environment displayed on a 2D Screen? [duplicate]

So basically I need to know how you display a 3D environment on a 2D screen. How is this done? I know there's a new axis called the Z axis but how does it work? If possible please explain this in the ...
0
votes
2answers
41 views

c# Unity - Matrix output incorrect on vector rotation

I have a input Vector (1,1,0) when I run it through a Unity Matrix4x4 class with a rotation of 90 degrees around the Z axis the output is (-0.9999999,1,0) which is nearly correct but strange. But ...
2
votes
2answers
53 views

Generate race track using freeform curves

I am trying to generate a race track in Vertex Shader(constraint) and only using B-Spline/Bezier/Hermite curves. My problem is that when i try to widen the obtained curve by translating another ...
1
vote
1answer
66 views

How to animate clouds [on hold]

I am creating an open-world in Unity 4.5.5 and I do not know how to make the clouds move. This video of The Legend of Zelda: Wind Waker HD is a perfect example of the clouds moving in the sky. How can ...
0
votes
0answers
25 views

Voxel sparse octrees for indirect illumination

I don't understand the use of voxel sparse octrees for indirect illumination calculations. First of all, what exactly is happing? We're rendering the scene as usual with diffuse lighting. In the ...

15 30 50 per page