Game Design is the creation and balancing of game systems and mechanics. Not for programming questions about "design" of features, engines, etc. Not for visual design questions about the looks of assets.

learn more… | top users | synonyms (1)

1
vote
6answers
1k views

Collision with 2 of the same objects

I'm looking to make a button that is activated by two of the same objects, but the code I'm using doesn't recognize the second object as a different instance. Not the best explanation but here's the ...
9
votes
2answers
320 views

Entity component system - game progression

I'm quite new to game development (but not to programming) and I'm trying to figure out what would be the best way to handle inter-world communication. What I mean is this: I've been reading about ...
2
votes
1answer
309 views

Modularization in a project

I'm writing a C# game in Mono, and I want the game to be as modular as possible. I've started by writing the whole Item (inventory) System of the game in a seperate .dll library But I've hit a problem....
1
vote
1answer
43 views

Is correct to calculate values in percentage, using the total number of iterations?

Trying to clarify the problem. Imagine a factory that produce soccer balls; if you produce 1 ball, it will take a certain amount of game cycles. For sake of simplicity, let's say it could take ...
1
vote
1answer
53 views

Categorizing Projectiles in an arcade shooter (multiple inheritance?)

I have been working on a simple arcade shooter in Java in the vein of missile command/space invaders. I've made a base Projectile class and have been extending other Projectile types from it. This ...
1
vote
1answer
144 views

Tile base Farm Simulation in Unity

I am thinking of creating a sprite base 2d top down farm simulation game. The game uses tiles and I was wondering (conceptually) what is the best way to handle the farm tiles. Each tiles should have ...
1
vote
1answer
47 views

Libgdx, actor touchlistener not working

public class Main extends ApplicationAdapter { SpriteBatch batch; OrthographicCamera camera; Stage stage; Image greyback; Image circle; private float width; private float height; @Override ...
1
vote
1answer
128 views

Java Slick2d lighting using Raycasting

I am trying to make a top down view game in java using the Slick2d library, for lighting I wanted to do something like this : http://www.redblobgames.com/articles/visibility/. I was wondering if there ...
0
votes
1answer
51 views

keylistener and synchronization

i have this code: public final class PlayerInput implements KeyboardInputHandler{ public static final int INVERTED_AXIS = 0; public static final int NORMAL_AXIS = 1; private Sprite sprite; private ...
0
votes
1answer
43 views

Slick2D Simple StateBasedGame not working

I recently started trying to work with outside Java libraries like Slick2D. This is my first time doing so, so I basically have no clue what I am doing. I tried making a simple StateBasedGame that ...
-1
votes
1answer
277 views

How to use custom font in Phaser ?

I am trying to load webfont in Phaser, I have seen the Phaser example but I cant understand, what asset do I need,what function I have to call....,what exactly look like the javascript file?. I am new ...
4
votes
0answers
93 views

Conceptual question regarding Belief-Desire-Intent agent

I've been researching the Belief-Desire-Intent model and the way they used it in the original Black and White Game(which is the same, but they also defined decision trees as opinions). I have a ...
2
votes
0answers
34 views

How can I stream only the visible layer of objects?

So I've ported a terrain generator to SA:MP (a GTA:SA mod that connects you to players around the world). The terrain is generated perfectly, after only a few hours of scripting. I was surprised how ...
1
vote
0answers
18 views

how do i make an object in gamemaker only overlap on one side?

I am making a small flash game in game maker 8.0 pro and I need some help. In my game, the character is in an office with cubicles. I need my character to be able to walk behind and in front of the ...
1
vote
0answers
27 views

Game logic implemented using TPL / async / await, and performance of it

I'm working on a game, and as a typical game (here using Monogame) it uses frame based approach, where all logic happens in Update() method called every frame. As a consequence, any sequential logic ...
1
vote
0answers
41 views

Collision Detection between two instances of the same Prefab

I am a trying to recreate the first stage of Super Mario Brothers, but I am having a bit of trouble with the collision system between Koopa Shells. I have written two different scripts in hopes to ...
1
vote
0answers
47 views

How can I bundle assets into an executable from my game-maker-like editor?

I am attempting to implement a simple "game-maker" solution. I'm working with Visual Stsudio, in C#, using MonoGame. I'd like the games my editor creates to be stand-alone executables, with their art ...
1
vote
0answers
22 views

Concerns about using a 3D tileset grid

I'm thinking of implementing a 3D tile system for my engine, and tie it to it's world streaming system as well. As in, using it for it's terrain for an open world in an engine that theoretically can ...
1
vote
0answers
20 views

Using GLFX.js on a full HTML page

I have a friend who is developing a game for HTML, and wants me to implement GLFX into the site page. The problem is GLFX was designed specifically for use with the HTML5 Canvas, which he isn't using, ...
1
vote
0answers
61 views

SignalR Monogame Lag

I'm creating a C# multiplayer game in Monogame using SignalR to update the enemy players positions. This is my proxy.invoke: proxy.Invoke("UpdateEnemy", LocalShip.Position, LocalShip....
1
vote
0answers
72 views

Selecting Dictionary item based on custom classes instead of keys

I am attempting to write my own path finding code for a game I'm working on that will implement a form of the A* algorithm. I store my nodes of the path finding system as a class called nodes and add ...
1
vote
0answers
115 views

Bold black bar on right side of game in Unity (Android)

I am trying to create an endless runner. I have already created a system to generate infinite backgrounds from an array of some. However, on running the game, I get huge black bar on the right side of ...
1
vote
0answers
43 views

Unity PhotonView - Ownership problems when synching objects

Im creating a billard game where one white ball will be controlled by two online players. I have set my object photonview to ownership takeover: https://www.dropbox.com/s/kq79lfh4clerx7q/no.jpg?dl=0 ...
1
vote
0answers
350 views

Unity Photon Networking - Cant understand OnPhotonSerializeView

in all tutorials I see that an object sends data over the network and receives the data for sync in the same method: Code (csharp): void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo ...
1
vote
0answers
44 views

Java (libGDX) - Inheritance problems

I'm having some issues with inheritance for one of my libGDX projects, I'm making a game similar to (very stripped down) Terraria or Starbound and I am using the TiledMap to load the world, ...
1
vote
0answers
37 views

Create ROI tools for analysis

I want to create some ROI tools on my game for personal analysis. Let's say that I have 3 different level of special powers with a recursive cost and certain bonus. So, I want to see when certain ...
1
vote
0answers
80 views

Security-minded design patterns / paradigm for client/server application

I am working on a client/server application and am starting to take it from proof-of-concept to actual implementation. The client is an Android application and the server is in PHP. In similar ...
1
vote
0answers
91 views

Editing sprite shading to change perspective?

I'm currently developing an RPG in Java with some of my friends, and one of my tasks is to do the pixel art. I'm a beginner at it, but I know that I'll get better in time. I recently finished the ...
0
votes
0answers
16 views

LibGDX - scaling for different devices

i have a question about scaling. I have two ideas how to solve problem with different screen sizes, aspect ratio etc. Make viewport that depends on device screen size and scale textures in draw ...
0
votes
0answers
48 views

Algorithm for 2d AI aiming to compensate for gravity

In a 2d side-view scenario I have two riflemen aiming at each other. By normalizing the x and y difference they know the direct path to the enemy. However, gravity will pull the projectiles downwards,...
0
votes
0answers
49 views

What is the more efficient way of implementing 3d TD maps

This question is more on the design aspect than coding. I am working on a 3d tower defense game, where essentially each map is built on a 27x37 grid (not using real units), filled with walls(cubes ...
0
votes
0answers
52 views

I Need help with Match-3 mechanics in Gamemaker

Engine used: Gamemaker Studio, Professional Edition Note: I just saw a suggestion to use an array/matrix, and that's probably infinitely more useful and easier than what I'm doing right now (free-...
0
votes
0answers
37 views

Detecting collision of multiple moving objects

I have wrote a simple game that has a 100 balls bouncing off the borders of the canvas. Each ball is an instance of ball class function that has the following definition: var cnv = document....
0
votes
0answers
29 views

Direction buttons for Android game

I am new to Android development and i am trying to develop a game. I have a basket which is used to catch different objects which are falling down randomly. Now to catch those objects, i am currently ...
0
votes
0answers
73 views

Multiplayer through blocked Firewall Ports?

im currently trying to develop a little game. I thought it would be a great idea to implement coop multiplayer, only lan. So i took kryonet and created a server. On my home wlan it works great im able ...
0
votes
0answers
16 views

Packing a load of irregularly shaped textures with UV bounds into a single texture

I'm developing a 2D game that uses a very large and varied set of high resolution tiles. Some of the shapes are large and diagonal, so when when it comes to batching all of the images into a single ...
0
votes
0answers
25 views

Ads are loading, but not showing?

TL;DR: My interstitial ads in my game are successfully loading, but when I call .show() on them, they don't show up! I have followed these directions, and the ads load succesfully, but don't show ...
0
votes
0answers
55 views

What is the best way to represent a large field of objects while using minimal resources?

I have recently started to plan a project in Unity that will be for android. I have a database that consists of over 150,000 stars (may trim this down if I/O cripples the overhead). The game will ...
0
votes
0answers
47 views

Java - Component Based Architecture applied to Entities

I've recently been getting my game a lot more of functions for the entities: growing, IA, colours depending of season, position, magic, teleportation an d a lot more. The problem was that for ...
0
votes
0answers
31 views

Do I restart the service?

I have a long running service in my game, that consists of two threads. //MY SERVICE: if(userEnabledProcessOne) //Shared preference value that I'm getting from the settings of my app based on a ...
0
votes
0answers
38 views

Create a new layout?

After the user gets to a certain score in my game, I wan't to display a medal next to the users name. Doing this pro grammatically will make the image disappear after the user leaves the app. How can ...
0
votes
0answers
24 views

Different layouts?

I have had trouble in the past with optimizing my game for different layouts, so that the players don't see the game in different ways on different screens. Someone told me that the normal directory ...
0
votes
0answers
56 views

How to get the absolute position of the sprite in the renderview regardless of the pos of PIXI.Container?

I implementing panning on an infinite platforming game I developing but this is messing up with my current setup and structure of the game world (collisions, player location, etc.). Though I figured ...
0
votes
0answers
64 views

Predict ball movement after Collision in Pool Game?

Im trying to draw lines that predict the movement after the colliosn of 2 balls in a pool game. How do I do that? I heard it can be done via Raycasts, but how do I draw a line? Any tutorials, tips?...
0
votes
0answers
275 views

Insert 3d text to the front face of a cube GameObject

I want to add a text to a cube in Unity. I have a cube which has a 3d text as a child. I am using the below javascript to write on the 3d text: #pragma strict function Start () { } var countdown : ...
0
votes
0answers
117 views

Google Developer Console Error message

i received my first crash report of on Google Developer Console yesterday and im completely lost. Did anyone receive this error before and how can i go about fixing it? Any help would be greatly ...