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

3
votes
4answers
5k 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
168 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
225 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
445 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
1answer
503 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
0answers
146 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
175 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
118 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 ...
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 ...
3
votes
1answer
392 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 ...
-1
votes
1answer
96 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
95 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
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 ...
4
votes
3answers
511 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 ...
0
votes
2answers
343 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 ...
2
votes
4answers
536 views

What are some good examples of exuberant in-game instructions for telling the player to repeatedly smash a button?

What are some good examples of exuberant in-game instructions for telling the player to repeatedly and quickly press a button or perform an action? I'm especially interested in examples in retro games ...
2
votes
3answers
168 views

Generate slot combinations

How do you generate combinations in slots to achieve a wanted probability of the user winning? Say, you decide that he should win $200. How do you generate combinations that'll cause winnings ...
0
votes
1answer
456 views

Pong horizontal movement algorithm

I was just wondering about the horizontal movement of a pong ball? What is the general algorithm used with this? The ball in my pong game just move vertically and I don't know about the algorithms ...
1
vote
2answers
542 views

Single or Multiple Behavior Trees?

I just finished coding a generic Behavior Tree structure for my games. My question is, when creating behaviors for enemy AI's, do I create one large behavior tree with every possible configuration as ...
6
votes
1answer
672 views

Spaceship interiors: How to approach, implementation-wise?

I'm creating a 3D space game using Ogre3D for graphics with C++ and one of the features is to be able to freely wander around spaceship interiors, but I am lost with how to implement it. Here is what ...
0
votes
1answer
147 views

Collision and gravity problems

So this is an easy question. I need to implement gravity in my game but where I'm stuck is what variables do I need in my Entity object for the calculations and a good algorithm that I can use for ...
1
vote
1answer
545 views

Implementing powerups for my Breakout clone

I'm making a simple Breakout clone in Python that will have very many powerups/powerdowns (so far I came up with 26). Some will affect the paddle (paddle missile, two paddles, short paddle, etc.), ...
20
votes
5answers
2k views

Spreadsheets in Game Design?

There have been two instances from the past two weeks that I've heard from well known successful game developers that they use spreadsheets when designing games. The first being David Whatley in ...
-6
votes
2answers
811 views

Moving a sprite diagonal?

I wonder how I should increase and decrease the value of xPos and yPos to be able to move a sprite object diagonal and in different angles? canvas.drawBitmap(image, xPos - (image.getWidth() / 2), ...
0
votes
1answer
120 views

How do I check for non tilted 2D rectangle collision?

I'm trying to find out how to check collision with different rectangles. Now the cubes I have have a x, y, height, and width to them. So it might look like this on the screen: And not like this: ...
4
votes
2answers
255 views

Game Design Issue: Special items implementation

I have a Match Two game similar to the bejeweled board. I am rewarding the player on speed of score. If he scores X in Y time , he gets a bomb. The time window is not rolling but discreat. I check ...
21
votes
15answers
2k views

How to discourage micromanagement in strategy games?

When designing a strategy game (or one in a similar genre), how do you avoid having your players focus almost entirely on micromanagement? What should be done and what avoided in gameplay mechanics?
2
votes
1answer
399 views

Shooting Bullets Around a Sphere

I currently have a ship that can orbit around a sphere freely controlled by a joystick. There is a separate joystick that controls the gun and starts shooting when it is touched. Right now the ...
1
vote
2answers
458 views

XNA Game Timer Help

How do I set a game timer in XNA? I need it to keep the game in sync no matter the lag or frame rate to prevent one moment to be normal but the next everything is sped up.
1
vote
5answers
2k views

how to rotate enemy to face player? [duplicate]

Okay so i havebeen rotating my enemy to face the player using float targetrotation = Math.Atan2(playerpos-enemypos); enemy.rotation = targetrotation; (<this line of code i want to change) This ...
5
votes
1answer
896 views

RPG game engine. Skill application calculations

Short preface I am a part of a small team which is entering game development. We're creating a new RPG setting with custom game system and mechanics based on dice rolls. I'm server-side java ...
0
votes
0answers
72 views

What's the most efficient way to manage auras & buffs? [duplicate]

I would like to know, for a game that does NOT use a grid (1-dimensional movement, in fact); what is the cleanest way to manage buffs that change a unit's variables? My current system is going to be ...
37
votes
6answers
6k views

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

Overview: Lots of games which 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." ...
17
votes
3answers
960 views

In modern AAA games with open environment and lot of static content (eg : crysis), how is occlusion culling performed?

Two ideas i have in mind : 1) Scene is rendered to a invisible buffer, using low resolution and low polygon count models (or even using only bounding volumes like cubes or spheres). The buffer is ...
-1
votes
1answer
220 views

Collision detection tutorials [closed]

I'm supposed to develop a Java game using AWT and Applet libraries. I'm stuck with the concept of "collision detection". If you can help me with any tutorials that explain the concept (how it works) ...
-3
votes
1answer
478 views

What is a reliable and easy way to build an AI? [duplicate]

Possible Duplicate: New to creating AI - where to start? I'm making a "Mario Like" game and I was wondering how would an AI generally work? I'm thinking of that it could just go to the ...
7
votes
5answers
1k views

Turn-Based RPG Battle Instance Layout For Larger Groups

What a title, eh? I'm currently designing a videogame; a turn-based RPG like Final Fantasy (because everybody knows Final Fantasy). It's a 2D sprite game. These are my ideas for combat: The player ...
6
votes
3answers
483 views

Building an instance system

I am looking into how to design an instance system for the game I am working on. I have always wondered how these are created in games like World of Warcraft, with its instances (dungeons/raids/etc). ...
8
votes
5answers
445 views

Building (simple) stellar systems

I'm currently looking at how to easily simulate some stellar systems (meaning some central stars and then some planets with maybe satellites), in order to allow later some space based strategy game ...
5
votes
3answers
594 views

How to start with more complex games? [closed]

I'm a new game developer and I have already finished Pong, Breakout and Snake. I want to start with strategy games, where do I read up on that? What ideas should I wrap my head around? I like games ...
12
votes
2answers
655 views

Formula for three competing heroes, each has one they can beat and one they're beaten by

I am trying to design a game for a project I have, The main idea is: 3 Types of heroes 3 Stats per hero There are no levels involved so the differences must be located on stats. Fight logic - The ...
28
votes
11answers
1k views

How to encourage players to level up multiple characters? [closed]

In my game, it is possible to make multiple characters. You can make as many as you desire. What I usually do (and almost all players do) is just make a single character and level it up a LOT, and ...
14
votes
3answers
984 views

Peer-to-peer hostless competitive games of chance?

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 ...
5
votes
2answers
244 views

Simultaneous events in a realtime system, where processing order causes different outcomes

I am working on a realtime dungeon crawler, focusing on a relatively complex and flexible skill system. Somewhat similar to MMORPGs with many compound spells, area effects, buffs/debuffs, ect. I am ...
11
votes
3answers
2k views

How to implement buffs / debuffs / temporary stat changes in an RPG? [duplicate]

Possible Duplicate: What’s a way to implement a flexible buff/debuff system? In the context of creating an engine for a RPG I want to implement a generic way to give effects / buffs / ...
-3
votes
1answer
272 views

Implementation of planets in top-down space shooter [closed]

I am working on a top-down space shooter, and I have come to the point where I need some input on a mechanic. I have implemented enough that I can make this choice; either way will not change the code ...
2
votes
1answer
556 views

2D/Isometric map algorithm

First of all, I don't have much experience on game development but I do have experience on development. I do know how to make a map, but I don't know if my solution is a normal or a hacky solution. I ...
4
votes
1answer
558 views

Implementing strafe jumping

As a Defrag player, I would like to add advanced movements to my (simple) game, in particular strafe jumping. I currently have basic fps movements (WASD and free look to be clear), but how can I add ...
0
votes
1answer
1k views

Drawing a texture at the end of a trace (crosshair?) UDK

I'm trying to draw a crosshair at the end of my trace. If my crosshair does not hit a pawn or static mesh (ex, just a skybox) then the crosshair stays locked on a certain point at that actor - I want ...
3
votes
2answers
4k views

Calculating Delta time , what is wrong?

For 2 days now i am trying to calculate the correct delta time for my game , I am starting to getting crazy since i tried all the solutions that i found on the 5 first google pages... What is wrong? I ...