0
votes
0answers
4 views

Rotating 2D objects with trigonometry

I cannot seem to intuitively grasp why the equation x' = x * cos(theta) - y * sin(theta) y' = y * cos(theta) + x * sin(theta) rotates an object. I understand how to derive these equations from x ...
0
votes
1answer
11 views

Visual studio and Unity does not sync

I'm pretty new to Game Development world. I'm using Unity 3D (4.6 - Latest version I think) and Visual Studio to code the script and something when I edit the script un VS 2013 and go back to Unity ...
0
votes
0answers
2 views

admob or airpush revenue

For how long the ad has to be visible to count that as an impression? How much revenue could i approximately generate in admob or airpush from 100 users if they are active for 1 hour a day and each ...
0
votes
0answers
3 views

Scene2d Stage Actor setup issues

I am creating a game using libgdx. In the same each level has a class. I have stage as a member variable of the class. To this stage, I add actors. Inside the levels class, I have attaced the input ...
0
votes
0answers
9 views

GLEW doesn't work

I included both "glew.h" and "glew.c" and compared to earlier attempts, i don't get errors when i compile and run my project, that contains code depending on GLEW. The result is not what i want, ...
0
votes
0answers
10 views

Turn Based 2d Game

Hi i'm making a 2d turn based game (if you haven't guessed from the title); though i'm having some difficulties with the timer itself. 3 characters vs 3 characters, two players. A timer giving them a ...
0
votes
1answer
18 views

Question about save games format

my question is about save-games format. Look at this screenshot: On the left I made a "simple" fake savegame (Ini format) and on the right there is a "complex" TR2 save game. I'm wondering how ...
0
votes
0answers
14 views

FPS using mouse to move rather than keys

Hi I am developing a First person game but would like to use the mouse to move on a click to move as opposed to the keys. I also need to disable Y movement and restrict the x movement to 180. What ...
0
votes
0answers
11 views

Content project fails to create

I ve been using monogame for about 3 months but recently i tried to create a content project for the first time, and i got error missing project subtype 6D335F3A-9D43-41b4-9D22-F6F17C4BE596. I dont ...
1
vote
1answer
38 views

Why do tutorials use different approaches to OpenGL rendering?

http://www.sdltutorials.com/sdl-opengl-tutorial-basics http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/ These two tutorials use completely different approaches to ...
0
votes
0answers
8 views

Adding Player Movement and Firing on Touch Input (Unity)

I am having many problems with this. I am a new game developer and I am using a Unity tutorial. But I want to add touch input for movement and a touch button for firing the weapon. How can I do this? ...
1
vote
2answers
33 views

Could I use Direct3D to make 2D games?

My goal is to make a completely 2D game using DirectX, but I'm new to it and I'm confused about all of the different APIs that are available. From Wikipedia: Direct3D is used to render ...
-1
votes
1answer
32 views

Java game runs slower and slower as game runs longer

I know that this question may be considered off topic, but this is a significant problem. Problem: I have in a java game that I am working on. The FPS counter starts at 250 FPS and in about 2-4 ...
0
votes
0answers
14 views

Unity3D: One Armature/Skeleton For Many Models

I have multiple box colliders attached to a model's bones, and I want to be able to make these boxes into a prefab as multiple models will be using this same armature, and I would prefer not to ...
0
votes
1answer
32 views

In OpenGL what's quicker, lots of smaller VAOs, or one large one updated each frame?

In my game engine, a mesh can be made of many submeshes. These submeshes may or may not share vertex data with the rest of the mesh, if they don't they have their own vertex data array. I've noticed ...
1
vote
3answers
32 views

Should cooldown be time or tick based?

In the past I've done cooldowns as a specific time in ms, but I was thinking isn't having tick based cooldowns better. This would be more accurate and efficent(not sure). The bad side I can think ...
-1
votes
2answers
38 views

Can my cars in my game look like real cars? [duplicate]

We are making a game filled with thousands of cars. We were wondering if we need a licence to use body designs of lets say a Lamborghini, Ferrari, Impala. etc. We do not want to pay money to use the ...
0
votes
0answers
12 views

Creating a 3D Point Out of a 2D Mouse Position Using DirectX11 and MFC

In my view port, I need to translate the cursor position to a 3D coordinate. This coordinate needs to be a set distance from the origin, being the camera position, and represented as a float (or any ...
0
votes
0answers
24 views

Good practice/pattern to create and draw high resolution 2D fish [on hold]

i simply want to create/draw a 2D fish with animation and implement it in my android application. For drawing i use gimp and the gameengine is libgdx. Why gimp? Because it is free and mighty and ...
0
votes
0answers
14 views

Allow a container to have a stacksize in excess of the item's stacksize

I'm developing a simple Minecraft Forge modification, which is a simple item storage based mod, that I'm calling DeepStorageChest. It's essentially intended to be a mash up of a chest and a ...
0
votes
2answers
19 views

Format for storing quest data

Are there any format for storing quest data that can be processed independently by third-party tools? I don't want to code quests in code, because it will be hard to update and extend them, so I just ...
0
votes
0answers
12 views

Implementing back face culling in object space

I'm implementing a few 3D tests on an old piece of hardware (Sega Saturn, circa 1994, uses quadrangles, not triangles) and everything excluding rasterizing is done on the CPU. I implemented front face ...
0
votes
2answers
26 views

Using shader for cubes

I am trying to use a shader to get an effect like this. Notice how every cube has exactly the same lightning as every other no matter where it is on the screen if you look closely the lightning is ...
0
votes
0answers
9 views

PHP - MySQL database not updating from php IGM calculation

On my server I have a php script that calculated an amount for in game money, but the SELECT and UPDATE query are not doing the right thing. In my database I have two columns: | Name | Now | ...
0
votes
0answers
22 views

Projectile Delta Movement

I'm running into an issue where I can't get the Projectiles to travel in the right direction, I'll admit my trig is a little rusty, anyone know how below might be improved? I am trying to get the ...
0
votes
3answers
34 views

Designing a multi-level game

I want to know to code structure of a game that has different levels to choose from on the main screen. More precisely, I want to know how does the main loop hands off the rendering to another loop ...
0
votes
1answer
33 views

How do I derive an appropriate acceleration value for my game?

I am creating a Flappy Bird clone from this tutorial. I have a question about acceleration in libgdx. The author assigned the bird a constant acceleration vector in the constructor of the bird ...
0
votes
1answer
36 views

Logic for enemy chasing main player

I'm making AI to tell a minion to chase and attack the player. I played Magicka, and the minion follows the player in a nice curved manner (left image), rather than what I currently have (right ...
0
votes
0answers
14 views

Google Play Games: onSignInFailed() and onDestroy()

I just had an error while testing my game, this is an update that I'm working on and it's never done this before (and I've launched this game on various devices literally hundreds of times, so it ...
1
vote
1answer
25 views

Implementing rule engine so Mud engine supports D&D, Pathfinder and other rule sets

I am currently building a Mud game engine and have quiet a bit of it done. I am now starting work on building out how characters interact with the world around them, such as dialog, battle searching ...
0
votes
1answer
21 views

XNA draw texture/font and DrawIndexedPrimitives at the same time

When i Draw a texture2d or a font with spriteBatch and also draw GraphicsDevice.DrawIndexedPrimitives, the frame is draw weird SpriteBatch spriteBatch = new SpriteBatch(GraphicsDevice); BasicEffect ...
0
votes
1answer
33 views

Help with understanding “transform.root.GetComponent<>” in Unity

I'm reading through a tutorial for making an RTS in Unity, and in certain scripts it wants you to make a Player field and then OnStart(){ transform.root.GetComponent}. I am not quite getting what that ...
0
votes
1answer
22 views

Set Non-Looping Animation Time to Seconds

I have an animation that does not loop. It plays for the default duration (n seconds), then stops on the last frame. This is exactly what I want to have happen, but I want it to play for m seconds, ...
-1
votes
1answer
29 views

explaining simple math equation for calculating top, left

I can't visualize that simple equation: int left = birdSprite->m_X - birdSprite->GetImage()->GetWidth()/2;
0
votes
1answer
17 views

Cross-platform multiplayer game in JavaScript [on hold]

I want to start creating a simple multiplayer, JavaScript based, cross-platform game. Think about it as a two player mario where players can shoot each other. My question is what is the best way (or ...
0
votes
1answer
28 views

Animation works, but Unity doesn't realize it

I have an animation which plays once, and it played once just fine. I want to Invoke a method as soon as the animation finishes. I have been researching and experimenting for over an hour now, but ...
0
votes
0answers
11 views

Update Sprite Sheet

Every time I overwrite my sprite sheet with additional sprites, I have to reattach the textures to all of my animations. Is there a way to update a sprite sheet without affecting the sprites on that ...
0
votes
0answers
33 views

How do you ensure that the graphics still look the same with multiple artists? [duplicate]

There's warning that this question may appear "subjective". But it isn't. I hope you won't misunderstand me. Many different artists have many different styles to do something particular, especially in ...
0
votes
1answer
16 views

Add Existing Animation

I have several animations that I am using on a GameObject. I switched the folder they were stored in, and they got detached from the gameObject. How can I add the existing animations to my ...
-2
votes
0answers
57 views

RAII and modern C++ in game dev [on hold]

Are the use of the RAII idiom and of the modern C++ principles adapted to game development in general ? Automatic memory management on the stack Smart pointers References Or, can these features ...
0
votes
1answer
24 views

Drawing 3D cubes with xna

I managed to draw a 3d cube using triangles like this: protected override void LoadContent() { basicEffect = new BasicEffect(GraphicsDevice); VertexPositionColor[] ...
1
vote
1answer
8 views

EditorApplication.SaveScene followed by EditorWindow.Close throws InvalidOperationException

I'm making a really basic custom editorwindow that has a textbox for a scene name, creates a scene with that name and closes itself. Trimmed down to the essence it looks like this: public void ...
0
votes
0answers
16 views

Arrange Jumble Word into English Word

Actually I want to make a Game. Game is very simple. There are 5*5 matrix with Jumble words and player needs to arrange those words into proper English Word. I have done small part of ...
2
votes
0answers
17 views

How to save file in assets so it can be properly loaded in Android Studio?

I am following a guide on creating a replica of Flappy Bird. - http://www.kilobolt.com/day-6-adding-graphics---welcome-to-the-necropolis.html The step I am having trouble is loading the texture from ...
0
votes
0answers
25 views

Is there a way to implement agent simulation for a city builder in Java? [on hold]

The agent simulation will be used in a city builder for things like traffic or people who will have jobs, homes and they will have to travel via computed routes. Is there a way to implement something ...
0
votes
0answers
6 views

Mac build not working, closes upon opening [on hold]

I made a Unity2D game. And built it mainly for standalone windows. Now, when I try to build a standalone for mac. It simply opens, and a second later, it closes it self, without showing anything, no ...
7
votes
2answers
691 views

Unity 3d 4 players Only 4 buttons can be pressed at a time

Only 4 buttons can be pressed at a time, so players cant move sometimes Each Player Has their own Controls i Change, Up Arrow and the other ones for each player---v InputsV-V-V public string ...
0
votes
1answer
30 views

Creating a separate renderer for entities in a 2D game

I'm making a 2D shooter game. As of now, every entity "draws itself", meaning every renderable entity has a draw function. I know it is better if rendering is handled separately, but how can I achieve ...
-1
votes
0answers
42 views

What is a game? [on hold]

What is a game? Is anything "fun" a game? Is it purely a subjective term? (I know there is subjectivity, but is there also a black and white answer to go with it?) Does it have to have mechanics, ...
1
vote
0answers
28 views

Farseer: Friend/Foe Collision - cannot push foes but friends

we are using Farseer in our project and I try to find a setup to achieve the following quite complicated collision behavior: Friendly Units can push each other aside. However, the push should be a ...

15 30 50 per page