A set of rules that govern an in-game experience. Game design is an effort to come up with game mechanics that allow for players to have a fun and engaging experience.

learn more… | top users | synonyms

0
votes
0answers
35 views

Calling interactivity functions from object classes

Let's say I have a class object_door. An instance of said class is now in the game world in a locked state. Now to enable the player to open it, he needs to attempt to pick the lock. So I was ...
0
votes
1answer
182 views

Determine speed of sprite

I'm trying to calculate the speed of my sprites in Cocos2d but I'm having some difficulties. I'm not sure which units of time/speed cocos2d uses. My background sprite moves 2 positions to left each ...
0
votes
3answers
170 views

How necessary are shader coders? [closed]

I know that gameplay mechanics programmers, either directly working with source or with scripting are needed, however there are so many shaders written already that I would imagine you could find ...
-1
votes
2answers
160 views

What happens when a character attacked in fighting game?

I went through many websites explaining fighting game systems, frames, hitboxes, but i couldn' find the answer so i ask here. Basically fighting game hitbox system works like this : 1.Player A ...
0
votes
1answer
150 views

Recommended list of games to develop at the beginning? [duplicate]

I am looking for simple games that I should develop to learn the basics of how different game mechanics work. I have read in many places that it is good to make Pong. Is there a recommended list of ...
1
vote
1answer
64 views

How can I assist players navigating narrow grid junctions?

I'm looking for a technique to help the player navigate a narrow path while the character is in constant motion. When changing direction in junctions, it's pretty hard to time the direction change for ...
1
vote
1answer
66 views

Clay Jam continuous path/tap

I saw this game Clay Jam, that the user can create a path in the sand. The path is a continuous one, and it can varies from a single point to curves. How one can develop smooth and continuous paths? ...
1
vote
2answers
132 views

Managing and rendering bullets

I'm developing something similar to Galaga and I'm not entirely sure how to "manage" the bullets i.e. what data structures/algorithms/approaches to use when rendering them on the screen. Let's forget ...
23
votes
6answers
2k views

How can I introduce time pressure on the player's decisions?

I am designing a hacking game, in which the player usually can take his time thinking about how to overcome the obstacles that he/she currently faces. However, I decided that besides coming up with ...
22
votes
2answers
2k views

How do I make a character capable of walking on walls?

I am trying to get a character to move like a spider: Given a rising slope which a ball would normally not be able to roll up, the spider would slowly crawl up. Similarly, given a mid-air rectangular ...
1
vote
1answer
152 views

Is the “Match-3” mechanic unpatented?

Can I use a match-3 mechanic in my commercial game without being sued by some company holding the patent? I will add some extra features to the mechanic.
-1
votes
2answers
83 views

Elemental damage/resistance rates that exceed 100% [closed]

In games there may be the idea of resistance/weakness to certain types of attacks. For example, some games have triangles where A beats B, B beats C, and C beats A. Others may implement this in the ...
2
votes
0answers
106 views

Why do unidentified items seem to solely exist in roguelikes? [closed]

Playing a variety of games I noticed that some concepts are "trapped" in the realm of roguelikes. One of the most intriguing game-play elements in roguelikes is the unidentified item. The unidentified ...
0
votes
0answers
22 views

make ball to bounce [duplicate]

I'm making a game in GameMaker. I would like to know the code needed or the condition for a line that the player would draw and then a ball would bounce on it
5
votes
3answers
393 views

Representing realistic population

What's the best way to represent a realistic population number (e.g USA:317,569,000) in game? For example, Civilization your city has 1 Citizen. Obviously, a city can't just have one person in a city ...
10
votes
5answers
2k views

Why do modern games not feature extra lives? [closed]

In the late 80s and early 90s, most games had an extra life mechanic. The player started with limited lives (often three) and dying depleted one of them. If they still had some remaining, they would ...
1
vote
0answers
127 views

LibGDX polygon caching

I am developing an Android game using LibGDX and I have big world map made of polygons. I use PolygonSprite and PolygonSpriteBatch, when I render map, I get 30-35fps and it feels laggy. I wonder if ...
3
votes
1answer
272 views

Verify which bubble is connected to top using DFS

I am working on a bubble shooter game in this game i have implemented searching using DFS as suggested in this link, and this is working fine. Update Here is my code for DFS ...
0
votes
1answer
122 views

Game states vs calling new activities

I am trying to decide what the best method is to call "level complete-screen" and "game over-screen" in my real-time android 2d game. Currently I am using game-states and only updating my game when ...
0
votes
0answers
455 views

NavMesh agents pushing other NavMesh Agents in Unity Pro

Using the NavMesh system in Unity, I created pathing system for my player character as well as the enemy AI. When a group of enemy NavMesh Agents surround my player character, they can be pushed out ...
-1
votes
1answer
39 views

Centering three rectangles of different size

If I have 3 different sprites, that each belongs to the same sprite but with different animations type. Each has a different width, height, in the sprite sheet. How do I adjust the 3 using math, to ...
6
votes
3answers
378 views

How can I distribute powerups “fairly”? [closed]

I'm implementing a Bomberman-esque game in which players try to eliminate each other on a square tile-based arena. I'm currently implementing powerups that give the player who collected them a bonus ...
1
vote
2answers
183 views

How can I make different levels in a game?

Let's say I was working on a platform game. Each level has an exit. When the player reaches the exit, the game switches to the next level. What would be the best way represent and switch to the next ...
3
votes
2answers
316 views

How to implement special weapon and armor effects (ex: vampiric, holy, damage shield, thorns)?

I'm working on the inventory system for my game, and am interested in how do I implement additional weapon and armor properties that are not just damage or armor? If all I have is damage and armor, ...
-1
votes
2answers
188 views

What is a Game Engine? [duplicate]

I am new to Game Development, All I have developed is some 2d Games, using Game Maker by YoYo Games. There game development is much more easy, just as simple as Drag and Drop. But, Now I wish to ...
0
votes
1answer
105 views

What would be a suitable way to model projectiles in an action game?

I'm designing a 2d fighting game in which characters can shoot out some projectiles like arrows, ninja knives, Hadouken (like the one in Street Fighter), etc... My current character design is ...
1
vote
2answers
279 views

How can I tell the player that a key or other item can be discarded?

We're working on a survival horror classical Resident evil (1, 2, 3, 0, REmake) type of game - link. I'm using Unity3D with C#. There's something that's kinda puzzling me - more a game design ...
7
votes
5answers
597 views

Why would one have “waves” in each stage of a tower defense game?

For example, in Plants vs Zombies, the zombies come in waves. If I recall, there's always at least two waves. The first and easier wave and then when you get 90% through the stage there's a "final ...
3
votes
3answers
416 views

2D game with 3D collision?

How do they do this bounce? Looks awfully complicated in 2D.
5
votes
1answer
1k views

How to balance experience gain in an RPG

I am currently developing an RPG game with a classic experience-points and levelup mechanic. The player kills monsters, gains experience points, levels up when they collect enough and become stronger. ...
4
votes
1answer
163 views

How to manage sleep/awake state of physics body

I have a loop, which updates all the physics, inside the loop I'm updating the position of the objects, first thing is the gravity, which pulls all the objects to the bottom. Now my question is, how ...
1
vote
1answer
416 views

I'm not sure why my shape is not moving

So I am trying to teach my self how to my develop games with java by cloning older games. At the moment I am cloning Pong, and I can not figure out why my paddle is not moving. The move method should ...
8
votes
2answers
705 views

How do I choose the scaling factor of a 3D game world?

I am making a 3D tank game prototype with some physics simulation, am using C++. One of the decisions I need to make is the scale of the game world in relation to reality. For example, I could ...
3
votes
1answer
256 views

Logic for selecting random rewards [closed]

I am making a RPG game and I am seeking a bit of information on how to grant players random rewards, such as game items, weapons, gold, etc... after defeating a monster, or a NPC of some kind. The ...
0
votes
0answers
129 views

new direction math for android sample app Snake [on hold]

I am playing with Android sample app Snake. The code for the original snake-move direction math is below. It is very simple. The direction is determined by which quadrant the touch is in based on the ...
1
vote
0answers
125 views

Creature experience gain RPG [closed]

Imagine some creatures that fight and gain experience when they win. After some experience, they level up. Im trying to define a well balanced fair model. I Designed 3 types of growing (Slow Medium ...
5
votes
3answers
510 views

Skill vs. Luck, the ratio and its measurement

Gamer buddies, is there a term to describe the level of variance in a game, in comparison to luck. The card game war would have 0 skill and 1.0 luck because the player cannot affect the game. I can't ...
2
votes
1answer
199 views

Setting a displacement or offset between Snake segements

I have a problem in maths or I do not know. I have drawn few circles that simulates the body of a snake, the head of the snake moves and others should follow. but the is no offset or displacement ...
2
votes
2answers
1k 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 ...
1
vote
1answer
224 views

How could I figure out the shortest way to turn, and whats the angle? [duplicate]

I'm creating some robots for my tank game. I want them to find each other and shoot each other down, so I'm trying to implement a way for them to turn towards each other, and turn the shortest way. ...
2
votes
2answers
369 views

Designing spawning system

I played this game recently http://www.kongregate.com/games/JuicyBeast/knightmare-tower and I am amazed by the way how different monsters are beign spawned. I personally developed my own shooter game ...
0
votes
1answer
102 views

watching for changes in object state

I'd like to know what others do to watch for changes in object states while the game is running. Say you have an object and that object has a timer. The timer completes. What is the best way to know ...
5
votes
1answer
190 views

Scaling a game world both for realism and for mechanics

I am currently working on a turn-based 4X game, and one of the things I quickly ran into was a question of scaling. On one hand, I want things like realistic sizes (having some idea of what each tile ...
7
votes
2answers
588 views

How to synchronize actions like jump in multiplayer?

I am a newbie game developer and I have been researching about multiplayer games. I observed that there's always some latency, the players always get updates from past actions. But there are ...
0
votes
1answer
2k views

Android Bitmap: Collision Detecting

I am writing an Android game right now and I would need some help in the collision of the Pawns on screen. I figured I could run a for loop on the Player class with all Pawn objects on the screen ...
-1
votes
1answer
238 views

Human to Monster Morph on 2D graphics [closed]

A friend and I are writing a topdown RPG called NecroMonster. In the game when you defeat an enemy you can take its shape (basically morph into it) and we dont know how to make this look right. First ...
1
vote
1answer
1k views

libgdx: how to manage entity classes [closed]

Good day sirs, I know this is a newbie question but I really need to ask it. I've been reading a lot of sample codes on libgdx, and I have seen entities(player, enemy, boss,etc.). my question is what ...
1
vote
0answers
89 views

Text-based game based on progress, lottery, collecting and achievement dynamics [closed]

I'm playing with an idea for a game I want to develop for a text-only, turn-based environment (think instant messenger). The game will be driven by the progress, lottery, collecting and achievement ...
5
votes
3answers
233 views

Serialization of objects problem

i have a problem with serialization (saving and loading game variabiles), when i save evreything seems to be saving correctly but when i try to load it only detects first 3 objects i saved and the ...
3
votes
2answers
365 views

Should I use delta time (elapsed time between frames)?

Unfortunately I cannot recall where but I definitely read it somewhere, that the use of delta time should be avoided for some reason. Is there really a scenario where controlling animation or other ...