0
votes
0answers
5 views

Can someone crack my in-app products?

I want to release a game in the Apple App Store and I want to know if it's possible that someone can crack the game and it's in-app products hours/days after the release. I know that it's not ...
0
votes
0answers
2 views

solution for implementing a movie game

Currently I'm developing an adventure movie game using flash Actionscript 3. what I need is a cross platform solution capable of playing video files (mp4 h264 fullHD now, could be any format). The key ...
2
votes
1answer
4 views

Sending POST data with WWW in Unity C#

I would like to use Unity's WWW class to send a an HTTP request with POST data. So in my server, my PHP script can do something like $number = $_POST["NUMBER"]; According to ...
0
votes
0answers
6 views

FPS drop after moved from Textures to TextureAtlas in LibGDX

I've started using LibGDX some time ago and I was making a test project to get used to this library. I've created some images and added them to the assets folder and loaded each image as a Texture ...
-1
votes
0answers
6 views

(Unity3D) Make Object child for camera [on hold]

I made this script and i get 3 errors. find = GameObject.FindWithTag("Ray"); function OnCollisionEnter(col : Collision) { if (col.collider.tag == "Ray" ) { find.transform.parent = ...
0
votes
1answer
17 views

Explaining vector math for a pendulum camera

I came across a code that I guess is doing a pendulum camera, that's the class name. I would like to know the math behind that. I would like also to know how to decipher those stuff in game math, ...
0
votes
0answers
12 views

Precise Real World Heightmap [on hold]

I tried various Google Earth Plugins, i checked out all available Nasa Images, but it seems like a high quality (possibly greyscale) heightmap is nowhere to be found. Im looking for a precision of 5 ...
0
votes
1answer
18 views

Trigger an event when a game object touches a non-solid game object

For a 2d game, I are currently making an AI and I want it to jump when it touches a invisible cube, which isn't solid, how do I do this?
0
votes
0answers
23 views

MVP Matrix * Vector3 = Black Screen?

I'm relatively new to computer graphics so please take it easy. I created a ModelViewProjection Matrix and I sent it to my shader: #version 330 core layout(location = 0)in vec3 vert; uniform mat4 ...
0
votes
0answers
28 views

Small question about ECS : Advantage of having a component with a list of Base Class , or a component for each implementation of the base class? [on hold]

I'm trying to learn ECS based on guide and an ebook I'm reading, but since those are mainly simple example, I have alot of question when looking at larger projects and not simple 5 component game ... ...
0
votes
0answers
10 views

Unity Move Object to Object [on hold]

Please help.I need a js script for move an GameObject with the tag "ridica" to an object with the tag "membru" when i "onMouseDown" a GUI Texture.And i want to leave the gameobject to fall after i ...
0
votes
1answer
40 views

Why does my vertex shader produce no output until I add some arbitrary value to the position attribute?

I want to draw a textured quad but there is nothing drawn and the setup should be right. This is my vertex shader: #version 330 in vec2 position; in vec2 texel; out vec2 texCoord; void main() { ...
-1
votes
0answers
19 views

How to present limeted rotation possibilities in an editor

In a 2d game I'm developing, I'm aiming at making the level editor an important part of the game. The game will be primarily aimed at mobile platforms, i. e. smartphones and tablets. The game ...
7
votes
3answers
693 views

How can I create a stretchy, breakable pizza cheese material?

I want to create realistic pizza and allow user interact with it. What I want: What I created: I created model of the pizza (8 pieces) in Blender, then imported it into Unity. The piece of ...
0
votes
0answers
15 views

LibGDX , what is box2d [on hold]

I am using libGDX to create games , but I want to know what can I do using box2d ? shall I use sprites , stages , actors if I use box2d? is there good tutorial of box 2d?
2
votes
0answers
53 views

Skybox rendering

I am sorry if this is trivial, but I got into OpenGL just very very recently. I am trying to render skybox (with cubemaps) and this is what I have done: Created a VBO with vertices positions (36 ...
2
votes
1answer
84 views

How to design a drag and drop inventory system with transition from icons to game objects?

I’m trying to write a simple 2D game in Unity with an inventory where the user can drag and drop different objects on the screen. I need the inventory to contain icons which on drag will become ...
0
votes
0answers
38 views

c++ factory pattern component creator with singleton container [migrated]

I'm implementing the factory pattern for component creation and want to implement a singleton container for all instances of each type created by the factory. Ideally this would be one vector for each ...
1
vote
1answer
66 views

Input processing performance

I'm building a game using SDL in Linux platform. Now I want to read user input with SDL_GetKeyboardState, but my doubt is wich is the best way using a thread or a timer. I tried both and I think ...
1
vote
1answer
53 views

Collision detection across multiple components

I have been reading this article: http://gameprogrammingpatterns.com/component.html which describes how a game object should be constructed out of components. It also encourages the decoupling of ...
0
votes
0answers
26 views

Fluid body physics for enemy engulfment

The entities in my game are soft-body, amorphous blobs. I'd like to create an animation where enemies are engulfed by the player's blob. See this video for the type of motion I want: ...
0
votes
1answer
20 views

XNA tiling a sprite with a camera.viewmatrix in the Draw method

I'm looking for help fixing a small problem that I have with my XNA game project. I currently have: spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, ...
1
vote
1answer
31 views

Animation-based Collision Boxes

Background I'm currently working on a top-down 2D game, roughly similar to something like Zelda for the SNES. Certain game entities such as the player or a typical enemy will consist of multiple ...
0
votes
0answers
15 views

is learning both java and objective-c for app development better or learning c++ for mobile multi-platform app? [on hold]

I want to create a games like angry bird, temple run, and write some apps like reddit. What should I do? 1) Learn java and objective-C for both mobile platform? 2) Learn C++ and various other skills ...
1
vote
1answer
46 views

Night cycle on a globe

I am working on a tile based game on a globe. I am trying to implement a simple day night cycle on my hex globe something similar to the image below Here is the picture of my globe inside Unity ...
1
vote
0answers
24 views

Texture R8_FLOAT format?

I'm working on SAO (http://graphics.cs.williams.edu/papers/SAOHPG12/) and I want to store my ambient obscurance term (a value between 0.0 and 1.0) in a texture. When I did shadowmapping, I created ...
1
vote
3answers
85 views

Mathematics behind Phong shading and additive blending

I'm confused about the mathematics behind additive blending used in conjunction with Phong shading. Intuitively, it seems like you would need to use a floating-point framebuffer and some sort of ...
15
votes
7answers
4k views

Why is it bad to hard-code content?

I know most games store dialogue text in files, but I've also seen a few text-based games actually program the content (map, choices, possible player commands, story text) into the game code. I can ...
0
votes
0answers
35 views

How can I do a weighted cascade down a path in a 3D environment?

I am trying to perform a weighted cascade down a path in a 3D environment. Now, what I am trying to do is have one object(a cube) in the environment scan from its coords 1 in every direction for ...
0
votes
0answers
14 views

Making a 2d sidescroller RPG with GameMaker Studio [on hold]

Is is possible to make a 2d sidescroller RPG with GameMaker Studio?
0
votes
0answers
23 views

Unity 2D detect if swipe goes through an object

I am developing a game in unity with flying arrows that the user tries to deflect by swiping through them (changing their direction). I can get the arrows to move with the swipes, but they move no ...
1
vote
0answers
25 views

How to custom file formats work, encryption, packing etc [duplicate]

So say I take an example from Telltale games, they pack all their file assets into ttarch files, now I guess this is a custom file format that allows many file assets such as dds, jpg, bik, wav, 3ds ...
0
votes
0answers
6 views

Overriding Help [migrated]

I can't get method overriding to work. Right now I have a class called Sprite, and two subclasses; Let's call them Goomba and Koopa. Instances of Koopas and Goombas are stored in an std::list of ...
0
votes
2answers
49 views

Strange quaternion rotation

I was implementing some quaternion rotations in too my infant 3d game engine and the rotations were really strange? Excuses my cluelessness. Anyways this is what I have: static XMVECTOR ...
0
votes
0answers
55 views

2D Physics/Game Engine Recommendations? [on hold]

I'm looking for a 2D physics engine recommendation. C++ would be preferred, but is not required. I'm looking for something that can handle solar-system level speeds/distances/sizes, while still being ...
0
votes
2answers
48 views

How to detect collision between two directed object?

I'm currently writing a game which is like Battle City game. But right now I'm facing a trouble involved to checking collision between two objects. This is the code that I wrote: ...
5
votes
1answer
470 views

What's the 'proper' way to get unit vectors?

My apologies if I've misunderstood the term 'unit vector' or misapplied it in concept, but I think that is the term for an object's heading when expressed as [x, y] when x and y are a value between -1 ...
1
vote
1answer
37 views

Prefab disables its script when a clone is instantiated

A clone of a cube is spawned when it is destroyed, however the clones disable the script in the editor (example: http://gfycat.com/SnarlingScornfulEgg). Used the exact same script for a different kind ...
1
vote
1answer
78 views

What are the most common ways of closing an open world? [on hold]

In many open world games, there are several ways to limit them. From original ones such as Desynchronisation(Assasins' Creed) to invisible walls. What are the most common ways to close open worlds?
28
votes
7answers
3k views

How can I avoid having many singletons in my game architecture?

I use cocos2d-x game engine for creating games. The engine already uses many singletons. If someone used it, then they should be familiar with some of them: Director SimpleAudioEngine ...
0
votes
0answers
17 views

Need some guidance implementing event based game loop in JavaFX card game

i tried to make the title as much informative as possible. Anyhow, i'll try to be brief - I'm fairly new to java programming and programming altogether, after learning the basics and some advanced ...
0
votes
0answers
29 views

Securing HTTP requests to online game server

I'm pretty new at making online games. Right now I'm trying to make an iPhone game. Each player has a profile in my server. I want to avoid username/password for authentication. Currently, as it ...
2
votes
1answer
25 views

How do I pause a single bone with spine?

I'm using spine along with SFML. I have a character that is always animated. When he shots, I set an animation that affects only his arm. The arm goes up, but I need to stop this animation in the ...
0
votes
1answer
43 views

Unity3d wheelcollider falling through terrain

I have created simple project with 3D car and terrain. I have added 4 Wheel Colliders on model wheels. But when I run project wheels falling through terrain. Before run: After run: I am sure that ...
2
votes
0answers
29 views

Fighting aliasing on specular highlights

MSAA does a good job removing aliases on mesh edges, but it does not help with aliased specular highlights: Notice the aliased specular highlights on the doors and windows. I believe the reason ...
0
votes
0answers
36 views

Are there any SDKs/Tools for modding Civilization V or IV? [on hold]

I want to know if there are any external interfaces within Civilization 5... Let's say I am starting Civ5 and load a Savegame, is there an interface where I can tap the data which is currently used ...
-5
votes
0answers
28 views

help me about c# [on hold]

using UnityEngine; using System.Collections; public class MYCLASSNAME : MonoBehaviour { public float speed= 45.0f; private float offset= 0.5f; // Assues a cube of 1 unit on a side. ...
0
votes
1answer
25 views

Slick2d - state change problem

In my slick-based game, I have 4 states - introState, gameState, pauseState and menuState. From the gameState, I want player to go to either menuState or pauseState. To do that, I did this in ...
1
vote
0answers
32 views

Smooth digging physics with Phaser

I'm trying to make a Dig Dug style game where you will be digging into a material. This is going to be a HTML5 game and I have decided to use the Phaser framework. One way to do the digging mechanic ...
1
vote
2answers
55 views

Position GUI Text in 2D game

I am working on a 2D game, and my camera is a orthographic with a size of 320. I want to display some text, but not with OnGUI(). Rather, with a GUI Text game object. I couldn't help but notice that ...

15 30 50 per page