Development is undertaken by a game developer, which may range from a single person to a large business. Mainstream games are normally funded by a publisher and take several years to develop. Indie games can take less time and can be produced cheaply by individuals and small developers. The indie ...

learn more… | top users | synonyms (1)

1
vote
1answer
98 views

Why did DirectDraw allow developers to directly write to GPU VRAM?

I'm reversing an old DirectX 7 game and I noticed that it sometimes uses Blt and BltFast but at other times, it locks the directdraw surface and directly writes to GPU VRAM. Why did developers take ...
0
votes
2answers
187 views

How to avoid repeated instantiation and garbage collection for a trivial class?

I am developing a 2D tile-based RPG game for desktop and (hopefully) Android. To represent a tile location in the game, I am using a class called Location, which has a value for x, y, and room. room ...
2
votes
2answers
140 views

C++ Snake Game Fruit: Change Coordinates or Spawn New Object?

I've decided to lean SDL and make a Snake game. I have gotten to coding the spawning of a fruit, which the snake eats to get longer. Every time the snake eats the fruit, the fruit needs to change to a ...
2
votes
1answer
154 views

Structuring a Game with Angular.JS [closed]

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to ...
2
votes
1answer
165 views

When to lock an object in a game

I'm writing a game in Java where each game object has a number of properties, but these can all be changed in one of two ways: Every second, a tick runs which may automatically cause a change. Users ...
0
votes
0answers
25 views

Abilities interacting with aspects of other abilities - how to implement efficiently

In my game I want characters to be able to cast spells which deal a certain amount of damage of a certain type to other characters in the game. I also want abilities that negate an amount of damage ...
14
votes
6answers
9k views

What technologies are used for Game development now days? [closed]

Whenever I ask a question about game development in an online forum I always get suggestions like learning line drawing algorithms, bit level image manipulation and video decompression etc. However ...
0
votes
1answer
38 views

MVC design in Cocoa games: Is it possible?

I'm working on creating games on OS X, using the Cocoa framework, the probably only and best way to utilize all the capabilities of this operating system. Since Cocoa is MVC, I have to frame my games ...
0
votes
1answer
200 views

Are there any flaws or oversights in the design of my OO video game inventory system?

I'm making a video game and and I would like to know if my OO Inventory System has any flaws or oversightes. Here is the the item system anything that can be stored in an inventory system is an item....
9
votes
4answers
127 views

Choosing a sequence of animations for an NPC - use a behaviour tree?

I am implementing an NPC to walk around a virtual space, specifically a cat. I have a series of short animation clips (3-5 seconds). My first instinct was just to choose a random animation when the ...
1
vote
1answer
73 views

Is this indexed approach to java rts game development valid and how can I improve it?

I have class GameState laid out to basically hold an Array of Players, an Array of StarSystems, and a few other fields that need to persist from save to save. Each GameObject keeps track of its own id,...
21
votes
3answers
9k views

Best techniques for an AI of a card game

I’m trying to develop an AI for a card game and I’m a bit stuck about the technique/algorithm I should use. Here are a few assumptions about the game: After the cards are distributed to players, ...
0
votes
0answers
72 views

Best architecture for customising the character

I want to customize the game character before starting the level, for example, select what kind of weapon, armor, clothes, etc. There are several components and each component consist of several types....
1
vote
1answer
420 views

How to better isolate JOGL or LWJGL3 dependency from game clients?

I'm currently working on a project to develop a relatively small framework with the goal of supporting game development efforts for students in a course. The scope of this project is an OpenGL-based ...
40
votes
4answers
13k views

Developing a feature which sole purpose to be taken out? [closed]

What is the name of the pattern in which individual contributors (programmers/designers) developed an artifact for the sole purpose is to serve as a diversion so that management can remove that ...
6
votes
1answer
115 views

How to allow for custom Rules in a Entity Component System designed game engine?

So I've been doing a lot of research into game engines, and Entity Component System (ECS) seems to be the most flexible and extendable design to use. Just to summarize, in ECS the basic idea is that ...
0
votes
1answer
154 views

User browser, WebSockets, server C#/MVC, game

Moving a windows desktop game to a web server based one. User will use a modern web browser and communicate with the server via WebSockets (SignalR). Server runs .Net4.5/MVC - ie stateless. Game ...
18
votes
4answers
1k views

Generic rule parser for RPG board game rules - how to do it?

I want to build a generic rule parser for pen and paper style RPG systems. A rule can involve usually 1 to N entities 1 to N roles of a dice and calculating values based on multiple attributes of an ...
2
votes
0answers
43 views

Polygon simplification that encloses original set of points

I have been trying to implement an optimization for 2D sprite rendering to fight the problem of limited fillrate on mobile devices. The idea is to render textured polygons instead of quads that will ...
0
votes
0answers
67 views

Libgdx texture and sound disposing

I'm writing a game and in the game, I use an asset manager that is in a singleton class, which holds my textures and sounds. If I create several enemies (lets say 4) which call upon my asset manager, ...
1
vote
1answer
50 views

Scheduling/suspending embedded interpreters

Let's say that I want to embed a scripting engine inside some other program, to allow users to create custom behaviours for objects. For example, when a particular event happens, the server would ...
9
votes
3answers
844 views

Is it reasonable to build applications (not games) using a component-entity-system architecture?

I know that when building applications (native or web) such as those in the Apple AppStore or Google Play app store that it's very common to use a Model-View-Controller architecture. However, is it ...
8
votes
3answers
3k views

What does (Lua) game scripting mean?

I've read that Lua is often used for embedded scripting and in particular game for scripting. I find it hard to picture how it is used exactly. Can you describe why and for which features and for ...
5
votes
3answers
945 views

Starting an HTML canvas game with no graphics skills

I want to do some hobby game development, but I have some unfortunate handicaps that have me stuck in indecision; I have no artistic talent, and I also have no experience with 3D graphics. But this ...
2
votes
2answers
278 views

Java Game. Preload objects and reuse vs create objects at runtime [closed]

I'm currently developing my first game in Java language. The game is an endless runner with obstacles to avoid and enemies to kill. Unfortunatelly im still not experience enough and many times im ...
6
votes
4answers
215 views

How to convert a possibly ever-increasing number to a finite scale?

This is common in games, specially management games like Sim City, Civilization, etc: you have actions which provide additional integer bonuses to a metric, but the metric itself remains in a finite ...
4
votes
2answers
320 views

What design pattern best suits managing handles to objects, without passing handles or Manager around?

I'm writing a game in C++ using OpenGL. For those that don't know, with the OpenGL API you make a lot of calls to things like glGenBuffers and glCreateShader etc. These return types of GLuint which ...
5
votes
2answers
206 views

Passing a list of choices with different arguments for each choice

I am writing a card game, in which I separated the "Core Logic" of the game from the UI. Communication with the player from the core logic part is done via callbacks which the UI implements and ...
0
votes
1answer
81 views

Is it a good practice to develop a video game for many platforms at once (using e.g. Unity)? [closed]

Multi-platform development tools like Unity offer us an ability to quickly deploy games to many platforms at once. However, I'm concerned about whether the final product will be any worse compared to ...
2
votes
1answer
199 views

Best approach to implement multiple levels of difficulty to a minimax AI [closed]

I'm programming a game (turned base, in a grid) for which I implemented an AI using the minimax algorithm (with alpha-beta prunning). It's all fine and working, but the AI is too good and I can't win ...
1
vote
2answers
97 views

Efficient 2d per pixel lighting on Android [closed]

I am trying to create a simple 2d game to learn on my own. My current task is creating a lighting scheme. My goal is to make the screen appear dark except where I create lights. I have a light class ...
7
votes
6answers
4k views

I made an HTML5/Javascript game. Do I have to license it?

So I created an HTML5/Javascript online game. I host it on my website for anyone to play for free. I am still currently working on it. Do I need to license my game? And if so, what license do you ...
19
votes
19answers
3k views

A free game-development language? [closed]

So, I'm trying to teach my much younger cousin a little bit about programming. My initial thought was something like Scratch or Alice, but there were a few downsides to that. Everyone seems to be ...
0
votes
0answers
60 views

How to use custom fonts in my game? (License question)

I would like to use Roboto font in my libGDX game, but it's licensed under Apache license 2.0. Do I have to include the font license file in my game if I want to use it? I am using internal storage (...
0
votes
2answers
257 views

in trouble making a card game with pygame

I am designing a card game playable against the computer. The rule is very simple Both player and CPU gets 10 cards of 1 to 10. Player and CPU plays a single card at the same time, every round. The ...
4
votes
3answers
820 views

Is this OOP class hierarchy too deep?

So I am making a Super Mario Bros NES clone in pygame and for all enemies that are drawn to the window, I have a class hierarchy that is 5 classes deep. Going in the order of: Object (A base class ...
1
vote
2answers
165 views

Is there a better pattern than multiple inheritance here?

I'm working on a server implementation for a large game with many gametypes. There are several kinds of interactable entities: players, monsters, objects, vehicles. All entities share the same base ...
18
votes
5answers
909 views

Algorithm for calculating a bullet path to a target with max. 2 ricochets

Sorry for the poor title but I didn't have a better way to phrase it... So there's this amazing game by Nintendo (yes!) on Wii called WiiPlay. There're 9 minigames in it, and my favorite one is ...
4
votes
1answer
99 views

How should keypoll functions be designed in games?

So I'm making a clone of Super Mario Bros in pygame. As of now I am in the middle of making my keypoll function, to check all the keys that are currently being pressed. I am wondering which would be ...
2
votes
2answers
259 views

Algorithm and data structure to match groups of users (1-5 each) into 2 balanced sets of 5 users

I'm building a matchmaking queueing service for a 5v5 team-based game. I have a large set of users that are grouped into unique lobbies comprised of 1-5 users each. Each user has an integer based ...
3
votes
1answer
86 views

How should one modularly implement related objects?

I tried to make the question title as generally applicable as possible, but I'm not certain I worded it so well. It was brought about by a very specific problem I'm having, and for the remainder of ...
4
votes
3answers
607 views

How to pick a random move/action/element non-probabilistically?

I am trying to create a simple AI that can play Go using Monte Carlo Tree Search. This question, however, is valid for all games where players take turns doing some action that, on average, reduce ...
24
votes
10answers
5k views

What's the proper way to model this real-world activity that seems to need circular references in OOP?

I've been wrestling with a problem in a Java project about circular references. I'm trying to model a real-world situation in which it seems the objects in question are interdependent and need to ...
2
votes
1answer
97 views

How to handle overlapping classes

I'm putting together a program to try and recreate a board game. My goal was to keep the rules and actually actions of the game separate from its presentation, so I am creating a library that contains ...
0
votes
1answer
136 views

Design: Bridge Game [duplicate]

I'm making revisions to a Console version of contract bridge I made in Java. The source can be found here: Bridge So most of the code is terrible and I've been trying make improvements wherever ...
11
votes
4answers
2k views

Create a behavior/Component based system for games

Background I do game development as a hobby, and am looking for a better way to design them. Currently, I am using a standard OOP approach (I have been doing enterprise development for 8 years so it ...
2
votes
2answers
82 views

Share some fields but others unique to owner of instance

I've been programming for many years and this is sort of a strange need and I've never seen anything like this but I have a game where there are abilities that you can do. There is an ability class ...
0
votes
2answers
865 views

Is studying algorithms important for game development? [closed]

I am fairly new in the programming world, I have a 1-year experience and I learned by watching online courses, and I made few iOS apps. Now I am moving into game development and I already ...
2
votes
1answer
335 views

Duplicate Account Detection - New Approach?

So I'm working on a web based game, and need to deal with the age old issue of duplicate account detection. Players often create multiple accounts to farm money/items etc to their main account, or to ...
1
vote
1answer
359 views

C#/MonoGame - Programming enemies and levels in external script files

I'm writing a little game using C# MonoGame and I have idea of scripting enemies in external script files (not necessarily in C#, maybe in lua?). So for example I have class Enemy in C#. And I want ...