2
votes
0answers
8 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
3 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
15 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
50 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
60 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
37 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
18 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
55 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
22 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
43 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
11 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
25 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
37 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
54 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
15 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
17 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
47 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
18 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
19 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
40 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
46 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
18 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
40 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
16 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
20 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
35 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
18 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
0answers
15 views

Zoom with panning causes jumpy glitch

So i have been playing around in canvas HTML 5 trying to get a nice zooming and panning feature to work nicely. Problem is I have some mistake regarding the logic to it. When a user zooms in or out ...
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
52 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
60 views

How to animate clouds

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 ...
0
votes
1answer
70 views

How can I allow players to draw decals for their avatar and items?

I want the player to be able to draw a simple symbol, even if it's pixelated black or white, that their character can have on their weapons, armour, forehead or even markers and monuments. How would I ...
0
votes
0answers
37 views

What 2D coding engine should I use? [on hold]

I'm not sure if this is considered a gaming question, but I want to start programming 2D games and I don't know what engine I should use (I work on my own and I am a beginner; plus I'm very young)... ...
0
votes
1answer
28 views

How to use D3D11_SHADER_RESOURCE_VIEW_DESC.Buffer.ElementWidth?

If I want to create an ID3D11ShaderResourceView* to a buffer with a given DXGI_FORMAT (e.g. DXGI_FORMAT_R32G32B32), do I have to also supply a value for ...
0
votes
1answer
35 views

Installing Unreal Engine 4 in Ubuntu — setting OAuth

https://wiki.unrealengine.com/Building_On_Linux When I run ./GenerateProjectFiles.sh I get this: Github build Checking / downloading the latest archives Please set OAUTH_TOKEN You can generate an ...
1
vote
0answers
15 views

Changing Box2D Body from Kinematic to Dynamic after contact

What is the correct way to change a Kinematic body into a dynamic body? context - I have a dynamic body as a projectile which has to be fired at a kinematic body (it is kinematic because i am ...
1
vote
0answers
18 views

How to mirror flip animation curves in Unity?

I have a animation that moves my camera from left to right. Now I'd like to copy it with 'mirror' transformation so I can use it to move from right to left. Is it possible to do it using script or ...
0
votes
0answers
25 views

How can I use different fonts for different objects in Unity?

In Unity 3.5, I have a font that is strangely linked to four game objects. I want to put separate fonts on each object. In the Inspector, when I click on the circle icon next to the "Text" ...
0
votes
1answer
26 views

Trigger scene loading in one device from another device using Unity WWW class

I have a master device and client device. I want to load a scene in the client device by pressing a button in the master. My method is, when the button is pressed in the master device, a data is ...
0
votes
0answers
31 views

bool keys 2 players with c# [on hold]

I'm working on my project and have a question. I have to make a multiplayer race game. I have to cars that have to race vs eachother, the only problem is that it have to work on one keboard. I can ...

15 30 50 per page