Tagged Questions
1
vote
2answers
150 views
How to do FoV similiar to Nethack? [duplicate]
I am currently writing a little roguelike and wondered how Nethack/other games do the FoV of the player. I had a look at Nethacks source code, but since it's C it's pretty hard to read.
For people ...
2
votes
3answers
193 views
Complex Scaling
I've been trying to figure this thing out for weeks now, but with no luck.So, I am creating this program in WindowsForms and Xna, that allows users to create a 3D room. By draging and customizing ...
0
votes
1answer
160 views
Iterating 1D array and getting 2D tile position
I know I'm missing something very obvious here, but I have a 1D array that contains integers.I have a map that is 30 x 30 and the center coordinate is 0,0 (This is actually 3D, but I'm essentially ...
1
vote
1answer
153 views
Keeping the meshes “thickness” the same when scaling an object
I've been bashing my head for the past couple of weeks trying to find a way to help me accomplish, on first look very easy task. So, I got this one object currently made out of 5 cuboids (2 sides, 1 ...
1
vote
2answers
317 views
Rotating multiple points at once in 2D
I currently have an editor that creates shapes out of (X, Y) coordinates and then triangulate that to make up a shape of those points.
What will I have to do to rotate all of those points ...
4
votes
2answers
430 views
How to decompose sprite sheet
I have a lot of spritesheets that are poorly formatted that I want to decompose, or split out into many small images, one for each sprite.
If I can do that, I can use my custom texture packer tool to ...
5
votes
1answer
439 views
Farseer Physics: Ways to create a Body?
I want to create something similar to this using farsser and Kinect:
https://vimeo.com/33500649
This is my implementation until now:
http://www.youtube.com/watch?v=GlIvJRhco4U
I have the outline ...
4
votes
1answer
179 views
Create shape from points / lines in editor and mathematically calculate nearest points within shape
If I want an editor that accepts "points" of a minimum of three (a triangle) and I just add some points first, like this:
how can I mathematically connect these corners (points) into an object of ...
3
votes
2answers
966 views
Best algorithm for recursive adjacent tiles?
In my game I have a set of tiles placed in a 2D array marked by their Xs and Zs ([1,1],[1,2], etc).
Now, I want a sort of "Paint Bucket" mechanism: Selecting a tile will destroy all adjacent tiles ...
5
votes
3answers
439 views
Random monsters move in-sync instead of individually
I am making a game in which monsters spawn randomly and begin to move around randomly. I am fairly new at programming but not at game development. Through using a few tutorials I was able to make 1 ...
11
votes
4answers
1k views
Calculate random points (pixel) within a circle (image)
I have an image that contains a circles at a specific location, and of a specific diameter. What I need to do is to be able to calculate random points within the circle, and then manipulate the pixels ...
2
votes
3answers
727 views
Stuck in an infinite recursion in Minesweeper
I am trying to build a simple minesweeper game. The game gets stuck in an infinite recursion whenever a user clicks on a tile which is not a mine...
I have used the following function code for the ...
0
votes
1answer
334 views
Best Algorithm for attacking in the Risk Game
I apologize in advance for my English.I'll try to explain my problem.
I am working on new version of the Risk game. I want to change the attacking algorithm to make it more similar to real life war. ...
5
votes
3answers
3k views
Efficient Tile-based collision detection for a lot of squares?
currently I am working on my own take of a tile-based game (think Terraria, but less fantastical (I think that's a word? Sorry if it isn't)).
Anyway, I currently have collision detection working ...
2
votes
1answer
274 views
Moving two objects proportionally
I'm trying to move two objects away from each other at a proportional distance, but on different scales. I'm not quite sure how to do this. Object A can go from position 0.1 to 1. Object B has no ...
6
votes
1answer
545 views
Linking nodes algoritm for Visual Design
I'm developing an editor for my game, and now it's time to make a visual scripting system to let designer modify behaviours.
This video shows what i have done and the problem
to resolve the link ...
1
vote
2answers
621 views
Why isn't my player movement code working properly?
I'm making a text-based RPG. One thing I've been trying to implement for a long time now is the ability for the player to move North, South, East, or West. I have my code placed in a MoveBehavior ...
8
votes
3answers
883 views
How to find 2D grid cells swept by a moving circle?
I'm making a game based on a 2D grid, with some cells passable and some not. Dynamic objects can move continuously, independent of the grid, but need to collide with impassable cells.
I wrote an ...
10
votes
3answers
639 views
Drawing particles as a smooth blob
I'm new to game/graphics development and I'm playing around with particles (in 2D). I want to draw particles close to each other as a blob, just as liquid/water. I do not want to draw big circles ...
5
votes
1answer
209 views
Splitting an object into two
I'm using Farseer physics engine.
I have a simple rectangle body and would like it to split into two pieces given a starting coordinate (where the bullet enters the object) and ending coordinate ...
2
votes
1answer
1k views
C# Pathing algorithm for moving a object from point(X, Y) to point(X, Y)
Given a object which may move forward, backward, left and right at a given X,Y point. How to efficiently direct the object to a X,Y point using the given movement mechanics in the most efficient and ...
11
votes
3answers
2k views
Beat detection and FFT
I am working on a platformer game which includes music with beat detection. I am currently detecting beats by checking for when the current amplitude exceeds a historical sample. This doesn't work ...
4
votes
2answers
1k views
Bitmap font rendering, UV generation and vertex placement [closed]
I am generating a bitmap, however, I am not sure on how to render the UV's and placement. I had a thread like this once before, but it was too loosely worded as to what I was looking to do.
What I am ...
8
votes
2answers
1k views
Creating A Board Game AI
I want to code a board game that name is Okey and mostly popular in Turkey. http://en.wikipedia.org/wiki/Okey
But i have got some problems about AI.
Firslty let me explain the game..
The game is ...
3
votes
1answer
231 views
Correct Blitting 2 surface problem
this is a graphics/math problem.
Consider this 2 sprite / surface
As you can see they are a tank and his gun turret.
Now, i manage the turret rotation, and it works, and, also, the rotation of ...
13
votes
9answers
4k views
Dynamic pathing algorithm for tower defense game
I'm making a Tower Defense and I need a good pathing algorithm for it.
I have thought about Dijkstra but I need one that can be dynamic; it must be able to update itself when one edge is removed or ...
