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

7
votes
5answers
577 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
398 views

2D game with 3D collision?

How do they do this bounce? Looks awfully complicated in 2D.
5
votes
1answer
779 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
129 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
291 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
629 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
225 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
90 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
114 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 ...
4
votes
3answers
491 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
186 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
191 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
333 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
99 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
184 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
489 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
1k 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
226 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
886 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
85 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
216 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
317 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
115 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
523 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
298 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
167 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
102 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
389 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
95 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
224 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 ...
0
votes
1answer
86 views

Dynamically editing a movieclip at runtime

I am trying to make a flash game(actionScript-3 if it matters) to test what I learned so far. And, in the game, I want to make the character(a robot?) customizable. The first solution I found was to ...
1
vote
3answers
198 views

How to properly handle equipment enchants

In my game, the player starts with a set of equipment and unlike many other hack-and-slash RPG's, this base set of stuff never changes - the player never acquires a new weapon or armor. The only way ...
4
votes
1answer
358 views

Path finding in games

I am writing my term paper about Path finding algorithms in games, and i've got a couple of questions, hopefully you people could help me out with those ;) So, i've done a little bit of searching ...
3
votes
4answers
3k views

Java - Best Implementation KeyListener For Games

I am working on a game using only the swing and awt packages. Note I can only use the default Java libs. Meaning I have to use KeyListener. I have imported KeyListener properly, however, it is still ...
0
votes
2answers
154 views

Replay on game like “impossible game” [duplicate]

So I am making a simple game like "the impossible game" where the character just moves forward(from a 2D prespective) and the only thing you have to do is press the screen to jump at the correct time ...
-1
votes
1answer
193 views

Get distance between the edge of screen and a moving sprite

How to get the distance between the edge of the screen and a vector moving sprite? I want to get the distance between my moving sprite and the edge of the screen so that when my sprite touches the ...
1
vote
1answer
390 views

Hill-jumping game mechanic like Tiny Wings

I'm a huge Tiny Wings fan and I'd like to understand the game mechanic at a deeper level. What are some good resources for the basic Box2d (or similar) physics behind the hill-jumping game mechanic? ...
1
vote
0answers
135 views

Steering behaviour [closed]

So I found this steering behaviour code in a book but i dont really understand the last part of the code what exactly is he doing because im unfamiliar with c++. Why would you need to ...
1
vote
1answer
167 views

Story line implementation in a game

Say I have the general engine working and the only thing missing is a story line. Let's take the Pokemon games as an example: How would I implement surfing if I don't want to check wether the next ...
-1
votes
1answer
115 views

Game mechanics based on similar game [duplicate]

I want to make an iOs game that is based on an online flash game. There will be quite some differences, but the game mechanics will be extremely similar. Do I have to worry about getting sued by the ...
3
votes
1answer
320 views

Pygame: circular motion with Bresenham's algorithm

I'm trying to figure out a way to move an object in a circular path. I read about Bresenham's circle algorithm, but all the codes available online draw an entire circle. For my game, I want it so ...
0
votes
1answer
455 views

Pokémon character turning / facing: How is it achieved? Movement is already done though [closed]

You know that when the player playing Pokémon games want to change the facing of the main character, one would simply tap on the directional pad (D-pad) on the Game Boy (Color/Advanced/Advanced SP) or ...
1
vote
1answer
442 views

How to handle a player's level and its consequent privileges?

I'm building a game similar to Mafia Wars where a player can do tasks for his gang and gain experience and thus advancing his level. The game is built using PHP and a Mysql database. In the game I ...
-1
votes
1answer
95 views

Specifying 3D objects in a game [closed]

I have hands on experience in OpenGLES 2.0 , OpenGL and wish to apply the same in a 3D game development in Android. My idea is to develop a Combat game having fighter planes. I am trying to create a ...
0
votes
1answer
94 views

Follow behavior with randomization factor

I'm trying to make enemy follow player as in picture below, the code below is code for following player with steering behavior ( i'm not sure it steering works tho but it does follow player ), how ...
0
votes
5answers
1k views

Collision detection logic

Edit 2 In the following picture sprite1 (the red square) is hitting the platform from the left, so: sprite1_rightEdge>platformSprite leftEdge would be true, so I can simply reposition ...
0
votes
3answers
1k views

Fruit Ninja Swipe

I now have nearly completed a Cut The Rope type game. I need only a swipe mechanic to cut the rope, both the logic and the visual effect. Suggestions would be most welcome. I only need a concept for ...
0
votes
2answers
316 views

What beginner level game should I practice developing that has all the basics of game development? [duplicate]

I am a fresh graduate of Computer Science and am very nervoud for my skills test next week. So I have only about 4 days left till the exam and I really want that job which is game development. They ...