1
vote
1answer
33 views

Box2DLights - the center of sprites are always 100% unlit (black) unless Xray is on

I'm using a ConeLight at 180 degrees, with this setup: pl = new ConeLight(rayHandler, 256, new Color(0.5f, 0.5f, 0.5f, 1f), 280f, 400 - x, 300 - y, 0, 180); And the object I'm casting a shadow on ...
1
vote
2answers
26 views

C# - Collision Detection problem with platforms on Monogame(XNA)

So I am having issues with my platformer that I am developing. I can detect collisions fine when there are a line of parralel blocks or even single blocks. The issue I have is when blocks form an L ...
0
votes
0answers
15 views

How to make something happen when an image reaches a certain point on the screen in Android

I have an ImageView that moves across the screen, and I want it to trigger something that happens when it reaches a certain point on the screen. This is the code I used to make the image move: int ...
0
votes
0answers
10 views

LibGDX: Its there any way to calculate the speed of a repeated scrolling background?

I'm trying to calculate the scrolling speed of an background, I'm doing something like this on the background class: private Texture texture = new Texture(Gdx.files.internal("backgound.png")); ...
0
votes
4answers
386 views

What is the point in using API such as Open GL or DirectX when there are game engines? [duplicate]

I was wondering why today programmers place so much emphasis on API like DirectX, and even OpenGl. As far as I know, you'd need thousands of lines of code to make a simple 3D game using one of the ...
0
votes
1answer
59 views

Planet terrain not connecting properly

I'm trying to generate some simple planets in OpenGL using libnoise (including noiseutils), but the terrain is not correctly connecting where the sphere "completes itself" and I was wondering if ...
0
votes
1answer
88 views

How to write a “Hello World” for N64 from pure scratch?

As an experiment I want to code a "Hello World" program for N64 using only assembly code, and using no headers, tools, helper files, etc. I just want to write the assembly code bare bones from ...
0
votes
1answer
19 views

LibGDX how to change animations

I have a Player Class and i have 3 different Animations for it. I can render them perfectly but i don't know how to change from one animation to another. For exmaple i have 3 animations, one for ...
0
votes
1answer
40 views

why there's different collisions point? [on hold]

i have a bouncing ball in my game. every time i start the game, ball direction(a Vector3) and speed are constant. ball have a rigidbody too.i'm using OnTriggerEnter to detect collisions. after start ...
1
vote
1answer
40 views

Why does this no longer render the “test tri”?

So I got this code about rendering a shaded tri using sharpDX ... var vertexShaderByteCode = ShaderBytecode.CompileFromFile("MiniTri.fx", "VS", "vs_4_0", ShaderFlags.None, EffectFlags.None); var ...
0
votes
1answer
38 views

Questions about the obj file format

I'm wirting my first OpenGL Application for Android at the moment and now I get stuck on the ObjectLoader for obj files. I have some qestions to this file format and I can't an answer on the internet ...
0
votes
1answer
28 views

Animation position changes everytime I play the animation

I've been trying to create a death animation for an enemy object in my scene.I created an animation on an empty object in which i placed all my child objects like hands and legs.I animated them but ...
0
votes
0answers
25 views

How to handle car game circuits in a top-down view?

I'm already using a physics engine (box2d) but i have no idea about how should I implement circuit's path with wall collision. I tought about checkpoints but this doesn't solve the wall collision.
5
votes
1answer
345 views

How do commercial games engines organise the index/vertex buffers?

Preface: This question is going to be coming from a Direct3D point-of-view, because that's what I'm familiar with. Obviously we incur a slight overhead every time we change the vertex or index ...
0
votes
1answer
29 views

XNA - Autodeploy .exe of game upon succesfull commit to GIT

I know of ClickOnce which creates an .exe file so a user can play my XNA game. However, I have to manually go through a wizard in order to create this file. I would like for the new .exe to be ...
0
votes
0answers
12 views

BaseGameUtils / GameHelper onSignInFailed and onSignInSucceeded both called? [migrated]

I found a problem with my Google Play Game Sign-in during Alpha testing. It only happens when the user has an incorrectly cached password for their Google Play login. Here is what I mean.... When ...
-1
votes
0answers
30 views

Want to start game dev(have some programming and OOP knowledge in java) [on hold]

I am 16 years old next year going to start high school and study Pure Mathematics and Computing A level. I would like to pursue a career in either game development or in software development, I would ...
0
votes
0answers
15 views

Google Play Game Services - Handling messages via p2p, host or no host?

I am developing a real time multiplayer game using Google Play Game Services. The underlying networking is done via P2P. Everything I read says I should still have a game host that sends out all the ...
1
vote
2answers
69 views

Loading and storing content efficiently

So for example I have a class called TypingKeyboard. It allows you to display a string while it's being typed by the computer with sounds. I need one in the menu, for the title. And one for the ...
-1
votes
1answer
71 views

Code explanation

Can someone please explain whats going on in this code written by Paul Irish I did not understand the draw(). function draw() { var time = new Date().getTime() * 0.002; var x = Math.sin( ...
0
votes
1answer
24 views

AddRelativeForce not working correctly

I am stuck on the code for couple of days but couldn't figure it out. Therefore I turned out to look the answer here but couldn't find any that match the requirement Hope some One might help here is ...
0
votes
0answers
26 views

Cannot change material color in unity

I'm having an issue where if I set the material color at runtime like so: gameObject.renderer.material.color = Color.black; The inspector shows me the new color but the gameview still shows me the ...
1
vote
0answers
29 views

Design pattern for animation sequence in LibGDX

What design pattern to use for sequence of animation that involve different actor in libGDX. For example I am making a game to choose a wolf from a group of sheeps. The first animation played when the ...
0
votes
1answer
26 views

Is this possible in cocos2dx 3.0?

I am stuck at this point: help will be appreciated... I have a number of five images (sprite1.png,sprite2.png,sprite3.png,sprite4.png,sprite5.png), these all I want to add as a sprite... int ...
-1
votes
1answer
69 views

How are grids made?

I've been looking at tutorials and researching forums and such but I still can't understand how the grids are made. I get confused at parts like this. for (int x = 0; x < Size.x; x++) { for ...
0
votes
0answers
24 views

Masking between two different 2D sprites in XNA

I'm rewriting a client (2D) for an old game. When rendering a character, the player has a type of hair and an optional type of hat. As far as I can tell, the game does the following to clip hair that ...
0
votes
1answer
30 views

'Resetting' Google Play Games Services so app forgets it previously connected (so it shows confirmation screen again)

When I first integrated Google Play Games Services into my app, it came up with a 'confirmation screen', something like: App Name wants to connect to Google Play Game Services I don't recall the ...
0
votes
1answer
50 views

What is the optimal way to handle matrix internal data storage for interop with native graphics apis?

I'm writing a managed (c#) game engine and have stumbled on a bit of a crossroads in design/implementation regarding matrix types. Matrix types need to be optimized for marshaling to native graphics ...
1
vote
1answer
36 views

How can I implement a more realistic momentum system in Unity 4.5?

I'm just starting out with Unity and am making a simple environment where there is a sphere and a ramp. When the sphere approaches the ramp everything is fine. As soon as the sphere hits the ramp is ...
-1
votes
0answers
22 views

how to make unity3D client handle network message more effectly?

Recently I am working on a Unity3D client program. It will recevie message from game server. I use TCPClient to receive the message aync and store it to a locked queue. As u know, the client must read ...
-1
votes
1answer
33 views

Can a sprite(batch) have multiple “costumes” monogame

I am relatively new to game development and would like to know if a sprite can have multiple "costumes" similar to that of MIT's scratch or do I need a different sprite for each costume
0
votes
1answer
57 views

Rotating a vector around a vector in 3D space

I am trying to rotate a moon around a planet (the planet is also rotating around an axis) but I am having trouble doing so. I tried to make the model move through space like so: @Override public ...
1
vote
0answers
31 views

unity3d-Find angle between 3 vector3 points obtained from swipe

I was trying to find the angle between 3 vector3 points obtained from the screen swipe. The first vector3 point is the first touch position fp, the second is some intermediate touch ip and the third, ...
2
votes
1answer
92 views

What types of matrices are needed for game and graphics programming?

I am writing a 3D math library for general game development and want to know what type of Matrix classes I should include. Is just a 4x4 matrix enough, or must I provide 3x4 and dedicated rotational ...
0
votes
0answers
6 views

Which one is the class that specifies the texture files for the minimap on Utgame?

I need to make a customized minimap for my game, but I just can't find out where the class which calls the compass textures is. Please help me, and if you find this question unspecific tell me and ...
0
votes
2answers
59 views

OnCollisionEnter2D not being called

I'm fairly new to the world of Unity, and am adding collision detection for the first time through RigidBody2D (as this game is 2D). First of all, here is some relevant information: Unity Version: ...
0
votes
0answers
34 views

A new Picross Game [closed]

I have been working on Picross Puzzles for a few years. I have drawn lots of puzzles, more than 200, and I can add thousands more thanks to my autosolving algorithm. My project is currently working ...
-2
votes
0answers
61 views

How to plan a game project properly [closed]

Nearly everything on this earth got accomplished once. The same thing counts obviously for developing a game. Since I just wrote a pacman in Java and my project wasn't that large, I don't know how to ...
0
votes
2answers
39 views

different Scenes but each of them loads per frame

well i want to have something like restaurant that divided in 3 sections.and the user can switch between these but every Scene loads every frame.for example the character is in the first section and ...
0
votes
1answer
47 views

HTML5 canvas multiplayer game with node.js and Isogenic engine [on hold]

I want to create a multiplayer game using Isogenic engine i understand that this technology uses html5 and canvas for rendering graphics in frontend and node.js for backend. I started working on how ...
-1
votes
0answers
45 views

Combine MMO RTS and RPG engine [closed]

I am developing engine to make a platform for combining games with multiple genres and gamespace switcher.LIKE the scores, money and coins for both games are same So that player can play 2 instances ...
2
votes
2answers
109 views

How to be sure that a target goal in a match 3 game level will not be impossible?

This is clearly not a coding problem but the logical one. I am starting to learn how to make a match 3 game. but there is a question rising in my mind. when i will set goal to complete the level, how ...
0
votes
0answers
19 views

Can anybody explain CCLabelTTF Cocos2dX v3.0…?

I am stuck at CCLabelTTF version of cocos2dx..please explain how to pass variable and output to simulator? help will be appreciate.
2
votes
1answer
51 views

Indexed Drawing in OpenGL not working

I am trying to render 2 types of primitives- - points ( a Point Cloud ) - triangles ( a Mesh ) I am rendering points simply without any index arrays and they are getting rendered fine. To render ...
-4
votes
0answers
65 views

i want to be a game developres please help [closed]

bare with my English ok so we have done this semester C language but i didn't like much of C so i just prepared as much as a needed for my exam and i learned C++ coz its much better and advance than ...
0
votes
0answers
19 views

Making a Collision Detection for ImageViews

I'm trying to make a collision detection system for two ImageViews, but I can't seem to figure it out. I've tried doing several things from StackOverflow and other places, but they don't work. One ...
1
vote
1answer
80 views

Using unordered_multimap as entity and component storage

The Setup I've made a few games (more like animations) using the Object Oriented method with base classes for objects that extend them, and objects that extend those, and found I couldn't wrap my ...
0
votes
0answers
20 views

JBullet quaternion to Euler angle conversion causes strange flipping behavior

I am making a game using JBullet (a Java port of C++'s Bullet library) for the physics and LWJGL for the graphics. However, JBullet measures angles in quaternions and LWJGL uses Euler or ...
0
votes
0answers
34 views

Graphical Designer for creating in game objects

I am creating a 2D endless scrolling game . The game needs to have a repetitive object , say a building with random width and height . But the basic color and features like window shape of the ...
0
votes
1answer
38 views

XNA Masking Mayhem

I'd like to start by mentioning that I'm just an amateur programmer of the past 2 years with no formal training and know very little about maximizing the potential of graphics hardware. I can write ...

15 30 50 per page