Computer programming is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs.

learn more… | top users | synonyms

1
vote
0answers
44 views

How to write a global GameState manager for a game in Java [on hold]

My implementation is written in Java: public class GameState { public static String state = ""; public static void setState(String state) { GameState.state = state; } ...
3
votes
2answers
166 views

Update vs. FixedUpdate in Unity

I was told to use Update() for graphics and FixedUpdate() for physics, but sometimes my inputs won't register when I use FixedUpdate(). It works fine if I use Update() for everything though. Should I ...
-2
votes
0answers
22 views

how can i top on scoreboard on facebook? [on hold]

i have seen many people on facebook games jumping up high on scoreboard. so i need some one who can hack and make me on TOP on Score Leader Board weekly or teach me how to do it and i can reward them ...
10
votes
2answers
623 views

What are the benefits of using an entity ID system?

I'm currently reading the book Programming Game AI By Example. The book mentions assigning unique ID numbers to each entity in the game. Often when entity A needs to contact entity B, A gets a ...
-1
votes
1answer
36 views

Match-3 Shuffle Required?

How can I detect if there are no more potential matches possible and therefore a shuffle is required?
8
votes
4answers
361 views

Infinite 3D Cave in Unity

A friend and I are hoping to make a game in Unity in which you fly through an infinite 3D cave that can twist and wind in any direction (though obviously not to the point that the turns are impossible ...
15
votes
1answer
2k views

How can I mock Google Play purchases?

I would like to know what best practices should I do for testing the functionality when a user buy an item/power-ups via Google Play and purchased with real money? For example, basically, creating a ...
1
vote
1answer
159 views

How does the Unity3D entity system work?

I saw the Java Artemis Entity Component System and thought of the entity system in Unity3D. In Artemis for example you can only add one component type to each entity and the logic is not in the ...
0
votes
1answer
46 views

How to find the right direction to plug a sword into a rig's hand after projecting it?

I've downloaded BVH animations and projected it following a book. I can now see a 3D moving rig and it looks alright. The problem is, now I want to plug a sword on the hand of the rig, but I don't ...
0
votes
1answer
138 views

Basic hierarchical component access in Unity: GetComponent vs. Find

I'm just learning to develop in Unity. One simple thing I'd like to do is change the colors of objects programmatically. I have a compound asteroid prefab object, in which the meshrenderer and ...
0
votes
0answers
14 views

Get Facebook Picture in Cocos2d-iphone V3

I'm trying to get the profile picture from Facebook, but I'm getting the following error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImage ...
0
votes
1answer
29 views

try to create CCSpriteFrame but get nil values

I'm trying to animate a CCSprite in cocos2d v3 following this question, but I'm getting the following error message in Log: Terminating app due to uncaught exception 'NSInvalidArgumentException', ...
1
vote
1answer
51 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? ...
-1
votes
1answer
100 views

Size of modern games [closed]

As a non-game developer, I'm always stunned by the sheer size of modern games. For example, last night I downloaded Killzone for my PS4 and it clocked in at over 30GBs, which to me is absolutely ...
5
votes
1answer
98 views

Best way to organize models with multiple meshes and textures?

I have character models which have different parts, ex: upper body, head, lower body; each part is a separate mesh in the same model. Each part has several textures associated with it (diffuse, ...
2
votes
2answers
155 views

Expandable 2d environment by spawning and controlling individual tiles

what is the best way to implement an environment that is "expandable" in every direction so that when the player moves in any direction a new row or column of tiles that can be manipulated ...
1
vote
4answers
651 views

How to make a game without OOP? [closed]

I am currenty studying game development and practicing making games. I use a lot of OOP in my games. For example, each missile that is shot is an instance of a Missile object, and added to a list of ...
2
votes
1answer
93 views

Where should the collision response/resolution code go?

I've got a collision response/resolution function that does the same for any pair of two entities. It's is in the World class right now. But right before that function is invoked, I have some ...
0
votes
1answer
72 views

Why does my SDL code crash when I move the mouse over the window?

Whenever I move my mouse below where the image renders in my game, the SDL window crashes and closes down. I have narrowed the crash down to the bit of code where I check to see if the Escape key ...
3
votes
1answer
119 views

How to convert a SDL window to a SDL surface? SDL 2

I am trying to make a paint program and there is a sdl function called IMG_SavePNG() which requires a surface and destination file. How can I turn what I see in the window to a surface?
0
votes
1answer
20 views

Restarting a game be resetting an object [duplicate]

In a game I made, I want to restart the game when the players presses a button. I have an instance of a Game class, which is where most of the game happens. I though that I could simply initialize ...
0
votes
0answers
25 views

How can I handle collision detection between many objects efficiently? [duplicate]

I have made a game that runs poorly. I suspect that the way that I programmed the collision detection in the game loop could be the problem. My game has two player-controlled tanks which fire ...
0
votes
1answer
96 views

What coding issues can be significant in damaging the performance of a game? [closed]

I have just finished a 2D game in Java that I've been working on for a while. I found that on some computers it runs fine, and on others (which are not particularly slow in general), the game runs a ...
1
vote
2answers
121 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 ...
1
vote
2answers
109 views

Should the game update loop compensate for slowness

I am building a game engine and considering the design for the core game loop that will drive the game. In the most basic form, the implementation looks similar to this (in pseudo-code): while ...
-1
votes
1answer
49 views

the basic or important thing that i need to learn from C# [closed]

I started to learn C#, and it's really big and have many things, but i want to learn the important things that can i use to programming my game. any advice ?
3
votes
3answers
203 views

Limitations of p2p multiplayer games vs client-server

I am reading up on multiplayer game architecture. So far most of the articles i've found deal with the client-server model. I'd like to know what are the limitations for using a p2p architecture? ...
0
votes
1answer
188 views

Creating a knockback effect

I'm fairly new to creating a 2D game in java and I'd love some help. I'm trying to create a sort of knock back effect the enemies have on you. So when you are touched by a enemy you will: lose life ...
0
votes
1answer
107 views

When to use class/objects for graphics [closed]

I am fairly new to game development, but I have a good programming background with object oriented programming. But with games, I do not know when I should use an object (or class) for an entity on ...
2
votes
1answer
397 views

Game development with D programming language [closed]

I have recently found out about D programming language and its basic features. It seems D is quite powerful alternative for C++ and more effective at some points. Also D can interface to C, but ...
0
votes
3answers
191 views

Creating a hostile Mob

So I'm currently developing a 2D top down view java game. I have a mob called "Mutant" that currently does nothing. It generates a random number and depending on that number moves a few pixels in that ...
1
vote
1answer
123 views

How do you get player to interact with level?

I suffer from this problem where I have say a class called Player and a class called Level. Now the only way I can figure out how to say make the player interact with the level is if I do something ...
0
votes
1answer
69 views

Map editor undo function - Not actually setting values to tiles

I'm currently attempting to implement an undo/redo function for my map editor for a tile-based 2D platformer game made with XNA. I've found a lot of resources online about this and decided to try to ...
2
votes
0answers
69 views

Where can I find game postmortems with a programmer perspective [closed]

There are a number of interesting game post-mortems in places like GDC vault or gamastura.com. The post-mortems are generally give with a CEO/manager perspective or a designer perspective, or, more ...
1
vote
1answer
159 views

Are techniques from Warioware: D.I.Y actually useable in creating an actual game?

In a game called Warioware: D.I.Y, it teaches you how to create minigames with certain forms of AI. Can I use the techniques shown in this game to actually develop an advanced game?
-1
votes
3answers
253 views

Do I need “cube subclasses” to represent the blocks in a Minecraft-like world?

I would like to try to develop a very simple game like Minecraft for my own education. My main problem at the moment is figuring out how to model classes that represent the world, which will be made ...
0
votes
1answer
74 views

Text resource not loading

I'm trying to load text from a .txt file into a TextAsset variable. The file is in the assets folder under Texts/. My problem is that bindata is returned as null. string instructions; void Start () ...
1
vote
0answers
92 views

How to perform game object smoothing in multiplayer games

We're developing an infrastructure to support multiplayer games for our game engine. In simple terms, each client (player) engine sends some pieces of data regarding the relevant game objects at a ...
3
votes
1answer
58 views

Armature rest matrix - why does this exist?

I'm not sure I have a clear idea on what purpose the rest matrix/bindpose is supposed to serve in skeleton animation. If it is supposed to transform a bone into the rest pose and the mesh itself is ...
1
vote
1answer
114 views

How do programming skills aid a game designer [closed]

So many game designers are programmers as well nowadays. Is it so extremelly helpful for a game designer to have programming skills and in which ways programming skills aid a game designer?
-1
votes
2answers
175 views

How to structure the code of a game? [closed]

I come from a web development background and want to learn game programming. To bridge the gap, I plan on creating a simple one-on-one fighting game in JavaScript. There’s two fighters on a stage, and ...
9
votes
3answers
382 views

Flexible alternatives to many many small polymorphic classes (for use as properties or messages or events) C++

There are two classes in my game that are really useful, but slowly becoming a pain. Message and Property (property is essentially a component). They both derive from a base class and contain a ...
1
vote
1answer
73 views

An approach for storing points in space

I am going to work on my next game project, however there are some issues I want to correct since my last one. Here is one of them: This is a problem I think I can already solve, but I'd like to hear ...
0
votes
1answer
107 views

Different aspects of games development [closed]

I am and have been quite interested in programming games for quite a while now, however an interesting question I've thought about lately is what do I want to specialize in? After doing some research ...
-1
votes
3answers
79 views

When in the development process should the programming start and what should be programmed first? [closed]

I think the title really says it all. Should I start programming after designing the basic outline of the game or should I have the whole thing written out? If I write the whole thing out isn't that ...
2
votes
2answers
160 views

Large game project, local variables [closed]

I'm hoping that some experienced programmers can give me their point of view. I'm writing a large game in Windows with dx11. So far, I've got global objects of the class that interfaces with dx11, the ...
0
votes
1answer
144 views

Should I use a visual tool or code myself? [closed]

I've been writing a small game in Python that generates random dungeon rooms with creatures for the player to fight. It's all text based, choose your own adventure style. A couple months of working ...
0
votes
1answer
89 views

Building a visual scripting component (like Kismet) [closed]

I'd like to know how can one get started building a visual scripting component (or what is the more accurate term for this type of component?) such as UDK's and Unreal Engine's Kismet. For those who ...
2
votes
2answers
248 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 ...
6
votes
4answers
333 views

Passing data between engine layers

I am building a software system (game engine with networking support ) that is made up of (roughly) these layers: Game Layer Messaging Layer Networking Layer Game related data is passed to the ...