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

learn more… | top users | synonyms

0
votes
0answers
38 views

I need a program that can animate a terrain map for a Video Element [on hold]

I'm trying to create a 3D animation for an upcoming video project, but I'm very green when it comes to programming and After Effects can't create what I need. The goal is to have a 1980s style ...
5
votes
2answers
279 views

How to handle game states for a single-player / multiplayer game? [closed]

I'm developing a little simon-like game and I'd like to know what the best approach is when it comes down to game states. What would be the best approach? Creating different states/screens for ...
2
votes
2answers
2k views

Game-oriented programming language features/objectives/paradigm?

What are the features and language objectives (general problems to solves) or paradigms that a fictive programming language targetted at games (any kind of game) would require? For example, obviously ...
0
votes
1answer
16 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. ...
15
votes
3answers
5k views

Finite state machine in C++

So, I've read a lot about using FSMs to do game state management, things like what an FSM is, and using a stack or set of states for building one. I've gone through all that. But I'm stuck at writing ...
0
votes
1answer
52 views

unity3d - how to do pixel perfect movement with

How would you be able to move sprites move pixel by pixel in unity3d? I've tried the following things. I tried: int x = (int) transform.position.x; I tried: int x = ...
22
votes
5answers
3k 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, ...
87
votes
9answers
41k views

What are some programming design patterns that are useful in game development? [closed]

I have a few books on Design Patterns, and have read some articles, but cannot intuitively figure out which programming design patterns would be useful in game development. For example, I have a book ...
0
votes
2answers
79 views

Amount of Data Calculated in a Game [closed]

So... I am theorizing the development of a 2d living persistent fullsized world with simulated ecossystem, etc..., and many, many objects, but how can I handle the giant amount of data that will be ...
0
votes
0answers
26 views

Implement Special Effects triggered at certain moments in game

In my turn based RPG/Puzzle game I planned to have different Special effects, which enemies, weapons and armory can have. So for example an enemy can have a "poison" effect, which has a certain ...
1
vote
0answers
63 views

Learning Curve of GameMaker and its limits [closed]

I am a Data Scientist and the last couple of years, I work also as a Game Designer (not Game Development). I have not thought to create a game by myself, up to now. As a DS, I know programming, but I ...
6
votes
2answers
4k 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 ...
16
votes
4answers
2k views

What can I do to avoid one-off flags and checks throughout my code?

Consider a card game, such as Hearthstone. There are hundreds of cards that do a wide variety of things, some of which are unique even to a single card! For instance, there is a card (called ...
2
votes
1answer
102 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. ...
17
votes
4answers
2k views

Do higher-level 'Pure AI' concepts (such as Neural-Nets or Genetic Algos) ever get implemented successfully in commercial games?

Although graphics is my main area of focus, I've been dabbling with Game AI concepts for quite some time now; from simple A* path-finding to intricate Perceptrons.. My question is this; Does anyone ...
1
vote
1answer
66 views

Sliding DOOM style collision resolution against arbitrary 2D geometry

I've been working on a HTML5 canvas raycasting engine for the web browser, with the end goal of making a simple FPS game in the style of the early 90s. The engine sits somewhere between Wolfenstein 3D ...
1
vote
1answer
66 views

Need help with creating a stun gun. (Unreal Script)

I am fairly new to the programming world. I am currently at College and one of the tasks I need to do is create a "stun gun" or "freeze gun". Basically when you shoot a target (other player) i want it ...
1
vote
0answers
17 views

Subscriber with many publishers: unsubscribing

I hope this isn't too general, so I apologize in advance if so. I am creating a console text adventure game. I essentially have many monsters, one per room at the moment. I also have a God ...
0
votes
0answers
45 views

How can L-system detect intersections between two lines [duplicate]

I'm trying to create a Procedural Road system using L-system, but I have no idea that how can I detect is there intersection between two lines in L-system, I can use a for loop to check one line ...
1
vote
1answer
49 views

XNA C# Texture Atlases

Fairly new to XNA and not an expert on C# either. So I was following a tutorial, specifically this one http://rbwhitaker.wikidot.com/texture-atlases-1, and there is a bit of code I am unfamiliar with. ...
2
votes
3answers
148 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 ...
0
votes
0answers
13 views

Creating VR Headset Video

So I have a video stream of known resolution and I have a VR headset via HDMI at a known resolution. Is there an existing library to create the slight fisheye and side-by-side layout for these ...
4
votes
1answer
79 views

Cram search results into viewport (of a search minimap)?

I'm no coder, nor do I try to be. I just had one of those "it's impossible" arguments with folks who love to argue with me before they even understand what the argument is about :) So I need to ...
1
vote
1answer
73 views

What does cache mean? [closed]

I'm kinda new to the programming scene. I'm still a high school student but I want to be a game designer so I'm studying independently before I graduate to get an edge. The issue with this is that ...
124
votes
17answers
69k views

What math should all game programmers know? [closed]

Simple enough question: What math should all game programmers have a firm grasp of in order to be successful? I'm not specifically talking about rendering math or anything in the niche areas of game ...
3
votes
3answers
13k views

How do I tell if an object is currently colliding with another object?

I can't figure out how to tell if a GameObject is currently colliding with another in Unity. I've looked online and can't find any tutorials or answers that work. Also, what's the difference between ...
0
votes
3answers
159 views

Programmer career roadmap [closed]

this is my first post on this SE, and I have noticed the large numbers of closed/downvoted career-related questions, so I will try to ask in a fashion most gingerly. What would the career roadmap for ...
5
votes
2answers
664 views

Visual Programming tool for creating game quests

I've found a question for visual script editing software tool for creating game behavior logic, but I am looking for something more flexible. I would like to configure the tool to make it produce code ...
0
votes
1answer
100 views

Help with scoring system and score multiplier

I am new to the scripting world and I am currently trying to add a score multiplier to the game code I am working on. Right now the score is set to increase as the player runs across the level however ...
2
votes
2answers
157 views

How did Blizzard implement replay like in Warcraft 3 with not consistent data(attack damage)? [closed]

Units in wc3 has range of attack damage and it isn't consistent most of the time e.g critical hit and so on. Yet, they managed to make a replay that could even reconstruct bugs scene. I am just ...
5
votes
1answer
7k views

why is Lua so important ( frequently used ) in game development [duplicate]

I have written some small games for fun myself, but never used Lua myself. I have seen people discussing Lua's use in games everywhere. The question is: What benefit can I get from using Lua in game ...
3
votes
1answer
388 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 ...
0
votes
1answer
75 views

How does one write a wrapper for a game server? [closed]

From what I gathered, wrappers mimic the game server in question, receiving packets from client and sending them to the server (and vice versa). It acts like a bridge between the client and server, ...
0
votes
2answers
69 views

Custom key binding/mapping

Currently I am starting to develop my first serious game. Before the games are all training, and learning how to do things in a good way. Unfortunatly, I've missed a big part in my preparation: Key ...
-1
votes
1answer
129 views

Are there places in the gaming industry for people who are artistic and programmers? [closed]

Are there jobs, where you can switch from project to project between artistic roles (like sprite animations, concept art, visual development or even sound design) and programming roles?
3
votes
2answers
1k 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 ...
15
votes
4answers
2k 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 ...
0
votes
0answers
64 views

Gravity around a sphere with rotation? (Blitz 3D)

I've been making this space/moon type FPS game with Blitz 3D and I can't seem to get gravity working perfectly. Right now, it works, however when I go farther on the moon, I see that my character is ...
0
votes
2answers
368 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
2answers
160 views

Why it’s recommended to keep global variable initialization and the objects’ constructors very simple (C++)? [closed]

Considering game-development? I have this question in a gamedev quiz and I wonder what to answer. Any clues?
1
vote
0answers
124 views

How do I make a Minecraft recipe that costs XP?

I want to program a Minecraft client-mod or server-plugin that adds a recipe for making a Bottle o' Enchanting with the following ingredients: 1 glass bottle + 1 lvl of experience → 1 Bottle o' ...
1
vote
1answer
101 views

How to to convert UV coordinates to texel coordinates and how to convert texel coordinates to “array coordinates”?

I am currently writing a UV texture mapper. But i don't know how to convert UV coordinates to texel coordinates. And i also have no idea how i should convert texel coordinates to "array ...
1
vote
0answers
224 views

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

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 ...
2
votes
0answers
156 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 ...
3
votes
1answer
197 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
34 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 ...
81
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
202 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 ...
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
80 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, ...