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.

learn more… | top users | synonyms

21
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
145 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
78 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
101 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
21 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
389 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
6answers
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
119 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
255 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
121 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
402 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
365 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
160 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
287 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
182 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
104 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
268 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
592 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
406 views

2D game with 3D collision?

How do they do this bounce? Looks awfully complicated in 2D.
5
votes
1answer
939 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
151 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
341 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
666 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
238 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
109 views

new direction math for android sample app Snake

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
119 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
504 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
194 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
210 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
350 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
101 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
189 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
530 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
230 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
224 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
349 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 ...
-3
votes
1answer
117 views

Undefined fireball movement behavior

Demonstration video I try to do after the player shoot 10 times of fireball, then delete all the fireball objects and recreate a 10 new set of fireball objects. I did it but there is a weird bug ...
10
votes
2answers
532 views

How do I make good guy attacks only hit bad guys and vice versa?

My game has many different type of good guys and many different type of bad guys. They will all be firing projectiles at each other but I don't want any accidental collateral damage to occur for ...
2
votes
2answers
305 views

About making damage between units

I am making my own Tower Defence game engine. I havent built one before and I don't know lot of stuff how games work. I will take Starcraft as an example. You have a marine shooting a zergling from ...
3
votes
1answer
184 views

Algorithm for optimal control on space ship using accelerometer input data

Does someone have a good algorithm for controlling a space ship in a vertical shooter game using acceleration data? I have done a simple algorithm, but works very badly. I save an initial ...
0
votes
2answers
106 views

Java game: jumping glitch on multiple collisions

I need help with checking for intersections in a game I'm creating. When a character collides with a single obstacle on the screen everything works as intended, but when multiple obstacles are added ...
4
votes
1answer
404 views

Making a game “resize-safe”

It's one thing to get the graphics aligned perfectly, it's another to do this for every single resolution and not take too much time and/or make the code unreadable due to size. Games like Battlefield ...
-1
votes
1answer
56 views

Reverting the view SDL

So in my SDL application, which I setup for OpenGL, if I were to do the following code: glBegin(GL_QUADS); glVertex2i(0, 0); glVertex2i(50, 0); glVertex2i(50, 50); glVertex2i(0, 50); glEnd(); The ...
0
votes
1answer
100 views

XNA GameDefaults Class Settings

Are items such as the GameDifficulty enum, game settings, and other things in the GameDefaults class used for a lot? If so, is there a way to edit them or anything of the sorts?
-2
votes
1answer
268 views

How to add difficulty levels to a Guess The Number game using rand()? [closed]

User guesses a random number (between 1 and 100 or 5000 and 25,000 depending on difficulty) that the computer picks. User selects difficulty from list, difficulty (1, 2, 3, 4) is assigned to int ...