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

learn more… | top users | synonyms

-3
votes
0answers
36 views

What programming language should I learn for simple 2D games? [on hold]

I am new here at Stack Exchange :). I've looked everywhere, but I want your opinion: What language should I learn if I wanted to make 2D games? Simple games like Snake, Mario, etc. I am going to be ...
0
votes
1answer
54 views

Do I need to use a game engine to make a simple game function on other platforms? [closed]

I'm a complete beginner really enjoying learning how to code (currently in Python) and my first games will be very simple, mostly text based, but I'd like them to run on friends' phones and computers ...
-2
votes
0answers
33 views

How to share code with other team members? [closed]

So, me and a friend have decided a while ago we want to get into game development. Now here we are, we understand C++ and want to begin development of games. So since we don't live together quite ...
-5
votes
0answers
34 views
27
votes
6answers
35k views

How can I implement gravity?

How can I implement gravity? Not for a particular language, just pseudocode...
4
votes
2answers
239 views

Rotating a 3rd person camera toward a target

I have a 3rd person camera that doesn't look directly at the player but somewhere in front of him. When the user enter shooting mode, I want the camera to turn around the player to face the target. ...
2
votes
1answer
446 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
2answers
3k views

HTML5 point and click adventure game code structure with CreateJS

I'm a programming beginner. I made a tiny one scene point and click adventure game to try to understand simple game logic and came up with this: CreateJS features prototypes for creating bitmap ...
1
vote
1answer
201 views

Cocos2d Sprite 3D position

When I set a position3D for a Sprite in cocos2dx, it render two times the same sprite, i took a screenshot: I set the position3D because i want to use the Z position the give an effect of distance, ...
0
votes
0answers
10 views

What software technologies was Demon Souls built on?

I am wondering about Demon Souls as a case study. I realize that they utilized the Havok engine, and I would like to gain an increased awareness about other aspects of its development. What ...
0
votes
2answers
37 views

Single player game into Multiplayer game(Not online) [closed]

How difficult is it to do this?(Like, do you need to so skilled that you aswell might have created the game yourself) Do you need to change a lot of the code? For example, if I have a single player ...
1
vote
3answers
167 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 ...
3
votes
2answers
88 views

Designing ability interaction system

I am making a turn based game where player chooses a team of heroes with specific abilities for each of them. (ex. stun one enemy, deal 20 damage to all enemies, heal 10 HP to one ally,...) The design ...
15
votes
3answers
1k views

How can a game prevent people from running multiple instances of itself?

Starcraft II restricts me from running multiple instances, but if I run the second instance sandboxed in Sandboxie, it works. What might account for this? How might I replicate this behavior for my ...
-1
votes
1answer
25 views

Unity List spawner problem ? C#

I have four spawners in my scene that spawns four enemies. My problem is when I try to add game objects to the list it works but only for one spawner. My code if (Score.levelNum >=2 ){ ...
5
votes
2answers
942 views

AI multithreading [closed]

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ...
1
vote
2answers
112 views

Swap buttons in layout

Say I have 4 buttons. I want to have button 2 always swap out with another button, randomly. So, when the user taps button 2, it should swap with another button (randomly). Now, button 2 is at the ...
-1
votes
1answer
41 views

How do I find and change a value of ALL the instance around another instance GAME MAKER

I basically need that, changing a variable of all the instance (all of the same object) around another instance (another, or the same object). I have tried with collision_rectangle but it doesn't ...
3
votes
1answer
193 views

What language do you program in Lumberyard?

I've looked through the FAQ on amazons site and all they mention is C++/Lua for the web service stuff. Can i assume it's C++ for the game content itself or something else (the visual script editor ...
24
votes
10answers
7k views

What are the most commonly used programming languages? [closed]

When I took my Java courses a year ago, I was told that Java is used mostly in the overseas gaming companies while C++ is used here in the US. What languages should I focus on learning in-depth?
22
votes
7answers
3k views

How to get PS3/Xbox 360 experience without having access to Dev kits?

I am a budding game programmer trying to get into the industry programming for PS3, Xbox 360. The main problem I see is the need to demonstrate my skills to a potential employer, but without access ...
1
vote
2answers
369 views

Are C and Objective-C sufficient for creating games on the iOS? [closed]

These days, I'm focusing on games development on the iOS. C++ is the lingua franca for games development but seriously, I prefer to code in C programming language, not in C++. So for iOS games ...
1
vote
2answers
1k views

What are the technologies used to create Metal Gear game? [closed]

What are the technologies (programming languages and engines for example) used to create "Metal Gear : Snake Eater" and "Metal Gear : Guns of The Patriots"? Is it usually to keep those things secret? ...
1
vote
5answers
2k views

Most efficient language for rewriting a tile-based board game as a video game? [closed]

I've been working on a hex-based board game. Every time I make changes, especially changes that require redesigning the map, it takes a good chunk of time and money. It might be more efficient to ...
0
votes
2answers
405 views

Ways to expose engine API for text-adventure games (XML, JS/DSL, …)

While developing an engine for text-adventures I'm still unsure how to expose the API it provides to the developers/writers. My two concepts for now are: Running a small JS engine which executes JS ...
-4
votes
1answer
299 views

Programming languages reccomended for a career in game design [closed]

I'm currently in year 11 and about to complete the highest level IT subject that my school offers leaving me no advanced programming courses to do next year. My question is: are there any quality ...
-3
votes
1answer
6k views

What programming languages are sufficient for web browser game development? [closed]

I am wondering with what kind of languages such a multi-player online game was written? I am trying to find a list of web programming languages which could be sufficient for both of these websites. ...
18
votes
3answers
6k views

How to wire finite state machine into component-based architecture? [closed]

State machines seem to cause harmful dependencies in component-based architectures. How, specifically, is communication handled between a state machine and the components that carry out state-related ...
1
vote
3answers
1k views

My SDL Game executable cannot run outside codeblocks

After compiling and running SDL programs successfully inside CodeBlocks, when I run them outside CodeBlocks (by clicking .exe file) my program does not run. Instead, it says that libstdc++6.dll is ...
0
votes
4answers
559 views

What is the point in using API such as Open GL or DirectX when there are game engines? [duplicate]

I was wondering why today programmers place so much emphasis on API like DirectX, and even OpenGl. As far as I know, you'd need thousands of lines of code to make a simple 3D game using one of the ...
1
vote
1answer
78 views

Implementing time step in main game loop

So ive read both http://gameprogrammingpatterns.com/game-loop.html and http://gafferongames.com/game-physics/fix-your-timestep/ and I kind of understand how I'm supposed to do it, but some parts are ...
1
vote
1answer
69 views

What exactly is a 'set of states'?

Whilst looking into game-oriented applications of programming patterns I discovered a question on this site which suggests that a 'set of states' is superior to a 'stack of states' but does not ...
1
vote
3answers
101 views

Ways to track time and character ages across many years of game time?

I'm working on a system to track large numbers of characters across long periods of time. Characters grow old and die, give birth to new characters, etc. It's a grand-strategy game, with warring ...
8
votes
2answers
3k views

Visually coding rpg dialog trees

I am currently using XML to create my dialog trees in my rpg, but doing this by hand for hundreds of different discussions can get very tedious very fast. I was wondering if there is any way I can ...
1
vote
0answers
53 views

Which programming language should I start with in game dev? [closed]

I am a front end web developer and I've always been interested in building games. I work primarily with HTML, CSS, PHP, and JavaScript on a daily basis, so I'm not new to coding. I would like to ...
1
vote
1answer
39 views

How do I update individual sprites within a spritegroup in pygame?

I have a for loop that takes values from a text file, and then creates and adds a bunch of sprites to a group platformlist_list. The for loop will continue until every line of the text file is read. ...
-1
votes
1answer
59 views

At which school levels do you learn to make games form scratch? [closed]

By which "school levels" I mean: high school, college etc.... So, I've just choose a high school in Sweden which has a game programming line. I read some on their webpage and what you will learn ...
-1
votes
1answer
56 views

Can someone help me with this Game Maker code

I want to make a little platformer. I watched Shaun Spalding's tutorial but nothing seems to work. Everything was fine until I put in the collision detection. But the player can't move while he's on ...
1
vote
0answers
29 views

Help for structuring classes [closed]

I am creating a platformer game with some card base fighting. I was thinking about how should I structure my classes? There are 2 types of cards i.e. Continuous effect and 1 time effect. Also, they ...
1
vote
0answers
36 views

Picking college degree (want to be games programmer) [closed]

Alright, so I know there's plenty of questions that have to do with college degrees on this site, but I don't feel that any of them really answer my question. I recently got accepted into Northeastern ...
5
votes
2answers
130 views

Decoupling input from game states / entity behavior

I'm looking for a way or general best practice advices for decoupling the architecture of my game, in the example below the input from the current game state workflow / entity behavior. While I'm all ...
-1
votes
1answer
51 views

Unity3D 5 Personal? [duplicate]

I want to make a game in Unity3D and I am planning to launch it to Android using the free license. However, if the game becomes a huge success and earns more than $100k, does (a) unity take the money ...
-1
votes
1answer
51 views

Quite conflicted on advice given to “learn programming” for game development. [closed]

I have been reading a few sources online that talk about learning programming with the end goal of game development in mind. I have heard many people saying that starting with Unity is the best way to ...
9
votes
0answers
283 views

Load ads in splash screen?

I have some ads that take a very long time to load. I was wondering it it is possible to have them load while the use was in the splash screen. I have looked at this answer: ...
-1
votes
1answer
51 views

How are pocket dimensions created in multiplayer games? (programming aspect) [closed]

How do multiplayer games deal with multiple instances/dungeons/regions? I'm familiar with server clustering which is what larger games use such as Eve and World of Warcraft. How do games such as ...
1
vote
3answers
223 views

Can't parent the standard FPSController during gameplay

I'm parenting the standard assets FPS controller during play with a simple script. The controller get's parented but also instantly inherits the rotation of the parent. This doesn't happen in Editor ...
0
votes
1answer
108 views

Good Resources for Random World Generation [closed]

Is there a good reference or tutorials available for adding world generation into a 2D game? I've gotten to the point where I have most of the resources available to add world generation but I don't ...
4
votes
1answer
98 views

In a 2D multiplayer game should I send the position of user to the server all the time? [duplicate]

In a 2D game where the user moves with the keyboard arrows, should the user send all the time he moves his position (x, y)?. If the user has some speed, the user would send (x, y) like 50 times ...
0
votes
0answers
39 views

Problem with Collision Detection

So I am adding collision detection into my game but whenever I start the game I get a rendering crash saying that there is a 'Game.update() failure - check the game code.' I have repeatedly tried to ...
0
votes
1answer
49 views

My game has messed up layouts!

Earlier, I asked this question: Landscape mode for game? Where I had a directory for each and every layout, but the layout in the layout-land directory wasn't showing up when positioning my layout in ...