The logic tag has no wiki summary.
-1
votes
0answers
31 views
Logic flow of rectangle to N-rectangles collision [closed]
I have a really hard time here figuring out the error in my program.
My code only works in 2 rectangles but if I increment number of rectangle, stricken of movement, don't work at all, such as, when ...
6
votes
8answers
405 views
Randomly spawning objects so they don't intersect
I've got this code for spawning enemy objects in random places:
for (int i = 0; i < 7; i++){
enemyObject = new Enemy((r.nextInt(Main.WINDOW_WIDTH), r.nextInt(Main.WINDOW_HEIGHT));
}
The ...
-1
votes
0answers
82 views
Logic in an Object Oriented Architecture [closed]
Good evening.
Recently I've been thinking of making a simple TBS game in Java for fun and I was wondering if my logic is correct.
Basically, I have the following classes:
public abstract class ...
0
votes
3answers
77 views
Where to run logic update in openGL ES?
Using Canvas with Surfaceview I had a run() method where I would essentially do the following:
onDraw();
update();
Where onDraw method would do the rendering and update would update all my game ...
6
votes
4answers
444 views
Machine Learning in AI for benefit analysis round to round in a rummy like game
For fun I am building the game 5 crowns. Well I've gotten to the point where I am implementing the rules for the computer players.
I've found that my decision tree has so many nodes on it that I ...
2
votes
1answer
122 views
Pausing and resuming in Unity
I've been writing this code quite late so please bear with me.
I'm trying to pause the game and show a menu when I'm inside a collider and then when i press a key it should unpause the game and ...
2
votes
3answers
164 views
How To Export Blender Game Logic for Controlling Actor Actions?
Question:
How does one export Game Logic ("Sensors") that Unity references for controlling actions from Blender's "Action Editor" or "Dope Sheet"?
Problem Statement:
I have a Blender model that has ...
2
votes
3answers
257 views
Entity/Component based engine rendering separation from logic
I noticed in Unity3D that each gameObject(entity) have its own renderer component, as far I understand, such component handle rendering logic.
I wonder if it is a common practice in entity/component ...
1
vote
1answer
182 views
In 2d game logic, should I use pixels or world coordinates?
Currently in my game I handle the logic (collisions, movement) using pixels but I find it very limiting espiecially when thinking about variable speed.
For example Box2D requires you to use ...
1
vote
4answers
236 views
3-in-a-row or more logic
This is a bit more difficult than it seems and the one other post on here isn't sufficient. You have a row of n items, and each item could be any one of 5 colors. You need to find if there are any ...
1
vote
2answers
246 views
How to handle “weapon slots”?
I'm working on implementing an RPG engine, and I'm trying to figure out the best way to implement equipment. The really tricky part is the hand slots.
It would be easy to give a character one hand ...
2
votes
2answers
222 views
Derive a algorithm to match best position
I have pieces in my game which have stats and cost assigned to them and they can only be placed at a certain location.
Lets say I have 50 pieces.
e.g.
Piece1 = 100 stats, 10 cost, Position A.
Piece2 ...
3
votes
0answers
106 views
Is there a logic game engine to be used in OS game?
Ludocore is a paper where a research on a logic game engine is presented.
For game I cooperate on -- Opendungeons -- it would seem fine to have separate abstract layer of code which would deal only ...
0
votes
1answer
144 views
Logic For camera Movement
Every time I move the hero on my screen I increment a screenOffsetX and a screenOffsetY.
These add 1 if you move right, -1 if left to the sceenOffsetX. Add the screenOffestY +=1 if down, -=1 if up.
I ...
5
votes
1answer
129 views
Physics/Logic behind self-bounce
I have a game that I am currently working on and I have a problem.
What would a ball look like when it makes itself bounce. Say, for example that the ball had its own "inner power", was made out of ...