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
2answers
787 views

How do I generate a random curve for landscape (like Worms)? [duplicate]

Possible Duplicate: How do I generate terrain like that of Scorched Earth? How can I generate Worms-style terrain? I must build random curve line for the 2D Game on the BitMap (like in ...
4
votes
1answer
295 views

How to program a cutting tool for 3D model in game

I'm looking for a resource to figure out how to program a function to cut a 3d model in game. Example: Enemy/NPC is sliced into 2 pieces with a sword. His body is not hollow, you can see bloody ...
2
votes
1answer
1k views

Recent mainstream games written in pure C? not C++ what was/is the point? [closed]

Recent meaning the current decade. I had found this post http://gamedev.stackexchange.com/a/15403/6544 wasnt c++ adopted as the industry standard quite some time back. In what sort of situation does ...
5
votes
5answers
2k views

Do game studios hire people based on their math knowledge alone?

I have very little programming skills outside of very basic levels of Java, but I have excellent math and science knowledge. I was wondering what I could offer any potential team if I were to go into ...
5
votes
2answers
188 views

Are these non-standard applications of rendering practical in games?

I've recently got into 3D and I came up with a few different "tricky" rendering techniques. Unfortunately I don't have the time to work on this myself, but I'd like to know if these are known methods ...
7
votes
1answer
848 views

Problem with Update(GameTime) Methods and Pause implementation

I have the pause function implemented and it works correctly in that it dims the player screen and stops updating the gameplay. The problem is that GameTime continues to increase while it is paused, ...
6
votes
2answers
3k views

C++ entity component system framework [closed]

I have found several entity system frameworks for other languages besides C++, like Ash and Rush for ActionScript and Artemis for Java and C#. My question is whether there exists a framework like one ...
-1
votes
1answer
4k views

How to get started in Java Game Programming? [closed]

As I try to program a game, I can't do virtually anything(because I really don't know what do do although I know the basics in Java), except if I look at tutorials. I'd like to ask you, professional ...
0
votes
1answer
2k views

Is Goal-Oriented Action Planning (GOAP) a valid replacement for state machines outside the realm of AI?

I just learned about Goal-Oriented Action Planning (sources below) as used in AI programming. I'm making a state machine for a player-controlled character and was wondering if it can be replaced by a ...
14
votes
3answers
3k views

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

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 ...
5
votes
2answers
381 views

Software engineering theory for hobbyist developers

In playing around with my hobby projects in various object oriented languages, I have realized that creating good class structure and program architecture is both crucial and not straightforward to ...
2
votes
1answer
1k views

How should I manage multiple entities?

Before I start making a game, I'm trying to figure out how I will manage things. One of the first things I'm not sure about is how to manage entities (enemy, player, projectile...) I'm going to be ...
5
votes
1answer
293 views

What's the right/standard way of achieving separation of concerns?

Some background: I want to start developing games, and taking some of the advice given in this site, I've started with something simple and familiar, such as pong, tetris, etc. I want to take as much ...
9
votes
1answer
698 views

How to represent cliff faces in terrain?

I'm trying to figure out the best way to programmatically represent terrain in my game. I've been considering using a heightmap (or grid of evenly spaced vertices) to represent the surface of the ...
24
votes
2answers
2k views

Is there a way to procedurally generate the history of a world?

I am somewhat intrigued by the diagram found here representing 1800 years of cultural history in an imaginary world some guy created. This sort of thing would seem to have strong applications for ...
3
votes
2answers
407 views

Programmatically drawing a “pencil” line or curve

If you look closely (scan it on a computer and zoon in) at a carbon pencil line you can see that there are differing shades of gray. I tried looking on the Internet for any kind of algorithm or ...
0
votes
2answers
386 views

What basic non-games related computer knowledge should a games programmer possess? [closed]

So the question will very likely need re-phrasing. I thought about asking this for a while, but held off because it's a tad vague. To explain - I have been a programmer for 4 years and only begun ...
-4
votes
1answer
920 views

should i use java or c#? [closed]

i know a similar question has been asked before but, my question is somewhat different. I have been learning C# for a few years but nothing in game making, more like applications and web like ...
9
votes
2answers
641 views

Implementing behavior in a simple adventure game

I've been entertaining myself lately by programming a simple text-based adventure game, and I'm stuck on what seems like a very simple design issue. To give a brief overview: the game is broken down ...
2
votes
1answer
1k views

C++/SDL Getting Multiple Bullets On-Screen

I've finally gotten this laser thing to work for my Space Shooter, and so far I've come across a slight problem. I've gotten the laser to position itself at the starting position correctly and move ...
18
votes
3answers
3k views

How does one do unit testing in a game engine?

Much to my shame, I have never written a proper unit test, only small unorganized test programs that I would then dispose of after the test succeeded. I don't really have a clear idea of how unit ...
19
votes
9answers
4k views

Is storing all game objects in a single list an acceptable design?

For every game I've made, I just end up placing all my game objects (bullets, cars, players) in a single array list, which I loop through to draw and update. The update code for each entity is stored ...
17
votes
7answers
1k views

How important do you find exception safety to be in your C++ code?

Every time I consider making my code strongly exception safe, I justify not doing it because it would be so time consuming. Consider this relatively simple snippet: Level::Entity* entity = new ...
5
votes
3answers
5k views

Should I use Game Engines to learn to make 3D games? [closed]

HI i am a software engineering student in his second-last year. I am proficient with C,C++,C# and java programming languages, and being a student of engineering I have studied calculus, vectors etc ...
3
votes
2answers
371 views

Bezier Curves for visual programming node connectors

Probably everyone is familiar with all kinds of visual node based programming tools like HLSL editor in Visual Studio 2011 or UDK engine Kismet/Material editors. My point of interest are the ...
2
votes
4answers
498 views

What is a right datatype in C++ for OpenGL scene representation with use of GLSL

I am programming in C++ OpenGl with GLSL. Until now I have been using a data structure that is composed of std::vector filled with structures of vertexes and with their parameters (position , normal, ...
-6
votes
5answers
604 views

Designing first game, deciding which language to use [closed]

Looking to make my first basic game (maybe some platformer) but haven't got across the "which language" barrier yet and hoping to get a few tips. I have basic knowledge of C++ and classes and can ...
3
votes
3answers
279 views

Should each UI screen contain the list of screens on the stack or should I use a manager class?

I have a Screen class that encapsulates the updating and rendering of several distinct states, such as the menu, gameplay, and credits. A stack of screens exists on which the screens themselves need ...
13
votes
2answers
699 views

How should I check if a player has completed an achievement?

I'm making an MMO game and I just got to a point where I need to implement achievements... How do I do that? The most straight forward thing to do would be to run this once every 100ms,: for a in ...
1
vote
2answers
549 views

Android pong clone, having trouble getting the paddle to stop at the screen edge

Well, I'm obviously very new to game dev and android. I've got a ball bouncing around (successfully detecting screen edge collision so that the bitmap stays within screen) and a paddle that the user ...
0
votes
3answers
178 views

How should I proceed next with my programming skills? [closed]

I am currently studying at University of technology in Brno (Czech Republic). This semester is almost over and I might say I have some knowledge of C. Since I went to this school just for the purpose ...
1
vote
1answer
131 views

Help with puzzle game

I have a pattern game and it is almost done however I am stuck on the last part. I have a screen with 25 blocks (in a table format 5x5) and the user clicks on it to turn over the blocks, I need to ...
1
vote
1answer
144 views

3D Location Handling

I am thinking about making a simulator type game that will involve having lots of small objects in a 3D space. What is the typical solution for handling these objects? The first thing that comes to ...
6
votes
5answers
2k views

Persistent game where you program your own bot(s) [closed]

I'm looking for an online game with a persistent world where you are allowed to code (and add) your own 'players' (it can be in any language / script). A sort of RTS but for bots. Does that even ...
12
votes
2answers
983 views

Could I be going crazy with Event Handlers? Am I going the “wrong way” with my design?

I guess I've decided that I really like event handlers. I may be suffering a bit from analysis paralysis, but I'm concerned about making my design unwieldy or running into some other unforeseen ...
4
votes
1answer
312 views

What are some great papers/publications relating to game programming? [closed]

What are some of your favorite papers and publications that closely relate to game programming? I'm particularly looking for examples that are well-written and illustrated, and/or have had a profound ...
3
votes
1answer
166 views

Make an object slide around an obstacle

I have path areas set up in a game I'm making for canvas/html5 and have got it working to keep the player within these areas. I have a function isOut(boundary, x, y) that returns true if the point is ...
0
votes
2answers
592 views

Check if an object is facing another based on angles

I already have something that calculates the bearing angle to get one object to face another. You give it the positions and it returns the angle to get one to face the other. Now I need to figure out ...
20
votes
5answers
1k views

Beyond “Novice” Game Projects

I was reading this answer on the type of math a game developer should know and this part really stood out at me: How do I move my game object? The novice might say: "I know! I'll just do:" ...
6
votes
4answers
3k views

Programming a MOBA bot: any open-source genre entries or games with an open A.I. API?

So some background: I play League of Legends (LoL) religiously and have a strong background in A.I. programming. In an attempt to put 2 and 2 together I've been trying to implement a bot for playing ...
0
votes
0answers
156 views

What Game Programming podcasts, Videos, etc are out there? [duplicate]

Possible Duplicate: What are some good podcasts for game developers to listen to? I am a programmer and like to listen to podcasts, and watch instructional videos, but everything I've found ...
-6
votes
1answer
156 views

What platform should I use? [closed]

I will be doing final year project this year, its a group of 6 members project. But in the group, only 1 member is experienced (mid level) in programming (ah yes, thats me). The game should be an ...
4
votes
4answers
2k views

What are some good game programming short courses? [closed]

I'm from Brazil, and I want to take a short course on game programming, 2 months at most, in a country that lectures are given in english. I'm almost a BSc in Computer Science alredy. Can you tell me ...
16
votes
4answers
845 views

It is worth adding 'futuristic' features to our game, or should we put our focus elsewhere?

I'm lead programmer in a medium-sized indie game studio. This is our first game as a team. We're working on a futuristic FPS game, with a profit-sharing buisness plan. Anyway, we have some very good ...
7
votes
2answers
660 views

What score/level function is often used?

In many games you raise a level when you reach a certain score, and later levels are harder to reach than in the beginning. I am suspecting that it is some sort of exponential function that is used ...
5
votes
2answers
714 views

How can I make the switch from immediate mode to VBOs?

I've been using OpenGL for a short time now- and I'd like some clarification on VBOs. As I understand it, a VBO is an object stored on VRAM. In immediate mode, to apply a texture we simply bind it and ...
14
votes
3answers
590 views

Tangible benefits to speed-coding your personal game projects

I noticed a few programmers setting time-sensitive challenges for themselves, usually in the area of "write game of type X in Y amount of time" or "write X number of games giving only Y time for ...
3
votes
2answers
332 views

Starting a Game Dev Incubator - Engines to Start With?

I'm currently in the process of developing a technology incubator in my region to cater to game development professionals and aspiring devs and I'm curious about what engines are best to use, with ...
-3
votes
1answer
310 views

programming light sources in java

I was making a game and I wanted to program light sources but I don't know how to. every where I search it comes up with lightweight java. Can any one offer any help. Its a birds eye view mmorpg. Can ...
3
votes
2answers
362 views

VS deployment problems

I created an installer for my XNA demo in the hopes that people could just download it and use it. It runs perfectly on my computer, however on others, it installs fine, but the demo doesn't run and ...