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

learn more… | top users | synonyms

8
votes
2answers
308 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. ...
3
votes
1answer
588 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 ...
0
votes
2answers
30 views

How can I get all components of a type from a List with mixed components?

I have a list of GameObjects. Half of these GameObjects have Component1, and the other half have Component2. I want to get all of Component1 from the list. So an example of my list: var list = new ...
-1
votes
1answer
54 views

What properties should be private, public, and protected? [closed]

I'm currently trying to write a base player class, and I'm not exactly sure what I should make private, and what I should make public. I know that as a programmer, I need to keep as many variables as ...
3
votes
1answer
340 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, ...
20
votes
4answers
10k views

What should a game engine do? [closed]

I'd like to improve my skills/try something new and I'd like to start with 3D. I have read Starting programming in 3D with C++ but I have question about engines: What should engine do? I know it is ...
-3
votes
1answer
67 views

MMORPG networkconnection like Vindictus [closed]

to be honest, I like to make "small" MMORPG with my frends. We are 4 guys and are using Unity3D and Blender. I am a Programmer and I am using Eclipse. I know, it's silly to start a Question like "How ...
-1
votes
0answers
26 views

Guidance on improving a Weapon Equip/Weapon Using system for a text based game

I’ve been working with C++ occasionally in my spare time and have completed a few small projects and I feel confident enough to start working on a larger project. I am making a command prompt text ...
58
votes
6answers
14k views

How do bullets work in video games?

I came across this question when I was designing a video game in C#. If we consider games such as Battlefield or Call of Duty, hundreds or even thousands of bullets are flying at the same time. ...
0
votes
2answers
87 views

Need some advice on how to decide where to implement my enemy behaviours

I'm in the middle of writing a platformer game in Unity using C#. I have my character, if he presses the kick button his state switches to kicking. During this "kicking" state the character doesn't ...
9
votes
1answer
373 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: http://stackoverflow.com/...
3
votes
2answers
155 views

How do i implement a hit box system in a fighting game?

In a fighting game a move that you execute is basically just a series of hit boxes that are enabled and disabled at certain times. I want to know how do you create this hit box system. I have no idea ...
2
votes
1answer
102 views

How to code a multi level isometric map?

I have already worked with isometric grids in the past, but in my current project I found an issue I am not sure on how to solve. I am trying to produce something similar to what's in the below screen:...
1
vote
1answer
54 views

Unity using Animation and Ragdoll

The question is simple, but I can't resolve it for a couple of days. I have an enemy model with ragdoll attached and also a couple of animations(e.g. idle, walk, run). It seems that ragdoll work only ...
1
vote
1answer
47 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. ...
10
votes
2answers
404 views

How do I avoid writing Manager classes?

I seem to keep reading it's a bad idea to use XxxManager style classes in game engine programming, yet even when I try to avoid their use I always end up with something that holds all the actors/...
14
votes
6answers
7k views

What scripting language would you recommend for a C++ game project? [closed]

By scripting here I mean not just putting config data in a script, but scripting parts of the project like some class methods, test specific game loop, etc. This would be not just to accelerate ...
2
votes
3answers
172 views

How do game engines mitigate CPU cost for many trigger zones & entities? [closed]

It's a rather simple question, but a somewhat fundamental in computing in general. Let's say we have a player controlled character in an open world. The world is large. In this game-world we have a ...
1
vote
1answer
97 views

Android OpenGL Sprite Component Pattern

Ok so I have a 2D OpenGL project that was originally a class assignment, and now I am using it to experiment with and to broaden my knowledge. Originally, I had been using the Normalized Devices ...
0
votes
1answer
63 views

For Indie Developers should abstraction or development speed be prioritized? [closed]

As an indie development team/business with no projects released and therefore no income, should abstraction or development speed be prioritized? This question assumes the following: This is the ...
2
votes
0answers
76 views

Masters in Computers Science OR Game Design and Development? [closed]

Hey guys so I've been very confused on what path to take in terms of education. I'm a soon to be computer science graduate with a BS in Computer Programming. My hope is to one day land a job in the ...
2
votes
0answers
44 views

Where can a game developer/programmer get freelance jobs? [closed]

I'm a game programmer looking for freelance jobs online. I know that there are lots of sites for freelance jobs, but I haven't been lucky with them, I was wondering, which sites are the best for ...
1
vote
0answers
183 views

Can you share some URLs for tutorials that demonstrate programming basic game logic? [closed]

I'm really looking for some of the basic concepts to get started, like decision trees and some discussion around aspects of AI and what to consider. A tower defense game would be a good example (but ...
-1
votes
2answers
3k views

making a game in 2D(C++). SDL or openGL? Or, why not both? [closed]

I'm trying to make a platform game in 2D and I want to know what tool should I use to make it happen. I understand that I can use SDL with openGL. However, if I want to make a solid 2D platform game, ...
-2
votes
1answer
63 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 ...
8
votes
3answers
1k views

What makes a good educational game? [closed]

I'm currently creating a game framework/engine for educational games. My hope is that this can be used in elementary schools. It is of course extremely important that the games are both fun and ...
0
votes
1answer
76 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 ...
31
votes
6answers
37k views

How can I implement gravity?

How can I implement gravity? Not for a particular language, just pseudocode...
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 ...
0
votes
0answers
15 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
39 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
185 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
113 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
36 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 ){ germtype....
5
votes
2answers
956 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 ms)...
1
vote
2answers
152 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 ...
-2
votes
1answer
53 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
289 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?
23
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
427 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
303 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
7k 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. ...
19
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
2k 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
572 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 ...