0
votes
1answer
766 views

OpenGL Question about scaling 3D Object

I got some scaled cubes (1, 2.5, 1) in a 3D Space with a grounded floor with position (0, 0, 0) and scale (100, 0, 100) like in the picture. But why are the cubes scaled out from the center. I want to ...
0
votes
2answers
602 views

Dealing with multiple scenes /levels

Overview I have a scene manager in my game and in each 'Scene' I have a render() and a update() method for drawing and updating my game's logic. Basically, when I want to switch to another scene, ...
0
votes
1answer
146 views

Per vertex diffuse lighting not propogating across entire model

I'm not sure how to describe this problem so I've added a picture. When I add per vertex diffuse lighting to my model (just a field of cubes for simplicity) the lighting effect applies to each ...
0
votes
2answers
307 views

Why does my A* implementation overflow the stack?

I'm fairly new to game dev and working on my first ever attempt at 2D pathfinding. I'm using the A* algorithm as detailed here. For the most part, it seems to be working correctly and as intended. ...
0
votes
3answers
532 views

Can I use copyrighted images and music in my game? [duplicate]

I am working on my first ever project , and I have used some copyrighted images(images taken from some other well recognized games). Is it even possible that I edit the images a little bit and then ...
0
votes
2answers
347 views

Do Java and Actionscript use OpenGL?

As far as I know there are only 3 base graphics libraries on Windows, the GDI, OpenGL and DirectX, is that correct, so that means that Java, Actionscript and all language use one of these 3 libraries ...
0
votes
1answer
3k views

Can someone explain Flappy Bird's physics to me? [closed]

I am having a difficult time trying to understand the Flappy Bird physics. I know it seems simple but I kind of suck at math. I am trying to see if I can make a simple game like this but it is just ...
0
votes
2answers
1k views

Why are there so few games compiled for 64-bit processors?

I noticed that I could not find any game that has a native 64-bit version on the x86 platform (there are some for platforms, obviously for example the Nintendo 64). In fact when I asked if the Allegro ...
0
votes
2answers
11k views

How to move rigidbodies

Have i understood this correct: If i want to use a rigidbody for physics then i should not move an object through its transform.position. I should never move it by riigidbody.velocity since i then ...
0
votes
2answers
989 views

How can I make different levels in a game?

Let's say I was working on a platform game. Each level has an exit. When the player reaches the exit, the game switches to the next level. What would be the best way represent and switch to the next ...
0
votes
1answer
152 views

How can I improve the rendering speed of procedurally-generated curved shapes (while keeping them smooth)?

I'm trying to render a large, procedural-generated shape with OpenGL, but I'm having some issues. I'm rendering the shape by composing it from many cubes, as follows: int TRACK_MIDDLE2 = 107; for ...
0
votes
1answer
360 views

Problems when randomizing x and y position of a picturebox [closed]

So, I'm making a simple game. It's like snake but the picturebox doesn't grow. In the game, you have to get fruits and other objects. Look at berry's code: public class Berry : PictureBox { ...
0
votes
1answer
408 views

How to prevent the player from clicking too fast [closed]

I'm having trouble with some bullets in my game, the M1911, which is supposed to be semi-auto is only capable of shooting one projectile per mouse click (trying to learn how to do multiple ones at ...
0
votes
1answer
311 views

Sidescrolling troubles [closed]

I'm making a sidescroller using java and Lwjgl. But I'm having some trouble getting the screen to actually ... well... sidescroll. The world is randomly generated and drawn in blocks. Like so: ...
0
votes
3answers
5k views

Implementing a basic jump in libgdx

I have seen the document for libgdx and managed to move the character and also to implement bounds but the document does not show how to implement jumping. I have downloaded the superjumper demo code ...
0
votes
1answer
779 views

Performace benchmark between a C++ and a C# renderer engine? [closed]

I want to create a performant 3d renderer for a tech demo at the university workshop. The engine will basically render a forested backdrop, in a small octrant. I am thinking of writing the engine in ...
0
votes
3answers
177 views

Calculate combat result between 2 units [closed]

I need to know the best way to calculate an outcome between 2 types of units. Each unit has 3 factors: Health, AttackPower, Defense There is also a last factor of anti-troop which says that one ...
0
votes
2answers
237 views

OpenGL: Transformations

I'm not sure if I correctly understand 3D transformations in OpenGL. Let's assume I'm using the typical matrix stack. It seems like you move the world X units over, drop in a bag of verts (a mesh) ...
0
votes
5answers
554 views

Limiting a player's movement to the screen's dimensions

I have a player, that I can control using WASD. And I don't want him to leave the screen. So I've tried the following: if (player1.getX()+5 < 974 && player1.getX()-5 > 0) { ...
0
votes
3answers
505 views

Phong lighting model unrealistic result

I am using OpenGL 2.1 and GLSL 1.20 . I am trying to compute the fragment color applying the Phong lighting model. This is the formula I have (the original formula has a summation, but since the ...
0
votes
4answers
7k views

smooth movement pygame

Hello im trying to learn more about smoother movement in games. I have created a little program to hopefully help me understand this. As far as i can tell i am suppose to track time, and update ...
0
votes
1answer
969 views

Why does the lighting change the objects color?

I have a code that draws a sphere. Without lighting it is white, but if I enable lighting, it's drawn in gray. I don't know why the sphere changed it's color #include <GL/gl.h> #include ...
0
votes
2answers
316 views

Map is rendering too slow

I have a basic 20x20 array that stores the map for my game. It either has a 1 or 0 to say a path and a non path. When I draw it on the screen, It seems to take to long to draw one at a time and looks ...
0
votes
1answer
503 views

I know fundamental programming. But how do I get started in game development now? [closed]

I'm a 20 year old programming student. I know fundamental programming in BASIC, C, C++ and JAVA. What I wanted to ask is, where do I go from here? Are there any books that the community can mention ...
0
votes
2answers
574 views

XNA 4.0: Problem with loading XML content files

I'm new to XNA so hopefully my question isn't too silly. I'm trying to load content data from XML. My XML file is placed in my Content project (the new XNA 4 thing), called "Event1.xml": <?xml ...
0
votes
3answers
1k views

Method for spawning enemies according to player score and game time

I'm making a top-down shooter and want to scale the difficulty of the game according to what the score is and how much time has Passed. Along with this, I want to spawn enemies in different patterns ...
0
votes
3answers
424 views

Learning math from the basic to become a game programmer [closed]

Hi i want to become a game developer. Im currently doing some web programming. I want to learn game programming. Im not good in math thats why i decided to learn from basic math to be sure i will not ...
0
votes
1answer
1k views

Change the title name of a XNA window?

I have tried to change the title with this source: http://msdn.microsoft.com/en-us/library/ff966436.aspx but this isn't working!? Help preciated!
0
votes
1answer
583 views

Implementing framerate independence

I know the following line of code has the effect of moving 3 units per milliseconds independent of framerate, but my sucky mathematical intuition is unable to understand WHY this works translation *= ...
0
votes
1answer
463 views

How can I run a .jar file with XNA?

Could someone help me to develop a method to run any .jar file (with parameters) from in C# with XNA?
0
votes
2answers
1k views

Delaying a Foreach loop half a second

I have created a game that has a ghost that mimics the movement of the player after 10 seconds. The movements are stored in a list and i use a foreach loop to go through the commands. The ghost mimics ...
0
votes
2answers
249 views

DX11 - Weird shader behavior with and without branching

I have found problem in my shader code, which I dont´t know how to solve. I want to rewrite this code without "ifs" tmp = evaluate and result is 0 or 1 (nothing else) if (tmp == 1) val = X1; if (tmp ...
0
votes
5answers
2k views

Relationship between Desktop and Android on LibGDX

So I finished tweaking a tutorial called Rain Catcher and I ran the desktop application. It works fine. I then proceeded to run the application using the android emulator the game then crashes. I ...
0
votes
2answers
168 views

How do I make a vector exactly reach a line?

Let's say a vector starts at Point P and points in the direction of v. How do I make sure that this vector exactly reaches the line? Its end should be exactly on the line, and not cross it.
0
votes
3answers
386 views

How to deal with VBOs when rendering mesh's that may or may not be displayed?

I'm working on a multiplayer game and will be displaying other players near the player. At most 16 players could be near the gamer however there could also be 0. What I'm thinking of doing is ...
0
votes
1answer
326 views

How do I make A* check all diagonal and orthogonal directions?

I'm making a turn-based tactical game and I'm trying to implement the A* algorithm. I've been following a tutorial and got to this point, but my characters can't move diagonally up and left. Can ...
0
votes
3answers
764 views

Changing balls direction in Pong

I'm making a Pong game to get started with game-developement but I've run into a problem that i can't figure out. When trying to change the balls direction it doesn't change. This is the relevant ...
0
votes
4answers
5k views

Making an RPG - Is RPG Maker VX ok or a bad idea? [closed]

Two friends and I are planning to make a FFIV-VI style RPG (generally speaking, we have some unique ideas for mechanics, setting, etc.), but none of us are programmers (two of us are otherwise very ...
0
votes
3answers
450 views

Which should be faster: 10 flat shaded polygons or 2 with a transparent texture

I have particle system, and I want to the individual particles to take the shape of a star. Which should be faster: Drawing the 10 polygons using a flat shader, or 2 polygons (a square) with a ...
0
votes
1answer
1k views

Browser based MMO [closed]

We are a team of 4 trying to develop a browser based MMORPG. Its partially text based in a way like Might and Magic. The world map would be in 3D and actions would be automatically resolved. The game ...
0
votes
3answers
297 views

Converting a Flash animation to Silverlight

I recently had an animated logo done in Flash for Deen Games. I need to display in all my Silverlight games. The problem is, the logo is about ~8 seconds long (205 frames); if I export all the images ...
0
votes
2answers
336 views

Obtaining a certain type of object with component based design

I'm trying to design my game to be component based rather than overly hierarchical. Essentially, every high level object in the game (like gun, or whatever) inherits and implements the interfaces that ...
0
votes
2answers
902 views

Graphics capabilities differences between mobile and desktop/console platforms?

I would like to better understand the difference in capabilities between mobile and desktop/console graphics? What exactly are the limitations of a mobile device? What kind of operations can a ...
0
votes
3answers
498 views

Help me choose an engine [closed]

So far i've been trying to make a RTS in pygame but, i feel like 2d is not enough and pygame has me do a lot of stuff that i would not like doing. What i would like doing is working on the AI gameplay ...
0
votes
4answers
364 views

Techniques for mapping “nodes” and paths between nodes in a world space that extends in three dimensions

I'm trying to create a travellable map/world. I want to model able-to-be-occupied nodes/tiles/locations and allowed paths between them to create a space infinitely able to be built upon in all ...
0
votes
3answers
10k views

How long does it take to ceate a game? [closed]

I know that this question depends really very much on plenty factors: 2D-Pong and a MMORPG are two totally different worlds; it also depends on creators' experience, on game quality, on the available ...
0
votes
2answers
32 views

Object has its heading stored as Euler angles. After it makes a turn, how do I calculate the new angles?

Assume said object is an aircraft. I store three angles (in degrees) that describe where it's headed: yaw, pitch and roll - in that order. Let's say the plane is flying vertically, upwards. The angles ...
0
votes
3answers
51 views

C# temporary variable error [closed]

I get the following error when running the code below: Cannot modify a value type return value of `UnityEngine.Transform.position'. Consider storing the value in a temporary variable public ...
0
votes
1answer
3k views

How to animate objects with bobbing up and down motion in Unity?

I have created a 2D platform game with Unity and C# where I have collectable items that can be picked up by the player. What I want is to give the items more focus by having them bobbing up and down. ...
0
votes
2answers
186 views

How to move a car over an environment

At the moment I'm writing a little OpenGL application. For now I have a car which can drive down a road. This works really good because I simply put the car on the street plane. Now let's say on the ...

15 30 50 per page