Tagged Questions
3
votes
1answer
76 views
Pygame: circular motion with Bresenham's algorithm
I'm trying to figure out a way to move an object in a circular path. I read about Bresenham's circle algorithm, but all the codes available online draw an entire circle.
For my game, I want it so ...
0
votes
1answer
118 views
Pong horizontal movement algorithm
I was just wondering about the horizontal movement of a pong ball? What is the general algorithm used with this? The ball in my pong game just move vertically and I don't know about the algorithms ...
2
votes
1answer
336 views
2D/Isometric map algorithm
First of all, I don't have much experience on game development but I do have experience on development. I do know how to make a map, but I don't know if my solution is a normal or a hacky solution. I ...
8
votes
1answer
200 views
Showing range on hexagonal grid
Here is the situation.
I have hexagonal board,and a unit on it,with speed or move value 4.Diffrent terrain has a diffrent cost.When i click on the unit,game should show me a move range.
My solution ...
2
votes
4answers
352 views
Detecting long held keys on keyboard
I just want to ask if can I check for "KEY"(keyboard) that is HOLD/PRESSED for a long time, because I am to create a clone of breakout with air hockey for 2 different human players.
Here's the ...
3
votes
1answer
367 views
AI Game Programming : Bayesian Networks, how to make efficient?
We know that AI is one of the most important part of Game Programming. Bayesian networks is one of the core part of AI at Game Programming.
Bayesian networks are graphs that compactly represent the ...
6
votes
1answer
300 views
Action-oriented AI: evasion-algorithm takes much time
Evasion, the process of evading, is the opposite of chasing. Instead of trying to decrease the distance to the target we try to maximize it.
It takes much time while evading multiple objects ...
0
votes
1answer
368 views
Pathfinding using nodes/waypoints without connecting them?
I've been doing some research on pathfinding lately because I want to code a game modification for a game (won't say which exactly) and what I've done is defined a huge list of 3D vectors where a ...
3
votes
3answers
728 views
Bubble shooter falling algorithm
To complete this question about the same color search algorithm, I would like to know if someone knows which is the best implementation for making other bubbles fall when they are no longer attached. ...
0
votes
1answer
172 views
Resizing a dynamically resizable widget with a fixed aspect ratio?
I've been trying to figure this out for hours. It is a bit tricky to explain but I'll try to explain it.
I'm making a game where I have a Window with 3 panels in it. The 3 panels must always be ...
5
votes
2answers
194 views
How to evaluate a user against optimal performance?
I have trouble coming up with a system of assigning a rating to player's performance. Well, technically there is is a trivial rating system, but I don't like it because it would mean assigning ...
9
votes
4answers
5k views
Logic behind a bejeweled-like game
In a prototype I am doing, there is a minigame similar to bejeweled. Using a grid that is a 2d array (int[,]) how can I go about know when the user formed a match? I only care about horizontally and ...