0
votes
0answers
10 views

How do I have a player also be a server? [Unity 2d]

I'm trying to make a game in Unity 2D, and I need a player to be a host because I can't afford dedicated hosting. Each client will have files that the server (and other clients) need to be able to ...
2
votes
1answer
38 views

DirectX is the camera a point or a plane?

I've built an application in SlimDX using an orbit camera. Currently I treat the position of the camera as a singular point in space. I've noticed my projections from 3D space to 2d space are off by ...
0
votes
1answer
15 views

Moving texture OpenGL ES 2.0

I am trying to implement a sprite of 8 columns and 8 rows in OpenGL ES 2.0 I made appear the first imagen but I cant figure out how to translate the Texture matrix in OpenGL ES 2.0 , the equivalent of ...
0
votes
0answers
16 views

Failed to load plugin in Unity mismatch with 64-bit and 32-bit

I am building a game in Unity and I am trying to load a dll from the plugins. I am running on 64-bit windows but I want to build a 32=bit game. When I try to load the dll I get this error Failed to ...
-1
votes
1answer
15 views

Unity: Prefab image is scaled

I have a question regarding to the size of images in the prefab versus UI/Image. When I drag prefab(SlotWheel) into the Scene editor, my images get scale larger. The original image that composed ...
1
vote
0answers
16 views

Implement dynamic 2 player splitscreen based on player positions

Having a local 2 player game, when the distance between the player is big enough, we have a splitscreen whose shape is defined by the angle between the two players. When they get close enough to each ...
2
votes
2answers
101 views

Lasers in 3D space game

I am creating this little 3d space shooter and am somewhat unsure on how to implement the laser beams. I'm thinking about something along Star Wars and the like where mostly you shoot rather short ...
1
vote
1answer
71 views

Unity: How to get a GameObject programmatically?

I have created a prefab. In Unity Scene editor, I dragged the prefab into the scene and named it PrefabA (this is a GameObject instance of the Prefab). Now, I need to update the PrefabA position. How ...
-1
votes
0answers
32 views

In 3D, how do I raycast to check for bullet hits?

I am developing a simple jet fighter game. I have x, y and z coordinates for both the shooter and target. How do I determine if a shot hits or misses an enemy object?
0
votes
0answers
13 views

Timer fault in enemy movement

I'm currently trying to create a method in C# where the enemies on the screen move in a random direction for 0.5 seconds before changing direction. But that's where I've run into some problems. This ...
0
votes
0answers
21 views

Lighting changes when loading scene

I have a script that changes the levels using Application.LoadLevel (sceneNameToChangeTo); Once a level is loaded using that code when testing with the editor, the lighting changes dramatically. ...
0
votes
0answers
14 views

libGdx extending the simple game tutorial texture in screen is not working

I have been following this tutorial in the libGdx wiki. I copied and pasted the code as is into my IDE (Android IDE because I do not have a computer to run Eclipse on and don't want to fork up $200 ...
0
votes
0answers
23 views

Advantages of “Overlap testing” and “Intersection testing”

I have been looking for advantages and disadvantages of both techniques, but I was only able to find a few disadvantages such as: Overlap testing may fail for objects moving very fast and Intersection ...
4
votes
1answer
50 views

Packet size vs packet frequency

I am making a multiplayer game in Java that uses a client-server model, where all important decisions are made by the server and communicated to all clients over UDP. Currently the clients and the ...
1
vote
3answers
14 views

How to sample a texture with specified LOD in SM 2.0?

That is my question, in SM 3.0 there is the HLSL intrasic function tex2Dlod to pick a color on a texture2d at specified coords and specified level-of-detail. But after long search on the web, I don't ...
-1
votes
0answers
13 views

Is OpenAL with Windows Environment good for reduce audio latency? or any other good Lib or API [on hold]

Is OpenAL with Windows XP, 7 or later environment good for reduce audio latency? hi. I am making music game that need to load many small size of audio files. and i try to make for Windows XP, 7 or ...
0
votes
1answer
42 views

Understanding some variable names in the quake engine

I am doing a bit of research for a project about air acceleration in the quake engine. I have a question about the names of the variables and their definitions. The code that I am looking at is ...
1
vote
2answers
26 views

How to get this type of movement in LibGDX?

I want objects in my game to move randomly but always from right side of the screen to the left side. The movement must be as smooth and natural as possible, like they are following a path. Can i ...
-2
votes
2answers
56 views

What does this code mean in the source engine [on hold]

I am working on a project in which I analyze acceleration in the Source engine. Being that I have very basic knowledge of computer science, I am not very proficient in understanding the syntax. The ...
0
votes
3answers
54 views

How to check distance between two different vectors?

So I have a very basic racing game, where I would like the car to stop once it hits the finish line. Respectively when the distance between the car and the finish line hits or goes under 0 the car ...
2
votes
1answer
57 views

How do we make online games deterministic?

I am trying to understand how networking in games work as I am trying to make an online game myself. I can't grasp how it is possible to synchronize the players, in order to make the game ...
0
votes
1answer
30 views

Scaling images in Unity

I have a question about how scales work in Unity (using 5.0). I've made a .gif image that is 100x100 pixels in size. I put it in Resources folder under Assets. When i drag it onto the scene it ...
2
votes
1answer
53 views

Is Physics2D.BoxCast a safe alternative to a row of raycasting?

Raycasting in rows is a common practice. Is using the Physics 2D BoxCast function a good alternative to using multiple raycasts spread out (an example use being collision detection in a custom ...
1
vote
1answer
51 views

What does cache mean? [on hold]

I'm kinda new to the programming scene. I'm still a high school student but I want to be a game designer so I'm studying independently before I graduate to get an edge. The issue with this is that ...
-1
votes
1answer
45 views

Are the prefabs stored in RAM or in the Hard disk? (Unity3D)

I have many prefabs objects (65 MB) in an Unity3D project. My game use 100 different levels with combinations of the prefab objects. What is better create 100 scenes or create only one scene where ...
0
votes
1answer
23 views

useful way for coloring 3ds object in opengl

I have been working in making plane in blender and it has many materials over than 90 , and now I need it in an opengl project with c++ , but as you know if I but the 3ds file the plane color is ...
0
votes
0answers
6 views

Android Density Independent Pixel Drawables Resource Folder

I'm trying to get to grips with DIP in Android (using Eclipse). I'm writing a little game with OpenGL ES 2.0. Could I get some guidance and tips on what I'm not understanding/doing right. From what I ...
0
votes
0answers
13 views

Adding a 2D transformation matrix to GLSL

I'm having trouble understanding the matrices I need to render an object in OpenGL. I've been using a matrix to make up for the translation and scaling from the camera in my game but I didn't have a ...
0
votes
0answers
21 views

Looking for inspiration for a Mafia Wars type game [on hold]

I'm creating a game that is browser based and without 3D graphics. Basically its going to just be a text-based game. I'm at the very begging of this process, I want to write down a flow chart before I ...
0
votes
0answers
13 views

Unity not importing pivot points?

To start things off, I begin with the following set of procedures: Begin with a model in 3DS Max, which I will refer to as Cube. Confirm that Cube's pivot point is exactly in the center of it, which ...
0
votes
0answers
20 views

Is it possible to write a simple hitscan weapon code and mod it into a racing game such as assetto corsa [on hold]

I'm not a programmer and my knowledge of computer games are quite limited. I want to know is it possible to mod a simple hitscan weapon on to the cars of a racing game would be like. Of course the the ...
0
votes
0answers
18 views

Unity 2D: Lighting ground tiles in a sidescroller?

I'm trying to find a good way to tint the ground tiles in my 2D game at sunrise, sunset, etc. I thought it'd be a good idea to use a diffuse material + lighting in order to create effects by ...
1
vote
1answer
53 views

Java - Load new classes from a folder automatically at startup

I want to make my game-coding very flexible; so I wanted to make the game automatically load new Mobs from a folder named "mobs". This must be only at startup; not while it's already running. I just ...
0
votes
0answers
36 views

How to implement something as shown in the picture [on hold]

I am trying to make a game using libgdx framework problem: Initially screen is blank,then blue ball enters the screen from top, when blue ball reaches middle red ball enters,when blue ball reaches ...
1
vote
2answers
73 views

3d collision for non mathematician

I am having an extremely hard time understanding smooth 3d collision, i have spent month trying to figure out the math and still cannot get perfect collision like in games such as Quake. I've ...
1
vote
0answers
33 views

Is there any stand alone tool, for creating animated models?

There was a program, called Character Shop(darkbasic), where you could load the 3D models, add skeletons, choose from the predefined movements (walk, run, shoot), and generate a keyframe-animated 3d ...
0
votes
0answers
16 views

How to create heightmaps (images)? [on hold]

I would like to create a heightmap with an editor. I need two images as result: Grayscale heightmap The texture All the editors I've found, supports a special format, or the result is a 3D object ...
0
votes
0answers
31 views

Somebody know fluid simulation? [on hold]

I'm reading the book Fluid Simulation for Computer Graphics, and stumped by the sentence in chapter 3: "what's happening is that the eigenvalues of the Jacobian generated by the central difference are ...
7
votes
3answers
135 views

Using full resolution of depth buffer for 2D rendering

I'm working on a front-to-back renderer for a 2D engine using an orthographic projection. I want to use the depth buffer to avoid overdraw. I have a 16-bit depth buffer, a camera at Z=100 looking at ...
3
votes
5answers
1k views

Trying to implement gun cooldowns in C#

My aim is to allow my player to shoot 3 bullets at a time. Between shooting these 3 bullets the player should wait a very small interval (so that they don't all get fired at the same time) - call this ...
0
votes
0answers
18 views

What are the resource requirement headings of a game task? [on hold]

I would like to be able to make a list of resource requirement headings for a task in a game. The purpose here is that in game I can see if the task can be performed or not, and what would need to ...
2
votes
3answers
178 views

Algorithm for dividing a 2D grid into organic looking plates

the title pretty much says it all: How could one go about segmenting a 2D grid into smaller parts? My goal here is to create tectonic plates for further procedural world generation Details to ...
0
votes
1answer
45 views

is this approach correct to make my game framerate indipendent in javascript?

this is what i did my game loop is run every REFRESH milliseconds loop = setInterval(tick,REFRESH); in the loop i calculate how much time is passed since last tick and subdivide that for how much ...
0
votes
1answer
38 views

Libgdx using Box2d with TiledMap to create collision detection

I'm fairly new to Libgdx and have some good basic knowledge on Java. Right now I am stuck on how to add collision to my TiledMap, I am using the Mapeditor to create the tilemap. I read so many ...
1
vote
0answers
20 views

libGDX: Linking 3D scene from 2D screen

Using libGDX I have created a few 2D screens, such as a splash screen and a main menu, and also created a 3D scene which I want to be able to load when clicking a button on the main menu. I know how ...
0
votes
0answers
14 views

Login handler for server logic in Poker

I am developing the server side of a multiplayers Poker game. My server has zone/room architecture. If users want to enter a zone, they have to submit login information to server. After receiving that ...
0
votes
1answer
26 views

What are suitable and latest ranking system for racing games? [on hold]

I have been developing a game for iOS. I am not able to figure out a ranking system for the game. Can someone suggest most frequently used and best ranking systems.There will be a user who will be ...
1
vote
1answer
41 views

Should I cull off-screen objects in SDL2

My game will have a large number of objects moving offscreen at any given time, can i just render them all with SDL_RenderCopy even though they are off screen or should I only render them if they are ...
0
votes
3answers
58 views

ECS Reference another Entity's Properties

In an entity component system (implemented where components only contain data and systems operate on groups of data) one can guarantee that the entity in which a system is operating on has the desired ...
2
votes
0answers
33 views

how to detect if a line is crossing another shape in javascript?

given the situation here http://jsfiddle.net/h902cLpy/ is it possible to detect that a line going from A to B does cross another shape while A to C doesn't?

15 30 50 per page