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
56 views

What exactly is a 'set of states'?

Whilst looking into game-oriented applications of programming patterns I discovered a question on this site which suggests that a 'set of states' is superior to a 'stack of states' but does not ...
0
votes
0answers
20 views

unity game dev - Tanks tutorial - how would you do it differently [on hold]

I would like to use good practices when working with Unity, but I'm finding it difficult deciding on what good practices are. In order to address that, could you describe what you would do differently ...
-2
votes
0answers
39 views

Game programming for beginners [on hold]

im currently studying computer science the reason being that i want to be a game programmer and we are using java. Right now i want to start getting into the game programming stuff and i wanted to ask ...
0
votes
1answer
60 views

Implementing time step in main game loop

So ive read both http://gameprogrammingpatterns.com/game-loop.html and http://gafferongames.com/game-physics/fix-your-timestep/ and I kind of understand how I'm supposed to do it, but some parts are ...
1
vote
0answers
42 views

Which programming language should I start with in game dev? [closed]

I am a front end web developer and I've always been interested in building games. I work primarily with HTML, CSS, PHP, and JavaScript on a daily basis, so I'm not new to coding. I would like to ...
-1
votes
1answer
54 views

At which school levels do you learn to make games form scratch? [closed]

By which "school levels" I mean: high school, college etc.... So, I've just choose a high school in Sweden which has a game programming line. I read some on their webpage and what you will learn ...
1
vote
0answers
27 views

Help for structuring classes [closed]

I am creating a platformer game with some card base fighting. I was thinking about how should I structure my classes? There are 2 types of cards i.e. Continuous effect and 1 time effect. Also, they ...
1
vote
0answers
28 views

Picking college degree (want to be games programmer) [closed]

Alright, so I know there's plenty of questions that have to do with college degrees on this site, but I don't feel that any of them really answer my question. I recently got accepted into Northeastern ...
1
vote
3answers
89 views

Ways to track time and character ages across many years of game time?

I'm working on a system to track large numbers of characters across long periods of time. Characters grow old and die, give birth to new characters, etc. It's a grand-strategy game, with warring ...
-1
votes
1answer
45 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 ...
4
votes
2answers
101 views

Decoupling input from game states / entity behavior

I'm looking for a way or general best practice advices for decoupling the architecture of my game, in the example below the input from the current game state workflow / entity behavior. While I'm all ...
-1
votes
1answer
44 views

Unity3D 5 Personal? [duplicate]

I want to make a game in Unity3D and I am planning to launch it to Android using the free license. However, if the game becomes a huge success and earns more than $100k, does (a) unity take the money ...
-1
votes
1answer
45 views

Quite conflicted on advice given to “learn programming” for game development. [closed]

I have been reading a few sources online that talk about learning programming with the end goal of game development in mind. I have heard many people saying that starting with Unity is the best way to ...
-1
votes
1answer
41 views

How are pocket dimensions created in multiplayer games? (programming aspect) [closed]

How do multiplayer games deal with multiple instances/dungeons/regions? I'm familiar with server clustering which is what larger games use such as Eve and World of Warcraft. How do games such as ...
0
votes
1answer
76 views

Good Resources for Random World Generation [closed]

Is there a good reference or tutorials available for adding world generation into a 2D game? I've gotten to the point where I have most of the resources available to add world generation but I don't ...
4
votes
1answer
83 views

In a 2D multiplayer game should I send the position of user to the server all the time? [duplicate]

In a 2D game where the user moves with the keyboard arrows, should the user send all the time he moves his position (x, y)?. If the user has some speed, the user would send (x, y) like 50 times ...
0
votes
0answers
35 views

Problem with Collision Detection

So I am adding collision detection into my game but whenever I start the game I get a rendering crash saying that there is a 'Game.update() failure - check the game code.' I have repeatedly tried to ...
0
votes
1answer
47 views

My game has messed up layouts!

Earlier, I asked this question: Landscape mode for game? Where I had a directory for each and every layout, but the layout in the layout-land directory wasn't showing up when positioning my layout in ...
1
vote
1answer
24 views

Error When Loading a .tmx TILED map through the TiledMap class

So I made a map using the TILED application and I have it as a .tmx for reasons, but whenever I use the TildMap class in the Slick2D library to render the map on the screen, it gives me an error. Here ...
0
votes
1answer
72 views

Is It Better To Generate A Pre-Generated Map or A Randomly Generated Map When Using Tile Properties? [closed]

So I am contemplating whether or not to add a Pre-Generated Map or a randomly generated map into my game. But I also need to add Tile properties into the map (i.e. so that water tiles aren't being ...
1
vote
2answers
116 views

How to make a “Camera” in Java

I need some help with getting my camera to work in java for a game that I am making. The problem is is that I've never made a camera in a game before and this is my first time trying to make one in a ...
1
vote
3answers
203 views

Can't parent the standard FPSController during gameplay

I'm parenting the standard assets FPS controller during play with a simple script. The controller get's parented but also instantly inherits the rotation of the parent. This doesn't happen in Editor ...
0
votes
1answer
26 views

Stopping Animations For Player In Java Using Slick2D

I have a problem with stopping animations for a player in Slick2D. I have tried many solutions to the problem and have looked up a couple of resources but I am still stumped by the fact that it is not ...
4
votes
1answer
56 views

What is an OO way for my input layer to act upon objects?

I'm building a top-down RPG specifically to practice Object Oriented thinking and design. I am keeping in mind coupling, single-responsibility, and so forth. One design issue that's been bugging me is ...
0
votes
2answers
67 views

Trying to use yield to wait for a few seconds to avoid the sounds from Interfering with each other

Ok so when my player hits a wall (Enemy tag). My player is destroyed after a certain amount of time. During this time, I disabled the mesh renderer on impact so it "appears" as if the player is ...
1
vote
1answer
80 views

Confused about this Timer function C++

I am confused about the argument "m" of this function. I also need to know how to make this work. I am working on a simple 2d game and I am really new to programming. I don't know how to make things ...
0
votes
2answers
68 views

Progress bar for EXP in javascript

So I am making an incremental game with Javascript, HTML5, and CSS, I need to have this bar that is esentialy a div with a p element in it "fill up" as the player earns more points through sacrifice. ...
-1
votes
1answer
78 views

Repeat a bit of code? [closed]

I want to complete a task, which assigns the variable randomButton a value. At the end, I want to check the value of randomButton If it is something I don't like, I want to re do the task where I ...
1
vote
0answers
56 views

Game is responding very slowly?

I have a very simple app which removes buttons and re-adds buttons to certain layouts when a button is clicked. The problem is, this process is taking a very long time. My question is: How can I make ...
1
vote
2answers
74 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 ...
-1
votes
2answers
92 views

How to model an Attack( ) action? How to model combat? In general, how objects communicate?

I never understood how would you elegantly describe two people talking in OO. I think this question extends to how similar objects communicate in general. I am designing a game now and Units have to ...
1
vote
1answer
48 views

Is There A Self Uploading/Downloading Game Management Software? [closed]

I am currently not in the game development industry and develop my own games using GameMaker, but as a high school student I don't really have the time to make proper titles and actually make money ...
2
votes
1answer
32 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 ...
0
votes
0answers
67 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. ...
8
votes
0answers
194 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: ...
3
votes
1answer
79 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
1answer
80 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
70 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
35 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
60 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
86 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
115 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
55 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
43 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 ...
7
votes
2answers
471 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 ...
15
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
86 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
34 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 ...
3
votes
0answers
120 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 ...