-1
votes
0answers
9 views

Can someone explain this function?

How does the spawn function work? var max_bollar = 15; var i = 0; var timecounter = 0; var bollarcounter = 0; var spawn_delay = 5; var min_spawn_delay = 25; var max_spawn_delay = 500; var balls = []; ...
0
votes
0answers
5 views

Project architecture for Android games [on hold]

I have some experience developing Android apps and I'm trying to develop a game now. When developing an app I usualy use a MVP (Model View Presenter) architecture, I was wondering if there is any ...
1
vote
1answer
5 views

LibGDX: creating actor conformed by other actors

I am making my custom actor class, made up by 3 actors(oneProgressBar, one Label and one TextButton), because I will be using this many times, so it's not a good idea to create 3 of that actors when I ...
0
votes
0answers
4 views

libgdx box2d car wheel circle collision with ground

I'm creating game similar to hill climb racing. I have created car (which is basically polygon with two circles) and ground generated by sinus. Now here is the problem: when my car try to climb in ...
0
votes
0answers
13 views

Upgrade system for tower defence?

What is the best way to create a rather dynamic upgrade system for a tower defence game? I thought of two possibilities: Create enums for stats and math operation (latter could be just a char as ...
0
votes
0answers
5 views

synchronizing client-server actions

What's the usual way to handle events that are checked both on server and the client, like attacking? There's a cooldown timer to an attack of which the client is aware (so to prevent spamming server ...
0
votes
0answers
14 views

Problem with Pixels In The Game

So, in the game that I am developing, there is an issue with the pixels for the different objects. This is a problem as it makes the game a little awkward. Essentially, the pixels for a house in the ...
-1
votes
0answers
16 views

Button Designs Download [duplicate]

Where can I find and download pixel buttons (images) like the one below? I wish to implement them in the Unity game engine. Do you know any sites?
-1
votes
1answer
19 views

How to I mix colors properly?

Let's say I've got 4 light colors: (0.6,0.0,0.0), (0.0,0.6,0.0), (0.1,0.1,0.1), (0.1,0.1,0.1) And not I want to mix them properly. I can't add them together, because if I add for example 3rd color ...
0
votes
0answers
12 views

How does AppLock by domobile lab earn? [on hold]

AppLock by domobile lab is very popular among android app lockers and has more than 100 million downloads. I don't see any ad when using this app lock. How do they earn from such a popular app ? ...
1
vote
1answer
46 views

Change screen from main menu to game

I'd like to know how I can change the screen from the Main Menu to the Game itself but im having quite the trouble and I would appreciate the help. What I want to do is when I press btn.Play it ...
0
votes
2answers
18 views

How to center a tilemap in Phaser?

In Phaser, I am loading a Tilemap from JSON. I would like my Tilemap to display in a particular position (for simplicity here I say the middle of the screen). var map = ...
0
votes
1answer
36 views

How would I handle collision to all instances of one object? (C# and monogame)

What I'm saying is, let's say I have a list. That list contains all the tiles in the game. I use this to update them all, draw them all, etc. for (var i = 0; i < Tiles.Count; i++) { ...
0
votes
1answer
34 views

Get Particular Object's collision status via C# script

My current scripts creates and modifys the location of various prefab objects as they go along the screen. One of the things I want to find out about the active object is whether it has collided with ...
-1
votes
1answer
26 views

Javascript 2D game tile textures

I am using a texture atlas for my tiles. Of course I need to get the sub-images to draw them on the canvas as separate tiles. Right now I can think of two ways to implement this. Divide the texture ...
0
votes
1answer
21 views

Jenkins CI with Unity on local machine

I have seen some people using Jenkins CI with Unity, would it be wise to install Jenkins locally and use it with Unity? I've never used Jenkins, so I can't imagine why not. Is this ill-advised? I ...
1
vote
1answer
63 views

In Unity, how can I modify the shape of a sprite?

I am new to Unity and programming in general, however, I wanted to know how to change a sprite's shape. I want to do this while the game is running, so I was thinking about removing a set of pixels ...
0
votes
0answers
20 views

How do I implement a LWJGL orthogonal matrix?

As seen on the official LWJGL page, I tried. But failed. All the things I've found on SO and other sites didn't answer anything that had to do with this specifically. I've been on this for weeks. It's ...
6
votes
4answers
114 views

How to properly differentiate single-clicks and double-click in Unity3D using C#?

What I am trying to understand and learn here is a very basic thing: what is the most general and most polished way to properly differentiate single-clicks and double-clicks for the 3 main mouse ...
1
vote
0answers
21 views

Implementing Browser in Unreal Engine 4.10

I am looking to add some oauth to a game I am working on. I can get the user auth to work in the browser that comes with UE4, however there is not any capability to detect changes to the currently ...
1
vote
1answer
49 views

Darkness, and a candle

My game has a Pokemon-type movement mechanic. I would like my level was a pitch black level, but the player having a candle can lighten a circular area, and so walk without being able to see more ...
0
votes
1answer
39 views

Set input relative to map rotation?

I'm trying to figure out how I can make the input which looks like this : // Checks if player is pressing movement keys, if is applies force to specified direction if ...
0
votes
1answer
29 views

Rigidbody AddForce() skipping/teleporting

I'm surprised that this issue is nowhere to be found on these forums... Well at least when I searched. So, on my setup I have created a cube and applied a Rigidbody to the object with the following C# ...
0
votes
1answer
19 views

Game Maker: How to end the game after player defeats all enemy instances

I'm making a simple version of the game asteroids as I'm learning how to develop with Game Maker Studio. Currently, mostly everything works properly except that when the player destroys all of the ...
0
votes
1answer
12 views

GL_TEXTURE_MAX_LEVEL equivalent on DirectX

I'm trying to mix atlas and mipmapping for a kind of Minecraft editor I'm doing. Everything looks good until I reach the smaller mipmaps of the atlas texture, where obviously all the textures are ...
0
votes
1answer
31 views

Libgdx rotate sprite with collision

Im making a game where I have an object in the center of the screen and then balls come out from the sides of the screen. When you touch the screen the object rotates 90 degrees clockwise and it has ...
1
vote
0answers
11 views

How to add (not blend) non-looped animation clip to looped animation with Mecanim?

I have a GameObject with Animator and looped animation clip. This animation changes X coordinate from 0 to 10 and back. I need to add another animation to the first one that increases GameObject's ...
0
votes
1answer
30 views

OpenGL GLSL vector of sampler2D

If im trying to create an obj. file loader in c++ and draw it with opengl i need to use multiple textures in the fragment shader.I know i can just use: `uniform sampler2D Texture1` `uniform ...
0
votes
0answers
16 views

SSDO as 2D filter

I've been looking for a way to get SSDO as a 2D filter in Blender Game Engine. I know that it is possible, but I have no idea how. And I can't find any good resources online. Maybe someone can help me ...
-1
votes
2answers
31 views

How can I get information from a function

Okay, so if I use this code to randomly spawn balls at the top of the screen, how do i get them to move down: var max_bollar = 10; var i = 0; var timecounter = 0; var bollarcounter = 0; var ...
0
votes
0answers
27 views

What Is Vector Math? [duplicate]

Okay so I was wondering, what exactly is "Vector Math"? I was wondering if I needed to know physics for game development, and most people said you just need to understand the basics, but they said ...
0
votes
0answers
19 views

PID for car suspension [on hold]

All I wanted to know is - how accurate is PID for simulating car suspension? Assuming that P = spring power and D = damper power, I = 0, because under high load suspension just collapses. Does this ...
0
votes
0answers
6 views

How to copy texture of type GL_TEXTURE_EXTERNAL_OES to a texture of type GL_TEXTURE_2D

How to copy texture of type GL_TEXTURE_EXTERNAL_OES to a texture of type GL_TEXTURE_2D ? How to find the internal format of texture ?
0
votes
0answers
7 views

Bake Blurry metal in C4d

Been trying the bake a blurry or rough metal in Cinema 4d. I am looking to bake a stainless steel effect. Every time i bake the refection the reflection channel is clear... I have tried everything ...
0
votes
1answer
22 views

Can 2D Rigidbodies detect collisions with 3D Box colliders?

I would like to know if Rigidbody2D's can detect collisions with 3D Box colliders and/or normal rigidbodies. I seem to have a problem where my 2D Colliders don't detect collision with my 3D Cubes. ...
2
votes
1answer
48 views

I want to render a texture2d on to the screen in unity, how do I do this?

So I have modified a texture in C# by removing all of its white pixels, now I want to render it on the screen in unity so that later I can use it as a terrain where I can make my sprite walk. So far, ...
0
votes
0answers
8 views

Slick2D Simple StateBasedGame not working

I recently started trying to work with outside Java libraries like Slick2D. This is my first time doing so, so I basically have no clue what I am doing. I tried making a simple StateBasedGame that ...
1
vote
0answers
19 views

Best way to find line segment intersection

I am working with an OpenGL ES 2.0 shader and need to find the point of intersection between two line segments in 2D space. I receive them in terms of both coordinates of both lines. Because they are ...
0
votes
0answers
27 views

developing game requirements [on hold]

I am a c++ programmer , and after 2 years and half learning c++ , I want to go in game development field ! I don't have even a clue , how to build a 2d game , like pong myself !i had experiences with ...
0
votes
1answer
40 views

How do I calculate a vertex's position on the CPU?

I'm creating light processor and I need light position and vertex position after translating, rotating and scaling (to calculate distance between them to check if light is affecting my vertex ...
0
votes
1answer
23 views

Align UI element to gameObject in 2D

I have a 2d game where I want to display UI element perfectly aligned to specific gameObjects. I have an ortographic camera and I used to Camera.main.WorldToScreenPoint() function giving it the ...
-3
votes
0answers
30 views

How does projectile hit detection work?

I need to build some form of hit detection in my game and hitscan wouldn't be very useful because I want it to be more realistic at long ranges. The battlefield game series doesn't use hitscan but ...
-3
votes
1answer
36 views

Treyarch Call of Duty Audio Engine [on hold]

This isn't a specific programming question, it is just my curiosity wondering about stuff. I assume most of you will have heard about the popular game, Call of Duty, especially around christmas from ...
-1
votes
0answers
35 views

Alternative to ogre [on hold]

I'm new to game dev . Try some free open source game engine like irrlicht ,ogre but irrlicht seam to be easy not for commercial production and ogre difficult to use more steps to do simple init. Is ...
0
votes
0answers
44 views

How to automate testing C/C++ slot games? [on hold]

Sorry if my question is hella nooby in advance. I'm doing manual testing of slot games on actual virtual lottery terminals. I was wondering how can I automate test scripts? Is that possible at all? ...
0
votes
0answers
28 views

How to navigate through google Map in unity

I am working on loading the google map and navigating through the map. I have loaded the google map which shows the current location in unity. Now I need to show the direction from Place A to Place ...
-3
votes
0answers
25 views

iHomeless and Homeless android game tutorials? [duplicate]

I want to make a game like these 2. Very simple with just buttons no animations or anything like that. I just want too know if there is any tutorials online I can use to look at to guide me?
1
vote
1answer
38 views

Mesh slicing/knifing with multiple planes

I have a ginormous mesh which I want to cut with multiple planes. For simplicity I want to know how to cut a mesh with single plane and repeat the logic. Consider a X-Y plane of coords (1,1,0,0) = ...
-1
votes
0answers
39 views

How and Where do I start? [on hold]

I'm Nick, I want to learn how to develop games, I've seen videos that say start small, learn programming, use certain tools, but I have no idea where to start. One common tip across everything I've ...
0
votes
0answers
25 views

Enabling VSync results in stuttering

With VSync disabled my FPS doesn't drop below 100. When I enable it my FPS sits in the 55-60 range. The issue I have is that I have fast moving platforms that move at a constant speed, so a single ...

15 30 50 per page