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

1
vote
1answer
77 views

Most effective approach when creating % chance of something

When dealing with % chance in a game what are the most effective ways to achieve this? When I use random.random()[python] or Math.random()[javascript] and use an if/elif/else conditional it seems like ...
15
votes
3answers
1k views

Peer-to-peer hostless competitive games of chance? [closed]

I'm wondering - have any games been ever created that are: peer-to-peer without one peer being designated as host competitive (not cooperative, players play against one another) provably fair (there ...
6
votes
2answers
199 views

Why have the player pick up loot manually?

From a game-design perspective, I was wondering what the mechanic of manually picking up items off the ground does for the player. Keep in mind that items that fall on the ground can most likely be ...
6
votes
7answers
707 views

What game mechanic can I use to show that the player character is bored?

I'm designing a part in my game where the player must notice that his character feels bored about a certain mundane task he is doing, without being boring for the player. By observing the game ...
30
votes
8answers
10k views

How can a game handle all characters at once?

This question is just to gain knowledge about how a game can handle so many characters at once. I am new to gaming so I beg your pardon in advance. Example I am creating a tower defense game in ...
1
vote
1answer
54 views

Correct order of entity updates and collision detection

I'm trying to simulate a number of units walking in a single file. My update loop looks like this: for each unit: n = compute next position if n is empty then move to n If I start the loop ...
3
votes
5answers
497 views

Time/duration handling in strategic game

I'm considering developing a space opera game, having already done some game design. Technically, though, I'm coming from a business applications background. Hence I don't really know how I should ...
0
votes
1answer
20 views

Canvas/Paint Mechanic

I am currently working on an idea for a unity game app with a canvas mechanic. I understand I may have to use particles for the brush/paint f/x however I can not think of a way to add collision ...
3
votes
1answer
431 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 ...
1
vote
3answers
181 views

Modeling player mechanics with a finite state machine

I have three states standing walking jumping When I press D standing transitions to walking. The velocity will be set to a defined value and the player moves. When I release D walking transitions ...
0
votes
1answer
216 views

Moving CCNode with constant speed in cocos2d

I want to move the object (CCNODE) with constant speed in any direction , what i have did till now is applied a force to object at start to get it moving and set elasticity as 1 and friction as 0 to ...
0
votes
2answers
1k views

How to make a gameobject Scale up from another GameObject script

hi there im having a rought time with this code, trying to make a gameobject grow in scale from touching this one, and when a set amount of scale is reached destroy this game object ( the one who ...
5
votes
4answers
382 views

How to design a turn-based game which is easy for humans but difficult for AI?

Until recently, Go used to be of the last bastions of turn-based no information-hiding games where world-class human players could not be defeated by computers. But now this bastion has fallen, as the ...
75
votes
28answers
16k views

How can I discourage camping while still supporting a “sniper” style of play?

I am trying to add features into a third person shooter that suit a sniper style of play, in addition to the current rush/deathmatch style it was designed for. The current gameplay is similar in style ...
4
votes
1answer
317 views

What do you call the Call-of-Duty-style health system?

In games like Call of Duty (and many, many other FPSs), there is no visible health bar; instead, as the player takes damage, their vision is slowly obscured by blood that seeps in from the edges. As ...
15
votes
5answers
4k views

How do they made Pokémon games so flawlessly balanced? [closed]

I find it hard to believe how well balanced the Pokémon games are. Not just within the games, where you'll find amazing balance from the very beginning to the very end, but, surprisingly, even when ...
1
vote
3answers
126 views

What is the difference between “stealth” and “social stealth?”

I was recently researching the stealth mechanics of several games and I stumbled across the distinction of "stealth" (eg. Splinter Cell series) vs "social stealth" (eg. Assassin's Creed series). What ...
0
votes
1answer
65 views

What technique should I use to implement the following type of “diggable” terrain?

I'm trying to replicate a certain game mechanic from the game Diggles. This game takes place in a vertical cross-section of the earth and allows the player to dig tunnels and caves into the ...
0
votes
1answer
60 views

How to start encouraging team collaboration?

I am working on converting a single player game to multiplayer, but I am concerned that if I simply do a 1-1 conversion, even in modes with "multiple players" there won't be any incentive for team ...
1
vote
2answers
62 views

Adversarial Search AI having problems with too many choices

I'm a game designer working with a set of coders trying to create a card game. Currently we're trying to implement a drawing mechanic in which you choose which card you draw, but the Adversarial ...
-1
votes
1answer
39 views

Open-World objective/goal idea [closed]

My game is an open-world. But i'm stuck on the goal/objective. Is there a list of goals/objective for an open-world games?
1
vote
1answer
68 views

Resolving A counters B, who is countered by C, who could be… in an ATB

There are 4 player character slots and 8 enemy slots. I'm using a combat system that's similar to ATB from FF4; You select a move, there's a waiting period depending upon the move, during which other ...
0
votes
0answers
33 views

Doing collisions on both axis with java overlap

I'm making a top down game from scratch and just found out about the java rectangle overlap method that would work great for collisions. However, after the overlap happens, I need to check for which ...
11
votes
3answers
4k views

Attack vs Defence and who is the winner? [closed]

I am in the process of creating a new simple game in mobile and I've spent several days on the following part. For simplicity, let's say that I have two fighters. The only attribute of them is ...
7
votes
2answers
354 views

Letting the user draw a Polygon Body and Image

In my game, I want to provide the user with a drawing feature. By free hand drawing, the user creates a polygon shape. Then, in my game implementation, I have to create a body for the found vertices ...
0
votes
2answers
107 views

Is it legal to use the game mechanics of risk if I don't use their name? [duplicate]

I'm currently developing an idea for a conquest-style board game similar to Risk. I was wondering if I would be legally entitles to use some game mechanics that appear in that game so long as I don't ...
-1
votes
2answers
39 views

How can I get information from a function

Okay, so if I use this code to randomly spawn balls at the top of the screen, how do i get them to move down: var max_bollar = 10; var i = 0; var timecounter = 0; var bollarcounter = 0; var ...
0
votes
2answers
84 views

How can i call a thing a lot of times (game: dodger)

Hey I am new to coding and i want to know how to get the same thing to hapen until i "say" stop. The game is that you need to dodge stuff that is falling, i was thinking that i could use a while loop ...
46
votes
7answers
11k views

What's a way to implement a flexible buff/debuff system?

Overview: Lots of games with RPG-like statistics allow for character "buffs", ranging from simple "Deal 25% extra damage" to more complicated things like "Deal 15 damage back to attackers when hit." ...
12
votes
4answers
2k views

Games where the story continues via progeny [closed]

In Phantasy Star III: Generations of Doom for the Sega Genesis you periodically marry and then the story carries on through your sons/daughters. In Rogue Legacy when you die you again play on through ...
0
votes
0answers
34 views

“following” Object not Interacting with the game world correctly

So I finally have my object detecting the distance between itself and the player. If within range, the following enemy will chase the player down and touch it. (This will kill the player) However, ...
0
votes
1answer
39 views

“Following” Object is acting Strangely?

So I recently designed an enemy that will follow the player when he comes within a certain distance of the object. However, there are times when the player comes in range, only for the "follower" ...
5
votes
2answers
130 views

Decoupling input from game states / entity behavior

I'm looking for a way or general best practice advices for decoupling the architecture of my game, in the example below the input from the current game state workflow / entity behavior. While I'm all ...
2
votes
1answer
182 views

Is flowchart correct way to visualize gameplay?

I made the following flowchart in draw.io. it's just a simple arcade shooter. cardboard zombie pops up, bang, or not. I don't have any official education in game production. So, are there other ...
1
vote
1answer
219 views

How Can I Find a Shape on 2D Array?

For the code in my test project, I want to find 2D[,] array shape on the char[][] list. I created an actual map with 'char[][]' array. So, how can I find a tileChar's shape on the worldChar array? ...
6
votes
2answers
167 views

RPG Factions - Friendly/Hostile check

I'm having some trouble checking if one faction is hostile to another faction in my RPG. I'm using enums for my factions and relations but I feel like there's a better way to approach this. Currently ...
1
vote
0answers
79 views

Should I compute impact damage with energy or momentum?

My game uses physics (Box2D in particular). Just about every object in the game can be destroyed, and the primary method of combat is by slamming objects into one another at high speed. It makes ...
26
votes
8answers
4k views

What makes a good jump scare?

I am working on a game and would like to include a few jump scares. So here is a rather simple question — What makes a good jump scare and when and how should they happen?
-1
votes
1answer
51 views

How are pocket dimensions created in multiplayer games? (programming aspect) [closed]

How do multiplayer games deal with multiple instances/dungeons/regions? I'm familiar with server clustering which is what larger games use such as Eve and World of Warcraft. How do games such as ...
2
votes
2answers
65 views

Should I be returning weak/shared_ptrs or unique_ptr's to my resources?

A friend of mine told me instead of normal pointers, I should use unique_ptr, i asked him why unique_ptr's if some resources are going to be shares, like multiple grass tiles, or enemies. I currently ...
7
votes
1answer
392 views

Literature about Open World Games, Freedom to Choose [closed]

I'm doing a diploma thesis about the development of games with freedom to choose or open world. Topics will be i.e. development issues in programming and the design itself, mechanics etc. For that I ...
0
votes
1answer
66 views

How to Implement a Timer for my Prefab for Roll-a-Ball Game (C# in Unity)

I am trying to create a public float timer that senses when the particular prefab has not been there for a certain amount of time. Then, it will replace that particular object. The goal is to ...
6
votes
1answer
209 views

Orbital mechanics: orbit as a function of time. Universal variable formulation?

I am trying to model a two dimensional orbit for a two body Kepler problem but have gotten stuck when introducing the time variable. For a satellite with known semi major axis (a), eccentricity (e), ...
1
vote
1answer
55 views

Click counting and actions based off count

So I have a button that is the 'mine' for my incremental game. I would like to track the number of times that it is clicked and be able to do two things: Have events happen say every 5 clicks. ...
0
votes
2answers
498 views

Effectively implementing a game view using java

I am writing a 2d game in java. The game mechanics are similar to the Pokémon game boy advance series e.g. fire red, ruby, diamond and so on. I need a way to draw a huge map maybe 5000 by 5000 pixels ...
2
votes
1answer
74 views

Approximating strength and hardness of alloys

I do not have any formal education in metallurgy, but I am trying to make a game mechanic based on it. I need to be able to alloy together different metals and alloyable materials such as carbon in ...
-1
votes
2answers
105 views

How to model an Attack( ) action? How to model combat? In general, how objects communicate?

I never understood how would you elegantly describe two people talking in OO. I think this question extends to how similar objects communicate in general. I am designing a game now and Units have to ...
3
votes
1answer
68 views

Setting 4 different enemy spawn zones off screen

This is my first game, so I really appreciate all the help. I want to create four enemy spawn zones for enemies and this areas are off screen. The enemies are coming from left, right, up and down, ...
1
vote
0answers
50 views

How can I detect sprite collisions out of screen?

I am creating an Android game using andEngine library. I have enemies coming from out of the screen into the screen. I already know how to detect collisions, but is there any method I can use to ...
4
votes
3answers
162 views

Game Design - Challenging a player in an RPG-like game without removing easy cards

I'm designing a card game that I'm implementing on the computer that mirrors some gameplay aspects of dungeon crawlers and RPGs. The player's object is to survive as long as possible from the ...