# Tagged Questions

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.

145 views

### Slots Machine Matching feature

I'm designing a slot machine. I need to find the number of combinations that two matching icons will appear side-by-side in a 3X5 window (3 rows, 5 reels (columns)) A match gives the user some ...
679 views

### What is the appropriate way to implement wobble/balance mechanics in Unity 3D?

We are trying to implement a minigame where the player character sits on a bouncing ball, and needs to a) hit forward to move forward and b) hit left/right to adjust against the the ball's natural ...
1k views

### Resources for designing (not programming) 2D platformer mechanics [closed]

I've been making a 2D platformer in Unity and it's been going great. I have the fundamentals down (and as an experienced programmer, I know how to get the results I want; this is not a programming ...
198 views

### Defensive statistic mechanics

There are many systems where attack statistics are opposed by defense statistics: Strict: HP -= (damage - defense) Threshold: HP -= (damage>defense? damage : 0) Reciprocal: HP -= (damage / defense) ...
1k views

### Mathematics of difficulty acceleration in endless runners

I'm currently working on an endless runner and was wondering about the growth of difficulty in the game. Is the acceleration of difficulty highly specific to games or are there standard growth ...
263 views

### LibGdx Triangle Collision

I'm back with another question. I'm trying to get a collision between an actor and a sprite. With the actor, which only moves upwards and downwards, I've got no problem since it's shape is a ...
366 views

### How can I predict player-to-projectile collisions in Box2D?

I'm making a real time shooting game with Box2D as the physics engine. The gameplay is mostly about trajectory, like Angry Birds. I want to make a slow motion effect and move camera to the player when ...
322 views

### Multiplayer FPS Gameplay: How to encourage players to dispense ammo?

In the Battlefield: Hardline beta, players can now obtain health and ammo directly from other players, without having to ask for it via the command rose. Here's two examples of how asking for health ...
3k views

### How can I encourage players to “talk to” to each other in team-based games?

With the goal of attracting a certain kind (highly sociable, that is) of players, I have wondered what game mechanics require, or at least encourage, players to verbally (I'm assuming an advanced text ...
1k views

### Can a behavior tree represent the same logic as a finite state machine?

So I was just learning about Behaviour trees and I thought they're really cool. So I decided to use them in my games. But what I don't quite understand is: Short: Can everything done in an FSM, be ...
188 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 ...
109 views

### How to manipulate 2d image as different objects

Hello Im very new to this so I don't even know what this process is called exactly. Im posting image of flappy bird here in which it consist all the objects day, night, birds, font etc Here : So how ...
2k views

### What are the reasons for MMOs to have level caps?

In many MMOs players character progression is artificially capped, e.g. by level 60 or 90 or 100 or whatever. Why do MMOs have these level caps in the first place? Why not just allow characters to ...
271 views

### Get stick analogue XY position using Jinput in lwjgl

I want to capture the movement of the analogue stick of the gamePad. is there any equivalent function to this? public void mouseMoved(MouseEvent mouseEvent) { mouseEvent.getX(); //return the X ...
4k views

### Libgdx collision detection and response

I am trying to create a simple platformer game with libgdx. I implemented a collision detection for the player's bounding box with the map's tiles using the Rectangle.overlaps method. In response I ...
251 views

### How to correctly handle multiple movement key presses resulting in double the speed?

I am trying to implement acceleration and drag into my top-down 2D game. The player can move using the WASD keys. Acceleration works fine, but the way I handle the directional velocity causes the ...
575 views

### How do I make a character follow behind another?

I'm creating a game in C++ using OpenGL. I want to add a character into my game who, after meeting the main player, follows the player around. The follower should position themselves directly behind ...
357 views

### Mixing interpolation with extrapolation in multiplayer game

I am creating a multiplayer drag racing game and have difficulties mixing extrapolation and interpolation. To save network bandwidth i am getting information from the opponent only on his button press,...
389 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 ....
211 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 ...
356 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 ...
269 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 ...
77 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 ...
85 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?
200 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 ...
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 ...
5k 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 ...
249 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.
103 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 ...
151 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 ...
470 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 ...
3k 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 ...
155 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 ...
466 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 -(void)callDfs:(int)...
139 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 ...
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 ...
474 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 (...
1k 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 ...
593 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, ...
342 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 ...
134 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 ...
421 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 ...
695 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 ...
533 views

### 2D game with 3D collision?

How do they do this bounce? Looks awfully complicated in 2D.
3k 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. ...
309 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 ...
868 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 ...
1k 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 ...