0
votes
1answer
19 views

Infinite loop of prerendered 3d graphic

I have a game where I want a never ending pathway for the character to walk along. So in my 3d modeling tool I created a path like this: now I want to loop that model over and over in my ...
1
vote
0answers
22 views

XNA and Json.Net - Recognizing types when deserializing with inherited classes

The title may seem a bit confusing, so let me explain. I am using Json.Net and XNA. I have an entity class, that has a virtual update method. I also have a class named Monster, which inherits the ...
0
votes
0answers
20 views

Place to find testers to try a new level in an existing game [on hold]

I designed a new level in an existing game. I am looking for testers to try whether a specific achievement is possible in the level. Is there any place to find testers to try a new level in an ...
1
vote
0answers
45 views

Avoiding memory allocation in Android game development

For obvious reasons, allocating memory on the fly in Android game development is not recommended. For example: http://developer.android.com/training/articles/perf-tips.html: There are two basic ...
0
votes
1answer
39 views

Alternative to Update()

Here is my noobish scenario I'm trying to understand: Some class, Terrain: void Start() { ... switch (Type) { case TerrainType.StartPoint: ...
1
vote
1answer
30 views

What is the relationship between glVertexAttribPointer index and GLSL location?

I've been getting some strange results when trying to implement a normals buffer for the purpose of rendering lighting. It seems to be related to the indexes for glEnableVertexAttribArray, ...
0
votes
0answers
23 views

Collision - Player vs Voxel (cube) [on hold]

Quick and simple. Having a world made of cubes(minecraft like) and a player - how do i : 1) Check for a collision 2) Update player position based on pt.1 Info: Player has AABB Cubes are 1x1x1
-2
votes
0answers
37 views

How to check the Intersection the line and triangle in 3D [on hold]

For example there is a code: struct Point { public int X; public int Y; public int Z; } struct Triangle { public Point p1; public Point p2; public Point p3; } struct Line { ...
3
votes
0answers
21 views

what is the name for the category of game that use a real time clock as the game time like die2nite.com

I was looking for more game like http://www.die2nite.com and http://mush.twinoid.com/ They use real time as the fictional time. Player are given a number of action point they can use freely during a ...
1
vote
0answers
18 views

Variance shadow maps less blurred than normal shadow map

I've implemented VSM (and also ESM) in my engine but results are for me not as I expected and saw in many examples published on network. I set filtering of shadow maps to GL_LINEAR but when I compare ...
0
votes
1answer
36 views

Avoiding singletons for puzzle system

Say for instance I have a puzzle with 3 switches that need to be in some configuration (say all on) in one room, that opens a door in another, with a load screen separating, so I can't link the ...
1
vote
1answer
36 views

How can I access a script variable from another script in Unity?

I'm creating a space shooter (think Space Invaders or Galaga) where the GameManager persists between scenes but the player and enemies don't. I need to access a boolean value from the player and ...
0
votes
0answers
6 views

How can you duplicat folders and not share old dependencies in Unity?

I have a folder with some prefabs, materials, textures, FBX, etc. My Prefabs refers to FBXs and Materials in this folder. Can I clone this folder in a way that it will save those local dependencies? ...
2
votes
1answer
62 views

Collision detection between 2 irregular shapes

I need to implement a collision system for a vertical-shotter and the bullets can have any type of shape; i've implemented the shape class with an array of choords and an array of lines which have the ...
1
vote
0answers
28 views

Shadow map shimmering, indexing outside the shadow map

I have tried to reduce shadow shimmering/flickering using technique described here: http://msdn.microsoft.com/en-us/library/windows/desktop/ee416324%28v=vs.85%29.aspx I works as I want and shimmering ...
0
votes
1answer
62 views

Why does GameComponent have an Initialize() method?

I'm not sure if this exact question has been asked before, but all I could find were questions about how to work with GameComponent, or why something wasn't working. I understand that you overload ...
0
votes
0answers
25 views

XNA Storing Key/Button bindings

I'm trying to let the player set their own keybinds, and it's working very well. The problem I'm having is that i can't tell Keys from Buttons when I'm displaying them in the menu. I store the inputs ...
5
votes
1answer
658 views

Are there any hex tile sizes where both width and height are integers?

I'm trying to figure out the optimal width and height (in pixels) to start building hex tiles for game development. My preference is for "flat topped" hex grids, but the math is similar for both. I ...
-1
votes
0answers
49 views

Percentage HP (100%) vs. Numbered HP (100/100) — Mobile Role-Playing Game [on hold]

Just wondered what everyone's preference would be for a health bar. I am making a RPG game for android and apple phones and Im trying to get as much feedback as possible.... even on the tiny things ...
2
votes
1answer
53 views

Calculating gameObjects hit by a directional light source

I am trying to figure out in my current game whether a gameObject is lit by a directional light or not. Below is my image inside the Unity game engine As my game runs around a Day/Night cycle, I ...
1
vote
1answer
65 views

Rotate an arrow on a plane?

I'm creating a display for a GPS-based embedded system and would like to have an arrow indicating the current bearing. I'd love the arrow to have a 3d appearance by rotating it on a plane tilted up ...
0
votes
1answer
43 views

Suggestions for a game variable

Im developing a browser game where you can build various buildings that cost varying amounts of resources, all text based. Buildings take land to build and cannot be built unless theres free space, ...
0
votes
2answers
32 views

Add a Countdown Timer that increments in JavaScript and resets per level

I am currently developing a Simon says type game using jquery and javascript. I have linked a fully copy of the game on github Github download and unzip to see the game fully ...
0
votes
0answers
16 views

Can't get libGDX to work! [on hold]

I was just trying to make simple game using libGDX, just to try it out, but it looks like I can't set it up. I am using Eclipse+ADT bundle. I also set the android sdk location there. The only thing I ...
0
votes
1answer
58 views

Possible to create 3-D or accelerated graphics on Windows using your own library/API?

Say I want to come up with a way to replace what OpenGL and DirectX specifications do: communicate with GPU to get some functions done that help hardware-acceleration and rapid drawing of screen data. ...
0
votes
0answers
16 views

ID3D11DeviceContext Map/Unmap bottleneck

I maintain a small rendering engine that displays models in Direct3D 9. I'm currently migrating this to Direct3D 11, and I've hit a snag in how I display points on the model. Using a sphere mesh, I ...
0
votes
0answers
16 views

Tech recommendation for simple multiplayer browser games [on hold]

I want to create a simple multiplayer browser game. It's basically a simplified chess game, where players would move pieces and I'd program a specific set of rules on the engine. I am proficient in ...
0
votes
0answers
67 views

3d game math problem

i'm very much new to 3d math operations. I know how to rotate 3d points certain degrees arbitrarily by any axis but we were given a strange problem to think on. I'll spare using actual numbers on ...
0
votes
0answers
28 views

Shadow mapping comparing depth in GLSL

I've been trying to figure out how to compare against my shadow map, which has a shader that just does the following: gl_FragColor.r = gl_FragCoord.z; And my vertex shader for the render pass does ...
0
votes
0answers
13 views

Artoolkit, transform pixels coordinates to be aligned to the marker

I'm working with artoolkit, i was trying to get the marker pixels using dataptr and marker_info (x,y coordinate), then i used opengl (GL_POINTS) to draw on these pixels and that was working right in ...
0
votes
0answers
39 views

Should I have multiple small textures or a single big one?

I'm using SDL 2 to create a small 2D game. Based on the docs, this is what I would do: SDL_Surface *surface = SDL_LoadBMP("image.bmp"); SDL_Texture *texture = SDL_CreateTextureFromSurface(renderer, ...
1
vote
0answers
40 views

How to setup a particular blend state where the alpha channel is additive?

I would like to set a blend state to be "additive" and do the following: Result.R = Source.R + Destination.R; Result.G = Source.G + Destination.G; Result.B = Source.B + Destination.B; Result.A = ...
0
votes
0answers
23 views

Create a sprite in Unity that has a border that does not change its width when scaling

I am trying to create a box that has a 10 pixel border and when I scale that box I would like the border to stay 10 pixels no matter the size. I am currently trying to create an empty game object ...
0
votes
2answers
63 views

How to write an adjacency algorithm that compares position data?

I have a list of indexed triangles for which I need to generate adjacency data. I've already written a brute force algorithm that creates 3 edge data structures for each triangle and then compares the ...
0
votes
0answers
19 views

XNA: Does the position of mouseState matter? [migrated]

In order to get a single click response from MouseState, I use this line. currentMouseState.LeftButton == ButtonState.Pressed && oldMouseState.LeftButton == ButtonState.Released) And at the ...
-1
votes
1answer
26 views

Screen flashing while window is open [on hold]

The screen renders everything in the right place but the entire screen flickers/flashes while it's open. Any Ideas? TileMapEditor class import com.stardust.main.gfx.Assets; import java.awt.Graphics; ...
0
votes
0answers
9 views

Creating bullets at tip of rotateable object? [duplicate]

I am and not very good at trigonometry or whatever it is i'm even using. My problem is that I simply cannot figure out how to create the bullets exactly at the point of my object. The object rotates ...
0
votes
0answers
6 views

Circular references in Nation-Town-Citizens chain [migrated]

Say I have three classes, Nation, Town, and Citizen. A nation contains towns, and a town contains citizens. public class Nation { Set<Town> towns; } public class Town { ...
0
votes
0answers
12 views

portable pti chamber editor

is there a portable version of the pti editor that does not rely on the p2 game files for chamber Development as i do not yet wish to use hammer or something that advanced
1
vote
0answers
50 views

Best view for 2D Android game in Xamarin [on hold]

I am trying to create a 2D multiplayer turn-based cooperative game for Android in Xamarin with possible future implementations for Windows Phone and iOS. The main inspiration for my game is Pandemic. ...
0
votes
1answer
33 views

TileMap not not rendering

I have a tile map that I would like to be able to move while playing the game. In the code you will see the posX and posY variables. I used these variables so that when I complete this, I can have the ...
0
votes
2answers
31 views

Random undirected graph generation

I would like to generate graphs randomly, like this: I have found that Box2d maybe can do it to me. But I do not know, how to use it, so how can I generate bobies after world initialization?
0
votes
0answers
22 views

User interactions with game objects [on hold]

Would it be smart to put how game character (in some cases player) interacts with specific game object inside that object's class? Lets say door class would check if character, that tries to interact ...
0
votes
0answers
27 views

Suggestions for porting games to a very low-rez screen [on hold]

I'm working on a project where we have access to a big, very low-resolution screen. The screen is about three feet (1m) wide and eight feet (2.5m) tall. Its resolution is 24 pixels wide by 56 pixels ...
0
votes
0answers
17 views

Copyright of old music [on hold]

This is a two fold question: I'm using the song "Dance of the little swans" from the Swan Lake by Tchaikovsky for my indie game. I can't find any information on who owes the copyright for music ...
0
votes
1answer
43 views

Xna 2d tile culling

I'm trying to make a simple 2d tile engine here, and I've got a problem with getting a proper cells from a tile grid map when I'm trying to cull off tiles which aren't needed to be drawn. I've got a ...
3
votes
1answer
48 views

Executing commands at the exact same time on 2 or more computers

I have an RTS game, with deterministic simulation, but if I want multiplayer to actually work, I need commands sent between computers to be executed at the exact same time. My game's networking is ...
0
votes
1answer
35 views

C# - How to properly play background songs in XNA

So I'm using the game states (enum) to change my game screens. I have 2 songs for main menu and game playing states, respectively. To play songs, I'm using an old code example I saw at MSDN, like ...
17
votes
8answers
3k views

What is a “2.5D” environment?

I don't understand the meaning of the term "2.5D." I'm specifically confused about the difference between 2.5D and 3D environments, even though I've read different definitions and articles about both. ...
0
votes
1answer
49 views

Mutlplayer game organization [on hold]

I'm planning to create an RPG that you can play in multiplayer. The graphics will be simple ASCII. I will do the client C and the server in Python. Having never done a multiplayer game was wondering ...

15 30 50 per page