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
1answer
621 views

How to make minecraft like world round?

everyone! I'm interested is there a game or at least example which shows how minecraft-like world turn to sphere? Idea is that there is sphere which consists from cubes like in minecraft but they ...
1
vote
1answer
714 views

How can I create an extending chain like the hookshot in Zelda in Unity?

In the Zelda games, there is an item called the hookshot. It is a small mechanical apparatus held in one hand that acts similar to, but not the same as the gun. When it is triggered, the hook at the ...
-5
votes
2answers
143 views

Why should I write a computer program if I don't know exactly how the program gets run in its entirety? [closed]

One can not simply just write some code and competently believe they know how their little MAIN.exe is getting executed underneath the exposed API functions. I want to know deeper on how my games are ...
4
votes
2answers
455 views

Mobile Multiplayer games and coping with high latency

I'm currently researching regarding a design for an online (realtime) mobile multiplayer game. As such, i'm taking into consideration that latencies (lag) is going to be high (perhaps higher than ...
11
votes
4answers
695 views

What's the difference between a “Gameplay Programmer” and a “Gameplay Engineer?”

I was reading some job descriptions from some AAA developers in the gaming industry, and I noticed there were jobs for "Gameplay Programmers" as well as "Gameplay Engineers." Are those the same ...
5
votes
4answers
343 views

Networking gampeplay - Sending controller inputs vs. sending game actions

I'm reading about techniques for implementing game networking. Some of the resources i've read state that it is a common practice (at least for some games) to send the actual controller input across ...
0
votes
1answer
96 views

Displaying performance data per engine subsystem

Our game (Android based) traces how long it takes to do the world logic updates, and how long it takes to a render a frame to the device screen. These traces are collected every frame, and displayed ...
4
votes
1answer
157 views

Time critical events based on framerate

Problem Description Basically, I've made a "programming game" in which I've made my own scripting language. It is a completely standard Lunar Lander game, though instead of directly controlling the ...
-1
votes
2answers
537 views

Newbie game programmer - Where do I start? [closed]

Okay, so I have been really inclined towards game programming this past few weeks. I have primarily been a web programmer and know a fair number of lanugages like PHP, Java, javascript, python, etc. I ...
-1
votes
2answers
149 views

What libraries and tools does LISP have that's usefull for games? [closed]

LISP is my favorite language and i don't wanna use c++ or any other language, but i don't know if there are much support for tools for game making, and i cant find much on the internet, anyone care to ...
14
votes
2answers
1k views

Best way to gain C++ working experience for a job in games (coming from C#) [closed]

I am a software developer, experienced with C# (5 years experience) alongside a few other languages. My "dream job" is working in video games as a developer. Most jobs require knowledge of C++, ...
2
votes
1answer
188 views

Implementing a wait function in a game script

I have been implementing behavior for enemies in my game and so far I have been doing it sort of like below: public void update() { if (frame > 60 && frame % 30 == 0) { ...
15
votes
5answers
2k views

How do I implement a programming system in my game that is both accessible, powerful, and fast to code in?

I'm currently working on a space-based sandbox game which will heavily feature the ability to custom program your systems. I want to implement this in a way that is both accessible, powerful (bare ...
5
votes
1answer
737 views

What underlying character stats would you put into your “character” object in an RPG engine

basically I'm making my own RPG/TBS engine named Uruk (making an rpg themed about the epic of gilgamesh) and I am thinking of a combat system similar to the Disgaea franchise or the Super Robot Wars ...
-2
votes
1answer
374 views

How to start graphics programming? [closed]

I'm trying to find a complete guide for OpenGL programming but all i can found is some blogs with non-finished lessons and old books. I don't want to just make a game, i want to develop my own game ...
2
votes
2answers
132 views

How to handle and make animations?

I just finished a game for my design class and I ran into a problem that I always have but this time I'm going to learn the right way to do it. I was making the background animation for my menu in ...
14
votes
4answers
1k views

What is “tools development?”

I have been looking at different jobs in the games industry and a lot of the jobs that I have seen advertised are for a "Tool Developer" position. I do not know what this actually is. Could someone ...
-1
votes
2answers
127 views

Giving the update function a history

I am using Unity but this is an issue, that can be applied to every programming language. I only have one Update-Function. function Update () { } This function runs each frame. If I want to ...
-2
votes
4answers
353 views

Making 2D Games [closed]

I am starting out on making my own games. I am very interested in making 2D side scrolling games, such as SNES/Mega Drive games and eventually I want to create my own Metroid/Cave Story inspired game. ...
2
votes
2answers
82 views

Relevant file paths for reading in from a file?

Working on something in XNA, need to be able to read in data from a text file for something. Trying to figure out how I can shorten this pathname down, so instead of it always checking there, it just ...
4
votes
1answer
195 views

One job per method

I always hear things about that each method should only do one job. But lets say I got Update() method in my game that updates entities state, path finding, player position, etc. Should I refactor ...
4
votes
2answers
165 views

What's involved in resetting the graphics device?

I'm playing with XNA 4.0, VS2010. I've created a window (not maximized) and drawn some sprites. All is good until I resize the window, after which the sprites stop displaying or only partially ...
0
votes
1answer
106 views

Why does this LUA code not render any objects on the screen? [closed]

Did I mess up something somewhere? If i put a putsxy in the same box, it renders a string just fine, but for some reason this code hates objects. What this code is supposed to do is render a set of ...
8
votes
5answers
663 views

How can I update Display settings from an Options screen without restarting?

I'm currently creating a 2D RPG in C++11 with Allegro 5 and boost. My goal is to somehow update my game settings when an option is changed in the Options Menu. I don't want to force the user to ...
1
vote
1answer
452 views

How to handle a player's level and its consequent privileges?

I'm building a game similar to Mafia Wars where a player can do tasks for his gang and gain experience and thus advancing his level. The game is built using PHP and a Mysql database. In the game I ...
-1
votes
2answers
115 views

adding space between each bricks in breakOut [closed]

i am trying to create breakout. code below loop though my 2d array(map) and creates bricks. the problem is that i want to add 10 pixels space between each bricks. i was thinking to add ...
0
votes
1answer
80 views

cost of Adding Social Feature to your game such Creating guilds/guild chat [closed]

I'm making a f2p game in unity C#. The game currently has no social features. I would like to have players to have their own accounts and also a guild tab. This tab is where they can create a guild ...
18
votes
1answer
824 views

Which features belong to the engine and which ones to a game?

Right now I find myself implementing and testing new features of my 2D game engine by directly coding them into engine. Simultaneously I have a showcase game (with scripting support) which should call ...
-1
votes
1answer
4k views

Is it possible to earn money with GameMaker if your game is good enough? [closed]

I'm a graphic designer and will be graduated from school in 6 months. I would like to start developing my own game. I don't know any coding language but I'm familiar with the methods of it. When I ...
1
vote
2answers
1k views

How to I rotate a triangle by dragging the mouse in libGDX?

More specifically, I have rotation working in a way I don't like as follows: //Draw the triangle using this draw method //batch.draw(texture, x, y, ...
1
vote
1answer
516 views

Selecting and moving object in OpenGL Gameplay3D Engine

I'm using Gameplay3d as a game engine to develop a simple board game. PEG Solitaire I've come to the part where I've created a 2D grid for all the movable object, empty locations and also where it's ...
1
vote
1answer
476 views

Are interleaved vertex data formats better than non-interleaved formats?

I have been reading up on data formatting for 3D objects so that I can render my meshes as fast as possible in OpenGL. I am quite new to OpenGL so bear with me. The format for interleaving your ...
2
votes
2answers
254 views

Is there a 3d animation software that prioritizes working with code rather than GUI? [closed]

All of the 3D animating softwares I've faced are centered around using GUI to work: windows, menus, mouse clicks, mouse adjustments, keyboard shortcuts. As a programmer, I find that limiting. In order ...
2
votes
1answer
87 views

Augment an existing game with touch gestures

I want to enhance Homeworld 2 gameplay with touch gestures. The game is running on Windows. So, two questions: Is it possible to wrap the game with a program that would capture touch gestures, ...
2
votes
1answer
160 views

Deep copying or cloning in actionscript 3

I would like to make a mirror reflection of an entity in Flashpunk. So I would like to copy a spritemap from one Entity to another (reflectionEntity). If i use something like this ...
4
votes
1answer
166 views

How to setup a client to work with a remote server or a local included server?

I'm working on a Networked multiplayer game, but while developing and for testing I want to set up a local server that acts like the multiplayer server. My thought is to approach the server as a ...
1
vote
2answers
740 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 ...
-3
votes
2answers
268 views

Need help with game development. (I know C++ and I need to learn an API) [closed]

I know C++ but I don't know an API looking at Directx. I can't find any good tutorials and really need some help to start 2D game development. I'm doing an game development focused Art course that ...
0
votes
1answer
205 views

Simulating flight dynamics in two dimensions

I have decided that in order to improve my math skills and game programming skills I am going to work on a two-dimensional space simulator. The view of the player or camera will be from inside the ...
2
votes
2answers
248 views

Looking for an elegant way to represent fixed parts of a randomly generated level map

I'm coding from scratch a small experimental game on a medium-sized random rectangular square tile map. (Say, a map of a dungeon.) There are several types of tiles (for example: floor, wall, monster, ...
1
vote
4answers
3k views

How to differentiate between instantiated objects in Unity?

I'm currently trying to solve a way to go about the following problem before I start writing any code (the old fashioned pen and paper way) but I'm not sure how I could achieve the following. I'm ...
1
vote
2answers
298 views

How to store different abilities in player class?

So, I have a player class with basic actions. During the gameplay he unlocks new abilities. I don't know how to store new actions within the player class. To be precise - I know how, but my method ...
1
vote
1answer
382 views

Keybindings in Unity

I need to know how to bind keys to actions through Javascript within Unity. When I develop web applications, I normally use this: var KeyBind = function() { if (document.addEventListener) { ...
3
votes
1answer
71 views

Retrieve outer most points on a 2d graph

G'day everyone, I have a 2d graph which has some points plotted on it. What I need to do is get only the outer most points so that I can connect them up (isn't really relevant). What I can't seem ...
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 ...
-3
votes
2answers
306 views

How can I really master in game programming? [closed]

Game Programming is fun and interesting. To develop games I have to learn several languages, game engines and should have sound knowledge in Math. But what I'm really looking is how to be a master ...
2
votes
1answer
395 views

UDK Fixed AIController / Pawn Height

[I already asked this question on the UDK forums, without much success though.] I'm using a class derived from AIController to control my pawn in RTS-style. My problem is that the pawn does not have ...
-2
votes
2answers
1k 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, ...
3
votes
0answers
68 views

Check key state or listen for event? [duplicate]

Possible Duplicate: Polling vs event driven input I'm trying to teach myself a bit of game development using Pygame, and I'm unsure what's the best way to approach some of the fundamental ...
21
votes
5answers
2k views

Try-catch or ifs for error handling in C++

Are exceptions used widely in game engine design or it is more preferable using pure if statements? For example with exceptions: try { m_fpsTextId = m_statistics->createText( "FPS: 0", 16, 20, ...