The tag has no wiki summary.

learn more… | top users | synonyms

20
votes
5answers
3k views

Game logic on the server! Good or bad?

I'm currently planning a simple online multiplayer game. And here is the question. Does it make sense to make the whole game logic on the server and just send the input from the client to the server? ...
17
votes
6answers
2k views

Separating game data/logic from rendering

I'm writing a game using C++ and OpenGL 2.1. I was thinking how could I separate the data/logic from rendering. At the moment I use a base class 'Renderable' that gives a pure virtual method to ...
13
votes
6answers
685 views

Moving players simultaneously?

Consider a 2 x 2 grid of squares. A player can move onto a square if: no other player wants to move into the square next turn no other player has waited and is still occupying the square ...
13
votes
3answers
449 views

Technique for objects following each other in complete movement?

I'm wondering how objects follow each other where they move over the previous position of the object in front of them. When the leading object stops, all that are following should stop at their ...
12
votes
2answers
6k views

How to implement turn-based game engine?

Let's imagine game like Heroes of Might and Magic, or Master of Orion, or your turn-based game of choice. What is the game logic behind making next turn? Are there any materials or books to read about ...
11
votes
6answers
772 views

Domain-specific languages for scripting

As most of you know, embedded interpreters for languages like Lua and Python are widely used for scripting game logic, but I haven't seen much information on people going with domain-specific ...
11
votes
4answers
2k views

Synchronization between game logic thread and rendering thread

How does one separate game logic and rendering? I know there seem to already be questions on here asking exactly that but the answers are not satisfactory to me. From what I understand so far the ...
10
votes
5answers
1k views

Data Structures for Logic Games / Deduction Rules / Sufficient Set of Clues?

I've been cogitating about developing a logic game similar to Einstein's Puzzle , which would have different sets of clues for every new game replay. What data structures would you use to handle the ...
10
votes
6answers
614 views

What forms of non-interactive RPG battle systems exist?

I am interested in systems that allow players to develop a battle plan or setup strategy for the party or characters prior to entering battle. During the battle the player either cannot input commands ...
9
votes
3answers
2k views

How to implement the logic of a trading card game's “special effects cards”?

I am trying to write a kind of a trading card game here, in some way, it is similar to Magic The Gathering, or the Yu-Gi-Oh! card game. For those of you who are not familiar with it, basically, in ...
9
votes
1answer
2k views

Separating physics and game logic from UI code

I'm working on a simple block-based puzzle game. The game play consists pretty much of moving blocks around in the game area, so it's a trivial physics simulation. My implementation, however, is in ...
8
votes
3answers
567 views

Why should I separate objects from rendering?

Disclamer: I know what an entity system pattern is and I'm not using it. I've read a lot about separating object and rendering. About the fact that the game logic should be independent from the ...
8
votes
1answer
993 views

Separating logic/update from render/drawing code in a single thread using sleep

I've read that the speed of game objects should not be hindered by FPS but instead should be based on time. How can I seperate the update/draw code to maximize performance without limiting the drawing ...
7
votes
5answers
2k views

How to create games with scrolling?

In games like city story or we farm how do they implement scrolling? To do scrolling using UIScrollView the EAGLView size has to be bigger. In those games EAGLView size look like more than ...
7
votes
1answer
835 views

Scrolling a WriteableBitmap

I need to simulate my background scrolling but I want to avoid moving my actual image control. Instead, I'd like to use a WriteableBitmap and use a blitting method. What would be the way to simulate ...
6
votes
5answers
2k views

What is the logic behind dialog trees?

How do dialog trees actually work? What is connected to what and how to move between lines of speech when a sub-conversation ends? If you have any examples of a basic dialog tree in C#, please post ...
6
votes
5answers
859 views

Whats the most efficient method for controlling entities?

I'm creating a tower defense game and I'm having logistical issues trying to figure out how to best have all of the enitites do their apporiate task. I have considered just constantly looping through ...
6
votes
2answers
432 views

Is it possible to have concurrent collision detection where every entity acts at exactly the same time?

There are many algorithms that can be used for collision detection. In many cases we check for an overlap in coordinates of an entity. If we make a triangle a,b and c. We have 2 entities at a and b ...
6
votes
4answers
1k views

How does an Engine like Source process entities?

[background information] On the Source engine (and it's antecessor, goldsrc, quake's) the game objects are divided on two types, world and entities. The world is the map geometry and the entities are ...
6
votes
4answers
581 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 ...
6
votes
3answers
192 views

Determine if a set of tiles on a grid forms an enclosed shape

Given a set of tiles on a grid, I want to determine: If the tiles make an enclosed figure If the tiles make an enclosed figure when you count the sides of the board as an edge of the figure If ...
6
votes
1answer
565 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 ...
5
votes
3answers
646 views

Save Security with MD5 Hash

I'm working on a flash game that saves your progress locally. These saves can easily be hacked. My solution is to add an md5 hash of all the variables saved into the save file itself. When loading the ...
5
votes
2answers
718 views

Why is my gameloop logic not being restricted to 60 per second?

Here is my gameloop (taken from http://www.koonsolo.com/news/dewitters-gameloop/) which is supposed to limit the game (logic) updates to 60 per seconds and render as fast as the device allows: long ...
5
votes
2answers
597 views

Visual Programming tool for creating game quests

I've found a question for visual script editing software tool for creating game behavior logic, but I am looking for something more flexible. I would like to configure such visual script editing ...
5
votes
2answers
251 views

How to “repeat” a sprite in the gameworld in a random fashion?

I have a platform flash game which includes a level with just two backgrounds which are flipped side by side so that a looping background effect is created. In this I have to include Obstacles. ...
5
votes
1answer
192 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 ...
5
votes
5answers
602 views

C++: Game State Logic other than switch statement?

Executive summary Are there any good tutorials on Game State FSMs, particularly OOP/OOD-based and not switch-statement-based? Summary Is there a practical process for creating a game state engine ...
4
votes
2answers
781 views

Question about separating game core engine from game graphics engine

Suppose I have a SquareObject class, which implements IDrawable, an interface which contains the method void Draw(). I want to separate drawing logic itself from the game core engine. My main idea ...
4
votes
3answers
2k views

Writing Logic behind card games

I'm not a dev noob, but definitely never done anything in game dev. There is a trump based card game we play in town that I plan on coding. I'll be either using python/ajax/pyqt or c++/qt. My ...
4
votes
1answer
193 views

Game Logic Update Order

Is there a commonly-accepted general approach to the order of processing logic updates? My current 2D platformer has objects that implement different concerns, including the following: Notifiable - ...
4
votes
1answer
643 views

Best way to separate display and game logic (threads)

What is the best way to separate render and game logic threads? I'd like to make logic-heavy game (ai, machine learning, and network) in which world updates 50-60 times per second. I want to ...
4
votes
1answer
365 views

rotating an object from sourceAngle to destAngle, both 0-359, clockwise or counter clockwise?

I've got a game object i need to rotate. It's current angle is player.rotation, the destination is targetAngle, both in degress, 0 to 359. I've got a function named rotateDirection(float sourceAngle, ...
3
votes
4answers
2k 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 ...
3
votes
1answer
890 views

Stuck on development of turn-based-strategy game

I am developing a turn based political/military strategy game similar to the DOS game Conflict. I have my game design document completed, but I'm having trouble actually putting together the logic of ...
3
votes
2answers
440 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
2answers
515 views

Opponent car logic in race games

I'm developing a race game in Andengine. I have created a car which player is controlling. But since this is a race game, there should be 3 or 4 car which snatch with the player's car. My question is: ...
3
votes
0answers
132 views

Is there a logic game engine to be used in OS game? [closed]

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 ...
2
votes
3answers
172 views

How can I model a “weapon overheating” mechanic?

I want to create a weapon overheating system very similar to the plasma rifle in Halo. You can watch a video of the plasma rifle firing. What I want to do is to create a flexible logic that can be ...
2
votes
1answer
343 views

Moving sprites based on Delta time - consistent movement across all devices with different resolutions

This is the formula I am currently using to move my sprites across the screen: Examples below only deal with X coordinates to keeps things as short as possible. Initial variable declarations: float ...
2
votes
4answers
2k 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 ...
2
votes
1answer
216 views

Keeping everything within one Activity

Overview My game is currently based on a single activity (rather than multiple activities) and I would like to keep it that way. At the moment, it goes straight into the game at level 1. I will ...
2
votes
1answer
1k 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
2answers
902 views

Should I code game logic separately from game engine scripts

I'm developing a game in Unity3d, economic strategy. I wonder if I should code logic inside unity scripts, or write it as an external module/library? By game logic I mean game model, which describe ...
2
votes
2answers
94 views

Finding diagonal objects of an object in 3d space

Using Unity3d, I have a array which is having 8 GameObjects in grid and one object (which is already known) is in center like this where K is already known object. All objects are equidistant from ...
2
votes
3answers
495 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 ...
1
vote
5answers
2k views

Snake game logic

So I'm thinking about making snake game. I started thinking about it. I figured out almost everything, but I have found one fundamental problem I can not fix myself and I need your help. The logic ...
1
vote
2answers
435 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 ...
1
vote
1answer
382 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
1answer
279 views

How to decide who wins a race?

I'im thinking of building a text-based browser game. A racing game.like F1 or rally. users can set-up a car. thinks like tyres, fuel, driver,brakes. every attribute gets a value. the part where i ...