1
vote
3answers
17 views

Make simple hit effect

I've made a game where you can shoot some cans, but I want to add an effect when a can is shot. You know, a kind of explosion or something like that. The way the game works now is: when the can is ...
0
votes
0answers
9 views

OpenTK Static Screen Scaling

In the OpenTK library a simple text rendering example is provided. Here is its source code for reference: using System; using System.Collections.Generic; using System.Drawing; using System.Text; ...
0
votes
0answers
7 views

Streaming to VAO VertexBuffer using OpenGL Direct State Access for Instancing

How do i stream to a vertex buffer using Direct State Access? I want to update my vertex buffer of matrices every frame so i can use it in my Shader. This is how i specify my buffer. I do this once ...
0
votes
0answers
14 views

Using a paypal account for the google merchant account

My country is listed as "not supported" in terms of a google merchant account, however I was wondering if I could link my paypal merchant account (or any other similar online payments) and use it to ...
-1
votes
0answers
16 views

C# - What's the best container for this job? [on hold]

I have a class, with a set off different data names (I store them in an enum), and I want to pair some of them with some data (pair, so if I query let's say "Color" I get the color value of that class)...
0
votes
1answer
17 views

Spell and Terrain Interaction in Game

I am currently thinking about working on a small game where the player has to get rid of mob waves in an arena. The game is going to be 2D top-down. What I want from this game is the player to be ...
-1
votes
0answers
34 views

Fixed time game loop - why Skyrim broke when FPS is greater than 60 FPS but no when it less than 60? [on hold]

This video from Skyrim is very interesting for me: https://www.youtube.com/watch?v=ShK5bo5KOz0 In the movie you can see how physics in Skyrim broke when fps is greater than 60. I understand what is ...
0
votes
0answers
7 views

Combine diffuse map and lightmap into one texture file

Working with Unity, I'd like to do some more memory optimization. Currently, my 3D models have a diffuse texture and a lightmap, both at the same resolution and compression. I was wondering if there ...
0
votes
0answers
5 views

Unable to find dependency com.android.support support-v4 23.1

I am Working with unity 5.3.4f1. I need to use google play service repo:37. This google play service use android m2repository and google m2repository. I have both installed from SDK manager still I am ...
0
votes
0answers
5 views

Unity VR / Shader / How to get current PixelPosition in VR through Depth-Buffer

In Unity you can access the Depth-Buffer in the Pixel Shader. With that Depth-Buffer and the Nearplane, Farplane, CamToWorldMatrix and FOV you can calculate every pixel position of the objects the ...
0
votes
0answers
12 views

How to stop a host from the client script?

I am developing a two player multiplayer game. Since its only two players, I don't want to keep my connection open if a player disconnects. Now this works well from the host side, through usage of ...
0
votes
0answers
10 views

Onscreen arrow indicator appears only when the user go near to the object

I have placed four gameobject at different place.And I have a player and have applied movement to it through keyboard control.I have added script for arrow indication towords this gameobject.But the ...
0
votes
1answer
42 views

What are some legal concerns I should have before consulting a web developer on an idea of mine

I have an idea for a web application but I am a little bit hesitant to consult a company due to fears of having my idea stolen. What are some preliminary tasks I should set myself before actually ...
0
votes
1answer
14 views

How to interop between DirectX11 in C++ with XAML&C# or should I turn to SharpXD

I'm writing a UWP program and I want to write the general UI in C#. But there would be some graphic demonstrations using DirectX on some SwapChainPanels in the app. I have found less than enough ...
0
votes
0answers
38 views

3.3x OpenGL Camera - What is this code doing : (?

I'm trying my hardest to understand what this code is doing so far I think the sin(theta) and cos(theta) of the code is representing a point with an angle. This point with an angle sin(theta) and ...
0
votes
1answer
31 views

Placing sprites properly to form an object

I'm working with XNA in Visual Studio, and I'm trying to draw this sprite: https://i.imgur.com/Dy5nSuG.png Only using this sprite: https://i.imgur.com/6T8TeTQ.png My current attempt relies on a ...
0
votes
0answers
9 views

Client-Server socket connecting problem with unity

I am working on connecting client to server.On the client part I have a button to connect to the server.When I click on the connect button ,its gets connected to the server(In the server app its shows ...
0
votes
2answers
29 views

Game Design: Colour units per team or per unit type?

In an RTS game where the units are viewed from the top so that they appear relatively small on the screen: What would be the best game design? Colour the units per team, for example: enemy is always ...
0
votes
0answers
12 views

how to represent rotation quaterion to another coordinate system

I am trying to combine rotation information from two system in a VR/AR scenario, one is a computer vision solution/ visual SLAM coordinate, initializing the first frame as the world origin as position[...
0
votes
3answers
49 views

Calculate damage values from bullet velocity and size

I'm trying to make a top-down game using javascript and Pixi which involves multiple different guns. Instead of giving each gun an individual damage value, I wanted to calculate the damage by the ...
0
votes
0answers
20 views

Python Pygame Collision with a Rotating character

Trying to make my character not be able to pass walls, I'm finding it difficult as my character rotates to face where ever my mouse is while moving with WASD to do this I have used self.pos to keep ...
0
votes
0answers
20 views

Check if SDL Window is open

I need to check if the game's SDL Window is open before I can start rendering graphics, normally I would know how to this, but the problem is the window is created in the main class, and I need to ...
0
votes
1answer
22 views

Convert array of object to json in unity

I need to convert the array of object to json. I have written code to convert object to json. How can I convert the object array to json format JSONClass jsonClass = new JSONClass (); jsonClass [...
0
votes
1answer
11 views

Creating a static background when using camera transforms in Allegro 5

How can I draw a static bitmap for the background of an Allegro 5 graphics window, if I'm using camera transformations to apply perspective to bitmaps in front of the background so it appears that ...
0
votes
1answer
12 views

How do I make wasd controls for a top down game in unreal engine 4.13.1

The title really says it all, I've been trying to make controls for a top down game in unreal engine 4 but I can't figure out how to make it and all the tutorials I've been seeing are outdated. could ...
1
vote
0answers
17 views

Unity: Editor Window not Syncing

I have four scripts: Engine has a list of MovementWaypoints. EngineEditor simply displays a button to open the window (this editor will eventually do other things). EngineWindow will manually add ...
1
vote
1answer
55 views

Implementing an AI controller for Pacman

I'm currently implementing an AI controller class that is being used to determine the moves that ms.pacman should make to collect pills and avoid ghosts. In order to determine which is the best move ...
0
votes
0answers
6 views

libGDX' parallel of Android's Region

I'm an Android programmer trying to migrate to libGDX. In Android I'm used to the Region class, which allows the creation of arbitrary shapes, including union, intersection and difference operations ...
0
votes
0answers
10 views

Use relative motion to get exact point of collision between two bodies in one dimension

I've seen many answers here saying that, to get the exact point of collision between two moving bodies, it's necessary to "make the movement relative." How can I do such a thing, and how can it help ...
1
vote
0answers
39 views

How to properly use Unity component approach?

It may sound like an opinion-based question, but I feel like I am not alone with such problem and this may help others too. I spent a lot of time trying to understand how to make things Unity-way, use ...
0
votes
0answers
15 views

Creating custom Networking for Unity

I have a server and a client set up with UDP and they can exchange messages in string format but how would I go from this to allow updates to gameObjects and scripts my thought would you would do ...
0
votes
0answers
23 views

Unity2D - Horizontal Scaling to Support Various Aspect Ratios?

I am trying to work out how to support various resolutions for my Android game. I have come up with a solution, but do not know how to implement it. Automatically, I am told that Unity vertically ...
0
votes
0answers
16 views

Binding the mesh to the skeleton

I know that the problem I have is an actual well-researched topic, but I tried almost the whole week now trying to google-fu an answer. I'm writing my own skinned mesh file format, but while the ...
0
votes
0answers
18 views

Abutting EdgeCollider2Ds creates occasional “bumps” at seams

I am trying to procedurally generate a smooth track surface. For this example I am using a prefab with an EdgeCollider2D of a fixed length (7.66) and simply laying them out end to end. A vehicle using ...
-3
votes
0answers
23 views

Visual studios community won't show my code [on hold]

A few months ago visual studios was working just fine but now when ever I enter gives me this: one or more projects in the solution were not loaded correctly. PLEASE HELP!!!!
0
votes
0answers
11 views

PolyMesh interpolated by Besier triangles is not smooth (?)

I implemented cubic Besier triangles patches (N-Patches] monstly following tutorial from gamasutra But polygon mesh (e.g. tetrahedron in following example) interpolated by that technique is not ...
-3
votes
1answer
36 views

DirectX 12 using Visual studio 2015 on Windows 7 SP1

I'm trying to work with a directx 12 sample using windows 10 sdk, visual studio 2015, on windows 7 SP1. I get the following error The procedure entry point CreateFile2 could not be located in the ...
0
votes
1answer
58 views

Deferred shadow mapping

Question: What am i doing wrong in the CalcShadowFactor method? It looks like the depth check is not working correctly. Body: I'm using deferred rendering in my engine and i have generated the ...
0
votes
1answer
25 views

Determine the z coordinate of a deformed plane based on uv (xy) coordinates

I am using a formula to turn the following texture into what looks like two 3 dimensional planes The formula I am using for the texture deformation is float2 texUV = float2(uv.x / abs(uv.y), (1.0 / ...
0
votes
1answer
47 views

determin if a shape of tiles is closed

I’ve been in the process of trying to workout if a shape is closed. I decided to use VB.net as my language of choice. Red = walls Light Blue = water Black = Towers Dark Blue = Fill A similar ...
-5
votes
1answer
39 views

Why isn't this glsl program working?

Why isn't this glsl program working ? #shader vertex #version 430 layout (location = 0) in vec4 position; layout (location = 1) in vec3 normal; layout (location = 2) in vec2 texture_coordinate; ...
0
votes
0answers
24 views

What are great Javascript libraries for game dev?

I would like to write a strategy game like farmville and stronghold. I have already seen other similar questions but the answers are really old. So, this is why I am reposting it. The main things I ...
0
votes
1answer
20 views

SDL_RenderCopy to set location

I'm coding a game's GUI in SDL2 and c++, I'm using SDL_RenderCopy to load the buttons on to the screen, but don't know how to get buttons in specific spots eg. bottom left corner, slightly below ...
0
votes
1answer
37 views

XNA / MonoGame - render transparent background using stencil buffer problem (3d)

I'm trying to render 3d texture quads with the following properties: With lighting (rule out "AlphaTestEffect"). Transparent background (no opacity levels, just binary opaque or transparent). No ...
0
votes
1answer
39 views

Is javascript viable for serious multiplatform 2D game development? [on hold]

Ever since I was a little kid, my dream has been to develop games. Well, now that I am older, more mature, and have some programming experience, I would like to start. However, I would like to turn ...
1
vote
1answer
61 views

Access Violation on Application Exit

Currently I'm writing an Engine. How I have it right now is that, the engine is written in a project and exports a dll. On another project in the same solution as the engine, there is a sandbox ...
0
votes
1answer
28 views

How to implement buttons in Java(eclipse)

Ok guys I'm new to java and I wanna know how to implement buttons for my menustate. right now all I did is I made pictures of the buttons(play and exit) and just used g.drawImage to draw my Image to ...
1
vote
0answers
39 views

Easiest way of adding screen space reflections?

I wish to add a cheap and easy method of screen space reflections to my game but am struggling to find examples that are easy for a beginner to understand. I'm still very new to HLSL. Any help would ...
-1
votes
0answers
16 views

Perlin Noise' gradient

I'm having some problem understanding the Perlin Noise algorithm and none of the explanation I found go into this (probably obvious)detail. From what function is the gradient on it? Is it from the ...
0
votes
1answer
47 views

Which language should i learn for making android/IOS games?

Hi i have never made any android/IOS game and i am interested in learning how to. I knows a litlle bit in programing(i know c# in basic level-if,for,while,araays,clases,making some button and so on) i ...

15 30 50 per page