0
votes
1answer
15 views

Shader - Color blending

I would like to know how to blend colors in a specific way. Let's imagine that I have a color (A) and an other color (B). I would like to blend them in such a way that if I choose white for the (B) ...
0
votes
0answers
13 views

Creating 3D Room OpenGl [on hold]

I have started programming in openGl and learnt 3D concepts. I can make cube, rotate them etc. In many projects I saw this wall and i wonder how this is created (just the walls, not the lightning or ...
0
votes
0answers
4 views

Question about installation of FNA

I am following this tutorial in converting my Monogame game to FNA: http://gamasutra.com/blogs/MichaelHicks/20140623/219612/Converting_an_XNA4_Game_to_FNA.php However in the first step it says "Make ...
1
vote
1answer
99 views

How can I use CCClippingNode to trim the top and bottom from a CCTableView?

I'm fairly new to Cocos2d and struggling with sizing a CCTableView. How can its height be controlled so that I have space at the top and the bottom? I'm trying to visually wrap the top and bottom of ...
9
votes
5answers
1k views

How to detect and prevent abuse (botting) of online game API?

I have been ocassionally working on a game idea in my free time. The gameplay and content renders it to be implemented as a online multiplayer game built with well established web technologies. You ...
6
votes
3answers
185 views
+50

What is the local avoidance concept for RTS games?

Currently, I'm simulating physics impact forces for local avoidance of units but this method sometimes pushes units out of formation and has very undesirable effects when units clump up. For RTS ...
7
votes
2answers
309 views

Can adversarial agents flip coins?

I was thinking about peer-to-peer games by considering a simple coin tossing game. You open up your version of P2PCoinFlipping Beta 2.3 and it displays a list of player name servers. After ...
1
vote
1answer
661 views

Spritekit - gradually apply force vector in different direction (space ship turning)

I have a space ship that I'm applying a force vector to using a joystick for control. I would like this to smoothly fly around when I'm switching directions.. Exactly like minisquadron if you've ...
-1
votes
0answers
5 views

Errors with draw two images

I want to draw two images, but java create only one, please help. public class Game{ public static void main(String[] args){ JFrame frame = new JFrame(); Player player = new Player(); ...
4
votes
1answer
335 views

Unity3D [C#]: How do I use a custom inspector to expose an array of polymorphic objects to edit?

[EDIT: based on some feedback, I pruned the example down to the base functionality of the bug we are trying to solve. The description below remains accurate, but the repro has been shortened to: ...
1
vote
1answer
44 views

Best way to calculate city influence maps similar to civilisation?

As the title says, imagine you want to generate the influence mask for a city, given that the map is a 2D grid rather than hex. An extra bit is that different points on the map might have different ...
1
vote
1answer
74 views

Pre-calculating skeletal animation data

I'm working on skeletal animation and so far I've got the skeleton drawn with interpolated animation working (just on the cpu still). I was thinking about changing my file format for my skeleton and ...
4
votes
4answers
360 views

How to avoid duplication using client-server model

I am using a client-server model to write a multiplayer-capable game (in Java). Currently the clients and the server are using the same code to run the game logic, in order to enable client-side ...
0
votes
0answers
22 views

Communication in a simple GUI (C++ / SDL2)

I've spent a few months now working on a fairly simply 2D game engine with SDL and C++. I'm now trying to develop a simple but well-featured GUI suitable for most games. Right now I'm really ...
0
votes
2answers
13 views

Unity2D Sprite flips camera when moving left and right

I am using the Unity Engine and coding in C#. I have a sprite as a parent with a main camera as a child so that the main camera follows the sprite. However, when pressing 'A' and 'D' to move the ...
1
vote
2answers
190 views

Skyrim Creation Kit - Location Based Spells

I'm making a spell that'll place a soil patch on the ground in skyrim, and I cannot get it to work. I would like some help. When I tested the spell in game, no soil patch appeared on the ground. I ...
0
votes
0answers
24 views

Source Engine - Version of Portal 2's PeTI for other games?

Is there a portable version of the PeTI editor that does not rely on Portal 2's game files for map development? I don't want to use something as advanced as Hammer Editor yet.
0
votes
0answers
25 views

How to move a cube withour rolling it?

I am trying to move a cube with my keyboard on a plane surface. However, the cube always rolling instead of moving. How could I slide the cube on the plane? What I have done: I added a plane game ...
0
votes
1answer
100 views

How do I ADD gravitation to a rotation matrix?

I have ported the Matlab script from https://instruct1.cit.cornell.edu/courses/bionb441/LSystem/ to POV-Ray and everything works fine (although I'm not quite sure why). To navigate a "turtle" through ...
1
vote
2answers
48 views

How to detect collision of a wall with grid movement?

I have this little game, where my player is moving around a simple level, using a grid based movement script (See code below). My problem is that I have tried to implement a 2D raycast, which has to ...
-1
votes
0answers
31 views

What would be the “current trend”? [on hold]

I'm looking to make a game that fits the current trend of games and blends in well. Zombies are possibly the most over used enemy in any video game EVER, so I don't want that. Futuristic is already ...
-4
votes
0answers
16 views

C# Game with Windows Forms Graphic [on hold]

Hi i'm making simple c# game , and I like opinions is it good for a beginner Here is the link of the game . (link removed) Feel free to give your critical opinion
3
votes
2answers
169 views

2D Physics: What happens with torque when center of mass changes?

Novice programmer and explorer of simple 2D physics, here. I have a simple 2D object made up of two rigid bodies connected at a fixed joint. The two rigid objects can rotate freely about that fixed ...
-1
votes
0answers
25 views

Where should I start individual development? [on hold]

I'm not completely sure if this is the correct place to post this, but I need some guidance. I'm 15 years old, and a sophomore in High School. I want to either be an electronics technician or a game ...
0
votes
0answers
19 views

New way to control games by training custom behaviours? [on hold]

Given: An artificial recurrent neural network An avatar An behaviour editor A gameworld Some physics So the basic idea behind the Concept is that regular "computer interpreted game-input" is okay ...
5
votes
5answers
8k views

Any reliable polygon normal calculation code?

Do you have any reliable 3d polygonal face normal calculation code? Any language will do, I'll port it to make it work. Even if you find some code in a 3d game engine and post it here I'll be more ...
0
votes
0answers
21 views

Whats causing this weird texture stretching on my mesh?

Making this mesh via code and the texture seems to only tile on the sides, but not on the top. Any idea whats going on? public class CoreMeshCreator : MonoBehaviour { //Initialization public void ...
0
votes
0answers
19 views

XNA 4.0 - Using premade .xnb font files

Basically, for our college project, we need to use a font in xna. The only problem is that we are not allowed to install it due to admin rights. Is it possible to use and load the .xnb file that gets ...
0
votes
1answer
80 views

Collision-Detection glitch

Here's my project I am currently making: http://murplyx.net/sss/ Press 'D' and hold, and as you can see the Box just tunnels through one of the Line Segments. I have a swept test implemented, so why ...
-1
votes
1answer
28 views

How do I make my character run infinitely? [on hold]

I got my character running right (can't run left) and jump but I don't know how to make him run infinitely can anyone help? using UnityEngine; using System.Collections; public class Player: ...
-3
votes
0answers
60 views

What are the basics to game development with python? [on hold]

I'm not a pro at python so how can you make games using it? Please tell me the basics.
0
votes
0answers
15 views

Unity - Get Local Mouse Position from the center of the Gameobject clicked on

I want to get the mouse clicked position from the center of the gameobject, say a Sphere of Scale(1, 1, 1), for instance. If I click on the center of the sphere it should return the x component as ...
-1
votes
0answers
13 views

How to make object to stop moving

I'am making the game in Java, and I'am make the object, and she move, but i don't know how to make it stop. public class Player extends JPanel implements ActionListener, KeyListener{ // Varibles ...
1
vote
2answers
121 views

Unity2D: Automatic scaling of camera and sprites

I'm working on a point-and-click adventure game using Unity2D for mobile devices and possible PCs and I'm trying to wrap my head around supporting devices with different screen sizes and aspect ...
7
votes
5answers
409 views

What is the line between a serious game and an application with points?

Gamification has become a buzz word lately and is being applied to everything from applications to meetings. In many cases it is being done as an afterthought and sort of game-washing. What are the ...
2
votes
2answers
2k views

Creating 2D billiard game with realistic movement [on hold]

I'm new to XNA and game programming. I'm creating a 2D billiard game and I want to add balls with realistic movement (like 3D). Is it possible to achieve this without using 3D models? I only want to ...
5
votes
2answers
862 views

How to design AI to understand its selling decisions?

I am programming a game where there are 4 competitors (players) who have finished goods that they can then sell to given markets for which they have (at most a single) contracts for. Any finished ...
3
votes
1answer
51 views

Determine if an object is inside a ship's turn radius, rotation via torque

I have a 3d space game where all ships move around using physics. I am trying to determine if a given object is reachable by a ship at a given velocity and turn radius. I believe the formula for turn ...
1
vote
1answer
121 views

Mesh fading to transparent

I have a 2D Mesh object generated at runtime painted all with uniform color. I want that mesh to have its color fade to transparent color close to the edges. Despite I searched everywhere I could not ...
0
votes
1answer
297 views

How do I animate Unity GUIComponents?

I want to transform my GUIWindow from the bottom of the screen to the middle whenever the user presses a button. How can I do this?
0
votes
0answers
10 views

LWJGL Using .setIntialBackground and Drawing Textures?

I have been trying to create a game with LWJGL, however I have recently discovered that changing the background color using Display.setInitialBackground() with glClear and trying to draw a texture at ...
0
votes
1answer
184 views

Programmatically creating sprite animations in Unity

Some background: I have a set of animated gifs which I've converted to spritesheets, which are then imported into Unity as multiple sprites. The end result is that each spritesheet in the Unity editor ...
0
votes
1answer
22 views

How to convert pixels to meters in Box2d with Cocos2d-x 3.5?

I am using Cocos2d-x 3.5. I created a simple game with edge bodies and one circular body to test box2d. Physics wasn't working well, so i thought i should convert pixels to meters and use that meters ...
1
vote
0answers
19 views

How to extract the texture from an image onto a mesh?

(preamble: I think this fits either here or SO with computer vision tag, I chose gamedev because I think you guys are probably really good with textures and meshes, but tell me if my decision was ...
0
votes
0answers
28 views

tex2Dlod to limit max mip level to use for a texture (atlas)

I'm developing a 3D multitexturing terrain engine in C# on Monogame (XNA) plateform. I would like my engine works on Windows XP or upper, so on DirectX 9c minimum. Monogame allow me to build a DirectX ...
0
votes
1answer
95 views

Raycast Flashing problem

Can anyone tell me what is wrong with me code ? If you can see, whenever the player is in range of the raycast. The enemy turns red. But for some reason. Even when the player has meet the requirement ...
0
votes
1answer
45 views

OpenGL Blending Format

In OpenGL, is there a format for a texture in glTexImage2D that prevents blending, or do you have to disable it using glDisable(GL_BLEND). Reason for use is that I would like to store additional data ...
1
vote
2answers
2k views

Applications of calculus?

I understand that basic calculus is applicable to game development, particularly physics. Problem is, I'm not entirely sure how. So, what can I use it for? I'm most concerned about what's on the AP ...
1
vote
2answers
94 views

StopCoroutine is not stopping my coroutine in Unity

I'm getting some attacking to work with my units and I noticed that the coroutines seem to start adding up even after the StopCoroutine(IEnumerator) as need called. I dug around on ways to perform ...
1
vote
2answers
373 views

Should I draw directly on a CCLayer or a CCSprite?

Now I am a little confused in my cocos2d-x cpp project. I want to draw lines with user's finger touch. Following the screenshot of a CCScene: In the screen, there are two squares. I want show an ...

15 30 50 per page