-2
votes
0answers
11 views

2D library/engines that runs fast on any modern PC

ToME, FTL and a lot of other 2D games that move just a few sprites and pixels per frame on the screen are getting 2-10 FPS on modern 3.1 GHz CPU with 8 Gb of memory. How come that the game industry ...
0
votes
0answers
8 views

Placing Plugins for sqlite in Unity Projects

I am developing a demo for Sqlite database for android platform. I've placed following files in my project. Mono.Data.Sqlite.dll sqlite3.dll System.Data.dll libsqlite3.so It is working fine in ...
0
votes
0answers
16 views

need help with coding [on hold]

I am new to actionscript 3.0 and need help coding, this is the final stage before it is finished. I need help with spawning objects at random x positions and then having them deleted when they have ...
0
votes
0answers
15 views

What is the purpose of taunts, compliments, emotes etc in games? [on hold]

Since answers to this question could get very broad, I am going to look at 4 specific use cases here, but if there are others that significantly differ please feel free to explain those in your ...
0
votes
0answers
16 views

Why is this comparison not working? [on hold]

I am running a coroutine and experiencing the strangest behavior that I cannot make sense of. I've tried writing the code several different ways but still get the same results. It is really bizarre. ...
1
vote
0answers
9 views

How to store sprite data in a VBO?

I'm planning on rendering many sprites in my games, but I am not sure which method of storing their data to use. I haven't tried all of them yet, but I want to see if I also have anything important ...
0
votes
0answers
25 views

Code for inventory functions not working

I'm working on an inventory, and I've ran into some problems. Some functions in my CollisionDetection class don't work properly. My CollisionDetection class contains functions that involve mouse and ...
0
votes
0answers
12 views

intersection coordination algorithm

I'm trying to create a 2D game where i have an a traffic intersection. My game object need to pass by the intersection without colliding with each other and without stoping them My question is ...
1
vote
1answer
10 views

SDL2 SDL_PollEvent endless polling on key hold

What is wrong with SDL2 SDL_PollEvent() function? When I press-and-hold a key it enters "while (SDL_PollEvent())" block each frame. If in previous frame event queue was emptied and in new frame I ...
1
vote
0answers
17 views

Webgl: pixel perfect tilemap rendering?

The problem described below is a follow-up of Seamless tilemap rendering (borderless adjacent images). I'm not sure to fully understand the rendering issue I have, so I'll try to describe as much as ...
0
votes
0answers
13 views

Mesh Smoothing using Manifold Harmonics

I am implementing Spectral Geometry Processing with Manifold Harmonics by Vallet et al. both in C++ and Matlab except the eigenvalue calculation part. I am implementing only smoothing (without ...
0
votes
1answer
14 views

design / data structures

I'm working on a game which I'm writing in Javascript and then porting to iOS/Android via phonegap/cordova. For the most part, I understand how to code and how to get what I want to happen, BUT I ...
0
votes
1answer
29 views

Why do games have different ports for different maps? [on hold]

A little old example for that would be Metin2, this is the only game I know which have that, but there may be more. In Metin2 there are maps which are accessable through other ports. I'm not a ...
0
votes
0answers
22 views

Link components to entity and put the logic in the components of an Entity-Component-System? [on hold]

We're a team of students developing a First Person Shooter. We decided to use the Entity-Component-System design pattern. The problem is, we disagree on how we should implement it. Half the team ...
-3
votes
1answer
45 views

Create a game from scratch [on hold]

I'm thinking in creating a simple 2D game to start learning something, but I don't know the best language to start. I know this can be a bad question, but I just know the basics of C# and a little ...
0
votes
1answer
20 views

Unity 5 - Mouse Disappears during runtime

My mouse cursor disappears during runtime. When I click esc, it appears and the moment I click on something, it disappears again. This is what I have done so far to fix this. I have added this to a ...
0
votes
0answers
7 views

Using Corona Labs SDK [on hold]

Has anyone tried out the corona sdk? Thinking of using their sdk to make something similar to Fun Run
1
vote
0answers
38 views

Bilinear filtering by sampling corners of a texel

I'm trying to do bilinear filtering in texels to get the convoluted value of a 3x3 block. Implemented as below: offsetx = 1/width offsety = 1/height Fragment shader: "varying vec2 ...
-2
votes
0answers
30 views

Motion related databasing with SVG and SQL [on hold]

In my game I have two elements moving towards each other, meeting in the middle of the screen. Something like this: (the image will be two slowly converging mouth-like objects, but it's not finished ...
1
vote
1answer
36 views

Unity3D: Making heavy calculation on separate thread

So, I've created a program with Kinect as its input. As you know, Kinect will send the data 30 frame per second. I have a model that will mimic Kinect's input motion, so on Update() I read the ...
0
votes
0answers
30 views

Linear gradient shader ( Photoshop-like)

I'm searching a way to implement a linear gradient shader that behaves as the linear gradient in Photoshop (only the vertical case is necessary). It will be applied to 2D sprites. Currently I'm ...
2
votes
1answer
53 views

How to create a looping or spherical world?

I wish to create a 3D first person world, in which the player, once they reach one end of the map are unknowingly transported back to the opposite end, or a spherical world with a surface where the ...
1
vote
1answer
29 views

Adding quaternions is useful?

I'm working with quaternions and matrices 4x4 and 3x3, and I have a doubt. I think that adding and multiplying quaternions is the same that converting the quaternion to a matrix, do the operation and ...
-1
votes
0answers
20 views

C++ derived class base methods return derived type [on hold]

I was wondering if there was any ways that I could call a method defined in the base class, but when called from the derived classit returns a different value. Eg class A { A getVal(); } Class B ...
1
vote
1answer
22 views

How to get color or value from material with shader?

I have a sphere with a shader with colors for specific heights and I want to get the value at the cursor(height) or color of the point the cursor is on when clicked. Is there a good way to get this ...
1
vote
0answers
25 views

How can I draw multiple lines connected via “nodes” in libgdx Scene2D?

I have two Vectors which indicate the ending points of each line. I am trying to draw similar lines to football formation lines like these. My main problem using ShapeRenderer is: ShapeRenderer ...
0
votes
2answers
66 views

Prevent player IP addresses being exposed

There's a common issue in multiplayer PC games like the older versions of Call of Duty where any connected player in a match can easily sniff the game packets and read the IP addresses of all the ...
0
votes
0answers
15 views

How Do I Improve This Game maker Project? [on hold]

I am very much a beginner at game maker and wish to improve my skill here is a car game a wrote yesterday (i left some experimental code in green), how would i go about improving it? And how do i add ...
0
votes
0answers
15 views

How to fix il2cpp.exe error for webgl

So I'm trying to build my project for webgl platform and it's throwing an exception which I don't know how to fix because it seems how some low level staff. Please help stdout: Building ...
0
votes
1answer
29 views

Having trouble with EOF in Xcode [on hold]

I'm getting an error that says "control may reach end of function" and I have gone through my code several times now and am not spotting the error. It may be something simple too. // loop ...
0
votes
0answers
11 views

Is there any way to get info abot official matches? [on hold]

Is there any API about cs:go official games?
0
votes
0answers
4 views

Discrepancy with Profiler.GetTotalAllocatedMemory() in Unity

I'm trying to calculate the memory usage of different parts of my game without using a Profiler. I have several textures loaded, and I get their memory consumption like this: ...
-1
votes
0answers
19 views

Instead of doing lighting in world space, in Tangent Space [on hold]

How can I do lighting calculations in tangent space with the code provided below. I've been trying different stuff, like multiplying the eye vector by the TBN basis and the light vector by the same ...
5
votes
2answers
80 views

How do I calculate paths for objects with limited acceleration?

For example, say I have a car and a car has a specific minimum turning radius and I want to drive that car from point a to point b, but the car isn't facing point b. How do I compute a path to point ...
-1
votes
0answers
28 views

Help with player varibles for multiplayer [on hold]

I need to make a server for my multiplayer game but there is a problem. I do not understand how to do player variables. So, in singleplayer there could just be PlayerXcoordinate and PlayerYcoordinate ...
0
votes
0answers
10 views

Unable to rotate an Actor using an Action in libgdx; what am I doing wrong?

I use this to add a rotate action to my actor: theme_button = new ThemeButton(theme); theme_button.setPosition(300, 300); theme_button.setSize(300, 300); ...
0
votes
0answers
34 views

Unity 3d shooter tutorial animation

I'm following this tutorial. I cannot get even simple animations to work. Here's a very simple case that was supposed to work but did not: Add an animator component to the 'player' prefab Create an ...
0
votes
0answers
17 views

Finding a place on a team and how to start it [on hold]

I want to start making game and i have a really good story and mecanic for it, but that's the only thing I have . I don't have any skill or talent in any basic gamemaking task outside of writing ...
-2
votes
0answers
14 views

libgdx - 2D Ball Box collision

I want to make the ball reflect when it touches the rectangle like in the picture below. The player can move the ball by moving his finger around the touchscreen and put the ball inside the box. After ...
2
votes
1answer
54 views

Rendering a distant star field in Unity using a separate camera for near stars

I'm currently working on a hobby project which is a universe simulator (exclusive to stars) built in unity3D. In order to deal with the raw scale of the universe I'm trying to implement two ...
0
votes
2answers
47 views

The best way to store and protect game data [duplicate]

I'm writing a sandbox-type game and i'm looking for a good way to store game data. I tryed Lua and plain text files, but the have a big minus - player can edit them his self! So how do I protect data ...
1
vote
4answers
59 views

Get perpendicular vector from another vector

I should clarify that I understand there is an infinite amount of 'perpendicular' vectors in 3D space. I am creating an electricity effect, and to do this the ability to have any number of ...
1
vote
1answer
38 views

Global variables in a multiplayer environment

I would like to know what's the best approach to solve this problem. In a racing game, i need to create the final result chart. In a single environment i've tought something like: private string [] ...
0
votes
1answer
27 views

Can't read input from keyboard

I'm new to game dev,and I just trying to create my first game,a simple pong game.But i can't handle the keyboard input. This is what i got : const Uint8 * keystates = SDL_GetKeyboardState(NULL); ...
0
votes
0answers
11 views

Script for Sprite Slicing works fine as a MonoBehaviour, but not as a normal class called in a Editor Script

I got a script for auto-slicing sprites from the internet. Link to the script. I made the script so that it is not a MonoBehaviour. Then i do this is my custom assets importer: private void ...
1
vote
1answer
18 views

My displayed Tiled map is rendered with different tile indexes than in the editor in Slick2D. Why?

The first picture is what I have in the editor and the second one is what I got when I rendered my map. @Override public void init(GameContainer container) throws SlickException { ...
-2
votes
0answers
37 views

I have an assignment due on Friday to create an android game on Android Studio [on hold]

I need to create a simple android game on Android Studio..please help its my first time using Android Studio.
0
votes
0answers
5 views

add physics to a group or container body in phaser

I'm developing a HTML5 Phaser game. In this game I do have a Group which I would like to behavior as a physics body (arcade-physics). It is a character with a lot of moving parts (sprites) inside ...
0
votes
1answer
16 views

libgdx collision on moving Rectangle with other Rectangle

I'm making a soccer game where you touch the screen and the player shoot the ball to the touched position with the objective of scoring goals when it hits the goal. The player is just a Sprite and the ...
1
vote
1answer
49 views

Increase speed with each enemy destroyed?

I need some help with coding this idea: "For each Target destroyed, increase the Gunner's speed by (speed variable)". The idea is that the Gunner is automatically moving, and I want it to become more ...

15 30 50 per page