0
votes
1answer
15 views

Proper use of Programs in OpenGL

I am creating a scene with multiple objects in it. Lets say I have 3 cubes, 1 cylinder and 8 spheres. My assumption is that I should create one vertex shader for each object. My question is, how many ...
0
votes
1answer
17 views

Unity: White line at camera meaning

I'm a new comer to Unity. In Unity, when I click to main camera in Hierarchy view. I see 6 lines: one blue, one red, one green and three white. I know red/green/white lines for (x,y,z) location but I ...
0
votes
1answer
20 views

How to implement variable timing

In my game I would like to change the speed of the time so that all animations and gameplay is slowed down or speed up. Ideally this speed also goes below zero so that everything goes backwards. ...
0
votes
2answers
64 views

Why gaming graphics is not that beautiful than animation movies?

I remember watching tomb raider pre rendered trailer, and wished if that was possible in game itself. Why there is so much difference ? I understand game is a completely different concept, it has ...
-2
votes
0answers
23 views

Not Sure What Programig languages Unity Can Work With

I am fairly familiar with Unity and I know how to work most of the features within it. But I don't know what programing languages to use for my unity based game. I have heard that it might be C#, but ...
0
votes
0answers
19 views

MonoGame - Get the 2D area of a 3D object

I'm writing a 2d game, but decided to make some 3d objects that my 2d character can pick up. I've got them displaying on the screen - but can't work out how to get the 2d area that the 3d object is ...
1
vote
0answers
27 views

Implementing Galaga Style Enemy Behavior in Unity

I've been trying to work on a space shooter with the idea of having enemies behaving like it is shown in this video : https://www.youtube.com/watch?v=3p7u8uCR6yw In the video above, enemies fly from ...
-1
votes
0answers
33 views

Content is null

I finally got the tileset to work, but after I got it working I was hit with a a content null error. Which is from: this.content = new ContentManager(content.ServiceProvider, "Content"); The first ...
0
votes
0answers
18 views

Book recommendation for Game Design? [on hold]

After being a developer for some years, i'd like to learn about game design. I've searched quite a lot of books but have no idea which one to start with. Is there one kinda like a standard that is ...
0
votes
0answers
8 views

LibGDX ShapeRenderer graphical glitches

So drawing something static on the screen with the ShapeRenderer is fine but whenever I try to move something it starts glitching out. Here's a vine to show what I mean: https://vine.co/v/OBxFi1P2IO9 ...
0
votes
0answers
11 views

Unity Physics Material - Character Slides Too Much

I am currently working on a 2D platformer in Unity. I am using a prefab from the AssetStore for my character (The last paragraph contains a link to the prefab). The character has a circle collider for ...
0
votes
1answer
22 views

What does the “random element” do in Cellular Automata

I'm reading this post on TutsPlus regarding procedural level generation using cellular automata. My question arises in this code snippet: float chanceToStartAlive = 0.45f; public boolean[][] ...
0
votes
0answers
17 views

Multiple tile drawing in monogame is slow

So I have this drawing function (which is by the way recomended as an solution here). It draws tiles on the whole window with no problem but my game slows down to ~30fps after maximizing it to ...
-1
votes
0answers
25 views

Is it possible to make a 4-player P2P Flash game? [on hold]

I found out about P2P in Flash just minutes ago, and I was wondering if it's possible to make a 1v1v1v1 game with it. If so, does anybody know of any tutorials? This P2P stuff is really interesting.
0
votes
0answers
12 views

How can I create a raster from a custom Pixel array?

I have a rasterizer that I am building. It will first load a .obj file and create points to draw. Then, an image will be plastered over the wire frame and from there become an image on the next frame. ...
0
votes
0answers
14 views

Deferred Lighting - Mapping generated texture on to screen when there size don't match

A while ago I asked how to map to the generated texture to screen and I was told to use Load function. I found this answer to be fine when the texture and screen size match but it doesn't work when ...
3
votes
3answers
444 views

What is a direction vector and why should it be normalized?

I've been trying to get the hang of vectors and I read Wolfire's blog about linear algebra and I seem to understand most stuff except when it comes to storing a direction as a vector and using it by ...
0
votes
0answers
8 views

Handling multiple clickListeners (LibGDX)

I have two methods which draw two buttons in my game. private void drawOnePlayer(float dt) { final Texture texture = new Texture( Gdx.files.internal("Assets/buttonOnePlayer.png")); ...
2
votes
1answer
30 views

Screen coordinates to isometric coordinates?

I know this has been discussed here before, but I couldn't find an easy solution for my particular problem. I have a tile system and I'd like to convert screen coordinates into isometric tile ...
2
votes
1answer
40 views

Balancing Attack to Defense in a text based RPG

I understand that there is no correct or incorrect way of doing this, and its all down to a matter of trial and error in terms of perfecting the system. What I am after is some advice or even get ...
1
vote
0answers
49 views

Is it reasonable to use a 2D texture as a lookup table in GLSL

I need a lookup table in a shader. The input values would be color values and the output other color values. Something like: uniform float lut[256]; color = vec3(lut[int(color.r*255.)], ...
2
votes
1answer
16 views

Refresh rate in PSM apps

In main loop of PSM app: public static void Main(string[] args) { Initialize(); while (true) { SystemEvents.CheckEvents(); Update(); Render(); } } we are not ...
1
vote
3answers
32 views

Fullscreen transition time

I'm not sure whether this is the correct site to ask this question, but why does it sometimes (game-specific, usually) take really long to enter / exit a fullscreen game (black screen for ~1-5s)? And ...
-1
votes
0answers
13 views

Connecting together multiple classes JAVA [on hold]

In my previous question I learned to divide one class into multiple classes. I divided them into a couple of classes, but it is not working! It just shows blank screen. Map isnt loading nor the ...
0
votes
1answer
22 views

How do I properly import an fbx 3D model into Unity3D?

I am trying to properly import a 3D model that was made for my game in Unity3D. I was able to import the model, and I put the texture on it, but there are several other files that go unused. I think ...
-3
votes
0answers
25 views

While loop not working in breakout game? [on hold]

Below is the simple breakout game, i am using the while loop in draw() to continuously move the ball but its just showing the white blank screen ,not even showing the pad. #include<windows.h> ...
-1
votes
1answer
32 views

Using multiple strings within the path to Write to Text File [on hold]

In Unity3D, How would I use something like this: path = "C:\Users\Jonathan\Documents\FileData" + fileName + ".txt"; so I can make a for loop and create several text files under desired path? The loop ...
1
vote
0answers
10 views

Best practice for saving content-dependent metadata? [on hold]

What is the best practice (compliant with the 3D pipeline) for saving content-dependent metadata, such as barycentre? I don't want to render the metadata, but I want to inform the users about it. I ...
0
votes
0answers
35 views

Multiple Body Code?

I've been working on one game, 3D RPG with Ogre graphic engine and I wondered if there is a code for multiple bodies? Currently there is only one body model and if I want to add a new one, the ...
0
votes
0answers
16 views

C# XNA 2D Tile Lighting Problems [on hold]

Hi guys im trying to implement 2d smooth lighting effect like terraria.But there is some issues like this: http://oi61.tinypic.com/2udwdy0.jpg Border blocks has 0 light, why i dont know. ...
1
vote
2answers
47 views

Command Interface design for RTS

Commands may have different target type; like NONE, COORD, UNIT. Some example commands may be: Attack (target UNIT), Move (target COORD), AttackMove (target COORD), Stop (target NONE), UseAbility ...
1
vote
0answers
21 views

Implementing debug “overlay” info

This question is actually about GameEngine2D which is part of PSM SDK (for PlayStation Vita development), however as stated in documentation it's loosely based on cocos2d library. I hope that my ...
0
votes
0answers
21 views

Deploy javascript game on andorid and ios [on hold]

I have a javascript game (html5) developed for web, which i want to launch on android and iphone app stores. i have surfed the web and i found this platforms.. CocoonJS, Game Closure, PhoneGap, ...
-1
votes
0answers
51 views

What language should I use, and how should I go about this? [on hold]

After a few weeks of trying to decide what my personal game project will be, I finally came up with one. I'm a pretty decent programmer, but I don't know if I am coming at this the right way. I plan ...
0
votes
0answers
13 views

What would be the best business-model used for free game apps for mobile?

Do you have any recommendations and tips in order to start making or building business model mobile phone game apps (for Android and iOS) especially if it is free version? How will make it successful ...
0
votes
0answers
26 views

How do I convert an NPC to a player model in the Source engine?

The models in the Source engine are different based on whether they are NPC models or player models. Basically, when an NPC is used for a player model it has no animations. It cannot walk and it holds ...
2
votes
0answers
49 views

“Normal” Blend Mode with OpenGL Trouble

I've been having a lot of trouble trying to get a OpenGL blend function to work as I'd expect it to with like what I'd expect (or from any sensible image editing program). As an example, I'll use ...
3
votes
1answer
220 views

Rotating a GUI.Label relatively

Learning Unity for 2D development, I want to create a text label. So far, I have been using GUI.Label to write the text. It is above my sprite: I would like to rotate the label relatively to the ...
3
votes
1answer
43 views

Programatically find out which app store install came from?

Background In my app, I have a 'rate me' button. It follows the usual path - user clicks in, it starts an intent and opens the app's listing on the Play Store. All well and good. Now I wish to try ...
0
votes
1answer
26 views

Create dynamic cities of perspective angle x with least amount of tiles

I found you can create unique building sizes with perspective with six tiles using parallel projection, whose angles are always 45 degrees... this allows you to connect to the next tile without issue: ...
0
votes
0answers
18 views

How to access base class from within subclass? [migrated]

I have an abstract class called BaseMonster. This "base" class holds several values, such as float dyingTime =2, that will be the same for all monster subclasses. But since there are a lot of values ...
0
votes
2answers
54 views

How relevant is the ability to move/rotate buildings post construction in city builders?

I am playing with the concept of a city builder and I have seen many around, but I am still fresh in the area of game design. I have seen city builders where, once you build a building, you have to ...
1
vote
0answers
8 views

Using xinput vibration with java

I need to use vibration for my java game, which is only available through xinput since I use xbox controllers. How can I achieve this with jna? I've never worked with dlls before so any help is ...
0
votes
0answers
12 views

I want to load images from jar during runtime in android

I want to load images dynamically from a jar which is present in my android project. I tried looking @ Dynamically load images inside jar but on execution of InputStream inputStream = ...
1
vote
3answers
105 views

How do I generate solar systems for a 2d universe map, but still look random

I need to generate 64 systems separated into 16 sectors, each with 4 systems. Each system must have another system within 10 units in it's own sector, but no closer than 3. One system in a sector ...
0
votes
1answer
30 views

Jumping distance due to X velocity

I would just like to know if there is a way to work out the distance of a jump depending on how fast the player is going. For example if the player has a velocity X of 10 and he presses the jump ...
0
votes
1answer
10 views

Camera world matrix to view matrix

I've been working on a game engine and I model every object in my scene graph as an "entity" this includes my camera. My camera therefore has a position and rotation in world space and at the moment ...
0
votes
1answer
20 views

Decentralized Matchmaking in Unity?

I'm making a card-playing game, similar to Magic Workstation. I've been looking into several options for networking. I have a working LAN version with the build in Unity networking, as well as Photon ...
0
votes
1answer
22 views

Smooth path/direct movement

I have a tile based isometric map and an A* algorithm that returns a path. I am looking to smooth this path efficiently but with good aesthetics. Basically i am using my grid for building the map and ...
-1
votes
2answers
41 views

SDL, SFML, GLFW specific questions on a very heavy OpenCL engine

I'm not familiar with SDL, SFML, GLFW or other libraries because i've been creating windows and basic inputs myself in Windows, OSX and Linux. Being the performance my absolute first concern i'm on a ...

15 30 50 per page