Computer programming is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs.
1
vote
1answer
16 views
Store and retrieve different objects on a tile
(I hope the title is clear enough, if not feel free to suggest a better one)
I'm trying to make a simple tile-based map for a college project in Java. But I'm stuck on how to literally place things ...
-1
votes
0answers
30 views
Game development without Science background
I'm a Bachelors in Commerce graduate working in an IT company as HTML developer! I want to know if, without any Science background, it will be possible to pursue Game development??
BTW, if it is ...
0
votes
0answers
55 views
Inverting Image?
Hi I have to invert and image
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
public class ImageManipulate {
/**
* The main method uses ...
0
votes
0answers
59 views
Does the sound need to be fixed?
Are there special requirements for audio for different devices?
I have been stuck on this for around two days now, and would really appreciate all the help I can get. I have some audio in my code. ...
5
votes
0answers
71 views
Load ads in splash screen?
This is my first question on gamedev.stackexchange. Currently, 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 ...
3
votes
1answer
72 views
How to make “Shaky mouse cursor” Before shoot the target Like in a Dart Game?
I develop a shooting game. To make it harder I want to make the reticle shaky/move randomly.
I use Robot class to move random as suggest here.
But I modified it by adding an infinity loop and by ...
1
vote
0answers
23 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, ...
2
votes
0answers
48 views
Conceptual question regarding Belief-Desire-Intent agent
I've been researching the Belief-Desire-Intent model and the way they used it in the original Black and White Game(which is the same, but they also defined decision trees as opinions).
I have a ...
1
vote
0answers
34 views
Are there games with player programmable vehicle control behaviour? [closed]
My question
Are there any (space/flying/driving) games where the player can customize the mapping between player controls and the input to the vehicle actuators/engines programmatically? (Yes or no.)
...
2
votes
2answers
55 views
IOS/Android Game programming [closed]
I am somewhat new to the whole game programming thing. I was wondering if I could develop a game for IOS and Android with using openGLES. if so how can I run the code on the devices and what are some ...
2
votes
2answers
64 views
Networking/Packet Design
When using a Client-Server model, it's necessary for those two parts to communicate data back and forth. There is one specific area that I've been thinking about and unsure about. That being putting ...
-2
votes
2answers
109 views
What software to use to make games for free with commercial use? [closed]
I am going to make a 2D game, I need free software for my team of five or less people. I should be able to sell in-game currency but the game will be free. The software should be able to compile the ...
3
votes
1answer
38 views
How to loop background music through splash screen, main menu, options menu?
I am making a small game to sort of test the waters with Game Maker and I'm trying to have an mp3 play when the splash screen loads - and persist until the game either ends or the game starts (meaning ...
1
vote
1answer
39 views
How to find if an object is facing another object given position and direction as separate vectors
I found a very helpful post about exactly what I need here. It uses dot products to which is what I'm specifically looking for.
It talks about players facing monsters basically. They give a helpful ...
6
votes
2answers
321 views
Pointers in C# Unity
Hey I've just learned about pointers recently and am wondering how I can use them in c# (I just learned about them in c++) in unity. I do have some questions though.
Pointers use low level ...
-1
votes
4answers
94 views
How do I implement an item that can hold other items?
I'm attempting to implement a "Storage Item" into my game. But I'm having trouble planning out how it would work. I already have an Inventory System made, but this Storage Item is giving me trouble.
...
14
votes
3answers
2k views
Separating Game Engine from game code in similar games, with versioning
I have a finished game, that I want to decline in other versions. These would be similar games, with more or less the same kind of design, but not always, basically things might change, sometimes ...
0
votes
2answers
85 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
32 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 ...
2
votes
0answers
96 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 ...
17
votes
4answers
3k 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 ...
1
vote
1answer
84 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 ...
0
votes
2answers
145 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 = ...
2
votes
1answer
101 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
18 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
1answer
18 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.
...
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 ...
2
votes
3answers
156 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
0answers
16 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
85 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
89 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 ...
0
votes
3answers
166 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 ...
1
vote
1answer
60 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
2answers
171 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 ...
3
votes
2answers
160 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.
...
0
votes
1answer
117 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 ...
0
votes
1answer
83 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
83 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?
0
votes
0answers
68 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
180 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
152 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
137 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 ...
2
votes
1answer
248 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 ...
4
votes
1answer
280 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
36 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 ...
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
266 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 ...
1
vote
1answer
88 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, ...
0
votes
1answer
82 views
Gravity: Slow down on ground approach
I'm looking for some math, nothing language dependant.
"Standard" gravity for a character in a 2D game would go something like this:
if player.y > ground.y {
player.velocity.y = ...