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
94 views

A problem with collision when a sprite changes size (Phaser framework) [on hold]

I have a sprite in my game that changes size at certain points in the game. It changes size via the sprite.body.setSize method. Unfortunately, it seems that the sprite is unaffected by objects that it ...
1
vote
0answers
19 views

NegaScout with Zobrist Transposition Tables in Chess

I'm trying to put Transposition tables into my alpha beta scout. I do see an incremental speed boost I think toward mid or late game, however, even with a table size of 1-2GB, its may or may not be ...
2
votes
1answer
75 views

Generate planet like heightmaps

I would like to procedurally generate planets, but I don't know how to wrap a heightmap around a sphere. I already know how to generate plane heightmaps, but not how to generate spherical ones. Can ...
0
votes
1answer
24 views

Are there such things as online development projects? [closed]

I would like to practice a bit as a programmer in the gaming field but know of no one making games in my proximity. I was wondering if there is an online community or something where people look for ...
0
votes
0answers
25 views

How do you settle on an idea? [closed]

First off - I apologize for the subjectiveness of the question, but I needed to ask -somewhere-. As the title says - how do you settle on an idea? I've been writing different game design documents at ...
0
votes
0answers
23 views

Stuck at a crossroads need some guidance [closed]

I have dabbled in a few programming languages to include: php, javascript, java, C++, and C#. I know that no language is better than the other and that its all up to which type of game that you want. ...
0
votes
0answers
35 views

Faction system in C# [closed]

In an RPG type game how would one go about handling a faction system? I was thinking about making a faction class that contains an int value that would determine how much it likes or dislikes another ...
0
votes
2answers
186 views

Recommended approach for event system in Java

What are the recommended approaches for an event system of a turn-based RPG's battle engine? The system I'm currently working on has a runEvent method that sorts the actions queue based on their ...
0
votes
0answers
24 views

How do i view minecraft forge commands in eclipse and how can I “learn the syntax” of making a mod? [closed]

I started learning Java a while ago and I have a decent understanding of the language (Im about half way through Herbert Scheildns Java a begginers guide book) I really wanted to code a minecraft mod ...
-5
votes
1answer
82 views

Questions about game programmers for School project [closed]

My name i Magnus. I was hoping that some of you, could help me answer som questions, about game development and the game industry. It wille be used for a project about our future, that all 10. graders ...
5
votes
2answers
2k views

Unity: how to apply programmatical changes to the Terrain SplatPrototype?

I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field). The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
0
votes
0answers
28 views

Logic issue between two classes [migrated]

I'm coding a classic Sokoban game. I've got a class named "Warehouse" which represents a warehouse and a class named "WarehouseItem" which is a base class for items that belong to the warehouse. I ...
80
votes
10answers
4k views

What can I do to make sure that I have the energy to work on my game while working full-time? [closed]

I work as a software engineer 40+ hours a week and I find that between balancing my personal life and family responsibilities that I have literally no energy to work on game development. What can I ...
1
vote
1answer
27 views

Andengine onAreaTouched TouchEvent not working - ACTION_OUTSIDE & ACTION_CANCEL

I have a simple problem. I have a button on the screen. I want isActionDown to push the button down, and isActionUp to push the button back up again and make my character jump. But the problem is if I ...
1
vote
0answers
14 views

Are custom data types a possible and viable option for variable size efficency? [migrated]

Instead of storing a single boolean into a byte block, why not store 8 booleans in that same block. Example: 01010101 = 8 booleans, 1 3 5 7 = false, 2 4 6 8 = true. Would this work? is there a ...
6
votes
1answer
1k views

How to profile CPU and GPU performance if I have a monster PC?

I'm going to upgrade my PC soon. I'm worried that I will no longer spot performance losses in my game because of the better specs. I can check memory usage easily, but how do I check and debug CPU ...
1
vote
1answer
48 views

Stat Multipliers: from Base Value or Iterative

I'm aware similar questions have been asked before but this time I'm asking about a specific issue with the maths of stat modifiers. I have a stat system that applies a list of modifiers to a stat, ...
0
votes
1answer
53 views

Gravity: Slow down on ground approach

I'm looking for some math, nothing language dependant. "Standard" gravity for a character in a 2D game would go something like this: if player.y > ground.y { player.velocity.y = ...
-1
votes
2answers
246 views

Changing a Sprite When Hit in GameMaker

I am making a simple little Galaga style game. I want the objects sprite to change whenever it is hit. For example if a laser hits an alien then the sprite takes 1 out of 4 damage to its health ...
1
vote
2answers
686 views

What's the best phone for game development? [closed]

Yeah yeah I know, best is probably a bad way to phrase this. But I need some pros and cons. I need a new phone and if I'm going to get a smartphone and pay all that money, I better get one that I can ...
217
votes
28answers
53k views

What are good games to “earn your wings” with? [closed]

I believe that in order to become a good game developer, you need to make games. From a programmer's perspective, what are some good entry level games to get your hands dirty? What skills and ...
2
votes
3answers
907 views

Beginners' Guide to Development

So I have some experience programming in Java, and at the moment I am learning how to use Python. I have read on the process of game design and such. I also have media covered, got experience with ...
-2
votes
3answers
1k views

What language for Indie dev? [closed]

What would be a easy/fast language that would be good for an Indie developer for a FPS? Java? C#? C++? C? Anything else that would be good? Edit: (Platforms: Linux, Mac, Windows)
1
vote
0answers
117 views

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

My implementation is written in Java: public class GameState { public static String state = ""; public static void setState(String state) { GameState.state = state; } ...
2
votes
1answer
1k 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 ...
8
votes
4answers
3k views

What are some good resources for creating a game engine in XNA? [closed]

I'm currently a student game programmer working on an indie project. We have a team of eleven people (five programmers, four artists, and two audio designers) aboard, all working hard to help design ...
-2
votes
1answer
4k views

Where can I find a programmer/game developer to team up with? [closed]

I'm a pixel artist looking for an ametuer programmer/game developer to team up with, But I'm not sure where to start! I'm not particularly worried about profit, I'm only interested in making the game ...
2
votes
1answer
159 views

How can I access a script variable from another script in Unity?

I'm creating a space shooter (think Space Invaders or Galaga) where the GameManager persists between scenes but the player and enemies don't. I need to access a boolean value from the player and ...
0
votes
1answer
73 views

Possible to create 3-D or accelerated graphics on Windows using your own library/API?

Say I want to come up with a way to replace what OpenGL and DirectX specifications do: communicate with GPU to get some functions done that help hardware-acceleration and rapid drawing of screen data. ...
10
votes
2answers
5k views

What programming language were PS1 games written in?

Is there any common language that is used to create Play Station 1 Games? Or how can I find out what programming language is used for one of those games?
6
votes
1answer
6k views

Clickable hex grid in c#.net

I want to create a Windows Form-based adventure game where the player clicks a hex on a static map to bring up their next encounter. I have the map already and plan to scan it and convert it to a .bmp ...
0
votes
1answer
90 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 ...
1
vote
2answers
50 views

How to make gravity in Blitz3D?

I am making a game in Blitz3d and I made simple gravity, however once the object falls on the ground, it goes through it very slowly. The ground is a plane and I have collision on it. This is a ...
2
votes
0answers
85 views

Problems with instaling SFML [closed]

I've followed the instructions on installing SFML on the website to the letter. But, I get this when I try to build the sample program on the same page using Code::Blocks. ...
0
votes
1answer
48 views

XNA tiling a sprite with a camera.viewmatrix in the Draw method

I'm looking for help fixing a small problem that I have with my XNA game project. I currently have: spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, ...
1
vote
1answer
94 views

How do I draw text once a countdown ends?

I created a countdown in Game Maker using a variable of time. The countdown works properly and is displayed at the proper coordinates. However, when the countdown reaches zero, I want to make the ...
4
votes
1answer
732 views

Catmull Rom Spline - Constant Speed

Given the equations found in the answer here: Determine arc-length of a Catmull-Rom spline How would one A) Apply this to a 3D Catmull-Rom Spline, and B) write A out programmatically (for the math ...
-2
votes
2answers
719 views

Making a game engine or using Unity3D? [closed]

I was wondering, which one would benefit me the most? I have as much time as I need to make a game engine and rapid development does not appeal to me. Unity3D is easy, but how much will mastering ...
0
votes
3answers
112 views

Proper way for Player object to communicate with Map object?

I'm writing my first game (in javascript / node over websockets) and am running into a bit of chicken and egg problem, and am afraid how I'm doing it right now won't scale once the game gets more ...
0
votes
0answers
22 views

360-degree rotation/movement inside a tube [duplicate]

I'm trying to implement in UE4 the same gameplay mechanic Ballistics had: https://www.youtube.com/watch?v=UaJiPpLzbNg Working with splines doesn't quite cut it, because they have to be done ...
0
votes
0answers
35 views

Displaying range around a unit [duplicate]

I'm looking to highlight a set of square tiles around a unit to signify its movable range. The concept should be quite familiar to those who have experienced the Fire Emblem series of game. I have ...
3
votes
3answers
1k 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
71 views

Are there any advantages to different programming paradigms specifically releated to game programming? [closed]

I have been researching three different programming paradigms namely procedural, object oriented and functional. So far I have been able to find a lot of good information regarding general differences ...
1
vote
2answers
169 views

How to do collision detection on marching cubes terrain?

I'm writing the physics part of my game engine. The world uses the marching cubes algorithm on a 3d perlin noise to make the terrain. How do I do collision detection on the resulting mesh? I can't ...
2
votes
2answers
922 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
119 views

Enemy spawning problem [closed]

I've been trying to get my characters to spawn at random points through out the map. I have a camera which is following my main character (2D RPG Style) around the screen, but I want these "enemies" ...
1
vote
1answer
194 views

Vehicle: Boat accelerating and turning in Unity

I'm trying to make a player-controllable boat in Unity and I'm running into problems with my code. 1) I want to make the boat to accelerate and decelerate steadily instead of simply moving the speed ...
0
votes
2answers
149 views

How to set HUD elements position and size depending of resolution [duplicate]

How can I set HUD elements' position and size when changing resolution and maintain the desired layout? All HUD elements (including menu items such as play button, setting button etc) need to get some ...
5
votes
1answer
148 views

Is there a good alternative to a world state data structure?

How do you avoid one big data structure containing all the current world state ? Let's pretend we're in a real-time strategy game, how would you code a skill that decrease mana of units around it ? ...
-5
votes
1answer
91 views

Do total conversion mods require absolutely no programming or scripting skills? [closed]

I tried to look up total conversion and other mods as examples (Counter-Strike, Defense of the Ancients, Gunman Chronicles, Dear Esther, Natural Selection) but it is a bit difficult to find out if ...