All Questions
0
votes
0answers
5 views
Player duel algoritm with several character attributes
I have built a very simple game in which you build up a criminal nature.
You should then be able to attack other members in the game.
The skills are.
Strength
Agility
intelligence
Who will ...
0
votes
1answer
6 views
Use of SpriteFonts without installing on host machine
I am working on a Windows game for my university project. In this project I am using a custom TrueType font which is not installed on any university computers. For submission my game is required to ...
0
votes
0answers
26 views
Rewriting lighting engine from action script to C#
I am trying to rewrite lighting engine from here http://blog.pixelpracht.net/?p=340 that is written in action script - into C#, monogame framework. The problem is that I did everything and nothing ...
0
votes
0answers
10 views
libgdx universal tween engine how to control the tweening speed?
How can i control the speed of a tweening sprite? Here is the code:
in create ()
/*try tween*/
w = Gdx.graphics.getWidth();
h = Gdx.graphics.getHeight();
...
0
votes
0answers
15 views
C++ Visual Studio Sprite Animation Function only setting values for certain Rect structs in SDL
I'm making a game in SDL and I am using an Array of Rects to store values of sprite sheet clip's dimensions. When I call the function and pass in one of my sprite sheet textures with it's ...
0
votes
2answers
107 views
2D Pathfinding causes Stack Overflow
I have been working on my first ever attempt at 2D Pathfinding (Still fairly new to gamedev) using the A* Algorithm as detailed here - http://www.policyalmanac.org/games/aStarTutorial.htm
For the ...
0
votes
1answer
22 views
Handling differing inventory items on use interactions
Hey there my fellow programmers. Looking for a little input into a potentially smelly code problem (I was about to post this on the Code Review SE, let me know if that's the more proper place).
After ...
0
votes
0answers
14 views
I want make a box colleder for top, botton left and roght in c# but dont work [on hold]
my boxs colliders don't work I dont know the reason.
ok well explained, I created 4 objects with their respective boxcollider2d, now I want that code add to up, down, left and right of the object ...
0
votes
2answers
32 views
Arbitrary number of VBO to Vertex Shader
I am currently using standard modern OpenGL way to render a mesh via VBO and attributes
glEnableVertexAttribArray(aVertexPosition);
glBindBuffer(GL_ARRAY_BUFFER, VBO);
...
0
votes
0answers
8 views
JAVA 2D Game Development Animation Problem [on hold]
I am a beginner Java Game programmer and I recently lost some of my edits.
One of the issues I had solved in the past came back to haunt me.
Basically when the Player collides with the water tile,
...
0
votes
0answers
8 views
How to make gravity in Blitz3D?
I am making a game in Blitz3d and I made simple gravity, however once the object falls on the ground, it goes through it very slowly. The ground is a plane and I have collision on it.
This is a ...
0
votes
0answers
32 views
C++ Proper use of Singleton class [on hold]
I am creating a game in C++, using Win32 and GDI+. I am wondering where I should implement a singleton class and how to design it.
I have written a class, Move, that contains a unique pointer to a ...
0
votes
2answers
41 views
Protecting tilesets [duplicate]
I have a game and my tilesheets are placed in the images/ folder.
If a user edits the tilesets, they can make them transparent (I use white as my transparent color on them) and in game basically ...
0
votes
1answer
21 views
Circle-line segment collision resolution
I'm trying to make a side-scrolling game using this method and I'm having some trouble getting it to behave right. The collision shapes consist of multiple connected line segments and I'm checking ...
-1
votes
0answers
26 views
Incorrect texture applied to triangle
I am trying to draw a certain part of a texture based on data from another texture.
A texture is passed into the fragment shader. Its red component contains a value from 0-255 (shader maps it to 0-1)
...
0
votes
0answers
20 views
Modern lag or latency requirements for screen reaction on keyboard keypress? [on hold]
What are modern real-time game requirements for the time between key press and reaction on screen to be considered an excellent gaming experience? By excellent gaming experience I mean that player ...
0
votes
1answer
49 views
How to pass a turn to AI and draw its move in a game?
I am writing a simple game for 2 players, where they have to make turns after each other (select a few objects to remove from the screen) and press "End turn" at the end to pass the turn to another ...
0
votes
0answers
42 views
Just starting out. Literally [on hold]
I am literally just starting out to programming, and game development. I've been watching youtube creations for unity. Watching how they are inputting code and all for things I will want to do with my ...
0
votes
0answers
43 views
Shader - Objects Depth or Thickness
I am using Unity and would like to render the thickness of an object.My first thought was to use the ZBuffer and the depth but it is always depend to the camera, it seems legit.But I would like to ...
1
vote
1answer
43 views
libgdx glClearColor not setting right color?
i just new to libgdx and trying to understand the example code, the following code sets the bg color
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
Gdx.gl.glClearColor(60,181,00,0f);
my ...
2
votes
2answers
66 views
How to preserve topology for penetration correction?
I have a sorted list of blocks - some may overlap some may not.
Each block has an ideal starting position and may be constrained to one axis.
There are no velocity or acceleration or other forces ...
0
votes
0answers
16 views
Working with random numbers in Unity [duplicate]
I am randomly trying to generate few regions ( grass, ice, snow and water ) for one of my games inside Unity. Every time the game starts, these regions are randomly generated but at the same time I ...
0
votes
0answers
20 views
Inventory not removing items [on hold]
I have a crafting system which mostly works, when i pick up the right objects a recipe will appear in the crafting window. But when I craft the object none of the items in my inventory disappear. I ...
0
votes
0answers
11 views
BaseGameUtils multiplayer [on hold]
Hello gameDev community,
I have Google Play Game Services leaderboards and achievements working in my LIBGDX android project. I am using the com.google.example.games.basegameutils gameHelper class to ...
2
votes
0answers
26 views
Game Maker x and y coordinates wrong
I'm making a game which the user can use the arrow keys to scroll left and right to view the map. I had an issue with the health bars of my enemies being drawn way off even though I set them to be ...
1
vote
0answers
24 views
How to handle tiles on top of players
I am creating an 2d bird view tile game using the pixijs render framework.
Like pokemon or oldtime zelda.
In those games you sometimes walk behind buildings where the tile would be drawn on top of ...
0
votes
0answers
28 views
How do I hook up new spell scripts in Skyrim?
I am currently using this tutorial of making a location-based magic spell in Skyrim. The spell I'm making will place a soil mound on the ground wherever the conjuration ball hits when you shoot it. ...
0
votes
0answers
14 views
Projectile Motion in lwjgl with java [duplicate]
I was trying to make a game with a bow and arrow using lwjgl but I couldent get the arch right. I have a function called projectile that is updated once a frame for each arrow. my frame cap is at 60 ...
1
vote
1answer
59 views
Minkowski Portal Refinement collision detection algorithm
Preface: While I was learning the basics of collision detection, I read in various places that the SAT and GJK algorithms don't natively return contact points. So I decided to research the MPR ...
0
votes
0answers
15 views
Audio Editor Recommendation [on hold]
Can you please recommend me a good audio editor?
I need the tool to create simple audio files for my platform game.
Prefer easy to use and ability to create a new file and edit existing file.
Thanks,
...
0
votes
0answers
26 views
Unity-How to make a IOS game and play it? [on hold]
So i was making a mobile game but to test it properly, i need to send it to my iPad (my ipad uses IOS 8). How do i send the game to my iPad and test it?
0
votes
0answers
42 views
Is there a common way of structuring classes for a 2D game? (Sprites, Shaders, Scenes) [on hold]
I'm learning WebGL by writing a small 2D game. There are things in WebGL that are a bit new to me (previous experience was with XNA, which wrapped a lot of stuff up in a Game-focused API), such as ...
1
vote
1answer
63 views
Ambient occlusion of cubes, a specific case
After much fiddling around and thinking I've got my AO working on my game engine as intended; except one specific case.
When a block is nestled between others on two sides, but the corner block is ...
0
votes
0answers
19 views
Batch geometries
I would like to batch my meshes but I'm not sure how to do it.
For the moment, I merge all meshes with the same format and same material in a single mesh. Everything work, but transformation is not ...
-1
votes
0answers
42 views
Looking for a programmer (2d pixel art game for pc) [on hold]
I'm Camil a pixel artist and I would like to know if someone here want to help me to develop
a pixel art game. More info contact me.
0
votes
0answers
37 views
“Best” implementation for RPG Items [on hold]
So I'm working on an RPG and I have two goals:
The ability to load in items from a database.
The ability for items to do interesting unique things in the game in addition to the more mundane.
The ...
-1
votes
1answer
35 views
Good programming practices in Java / Slick2D [on hold]
I'm developing a game for a research project in University, and I would like to know what I can do to improve the quality of my code. It's a 2D tile-based top-down action-adventure game similar to the ...
1
vote
1answer
51 views
How to deal with tags in a component
I have a component called "ReflectOffCollision". This component should obviously not need to be aware of specific details about the game such as tags. The problem is, I want to apply this script to an ...
1
vote
1answer
101 views
How do I call OpenGL methods that require pointers in C#?
I have found the following C++ code in this tutorial to draw a triangle with OpenGL 4:
float points[] = {
0.0f, 0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
-0.5f, -0.5f, 0.0f
};
GLuint vbo = 0;
...
0
votes
0answers
92 views
Bad quality of the sprite in Unity
I need to import a few sprites (background platform and sky) into my game scene but it seems that their quality after importing into Unity is too bad (they are blurred). The original resolution of ...
0
votes
1answer
28 views
UV map data structure
I've received a few instructions on what kind of usage UV maps allows, and currently try to understand how it works. However, I can't figure out what kind of data there is inside a UV map.
Googling ...
0
votes
1answer
33 views
Why does changing texture change it for both objects? [duplicate]
I have two identical objects in my Unity scene. When I change the texture of one, the texture is changed on the other, almost as though the first one is a prefab. Why is this happening and how can I ...
2
votes
2answers
496 views
Store values or calculate values [on hold]
We're talking about fairly anal levels of optimisation here that I wouldn't really worry about in anything other than mobile games. Let's say for example you were drawing a texture to the screen in a ...
0
votes
1answer
48 views
What is the speed difference between cross platform HTML5 games and native mobile games? [on hold]
Microsoft is advertising and promoting cross platform HTML5 game development. I am thinking of creating a simple 2D side scroller game and I am trying to decide what engine should I use for creating ...
0
votes
0answers
24 views
Can Google Play Games Services (GPG) be used in games not running on Android or iOS?
Can Google Play Games Services (GPG) be used for games not running on Android or iOS? For instance, can GPG be used for using real-time game state communication between players on platforms like ...
0
votes
3answers
63 views
Can I mix the use of VAO and direct usage of glVertexAttribPointer?
Let's say I am not using VAOs. I have an array of vertex positions in memory that I want to send to the shader. I do the following (assume I have enabled the corresponding vertex attrib arrays):
...
0
votes
1answer
34 views
Bow and arrow in 3d space with lwjgl and java [on hold]
I am making a project that involves a bow and arrow. I have a function that inputs you're location x,y,and z. You,re view yaw,pitch,and roll. And the speed of the arrow(depends how far you pull it ...
0
votes
1answer
59 views
OpenGL Texture Won't Show [on hold]
I have no idea what I'm doing wrong : (. Model always shows as black -> grey.
Thus far, I've spent around 2 weeks trying to figure out what's wrong. I've slowly evolved the code over time. Today, I ...
0
votes
0answers
38 views
Problem making GUI [on hold]
I'm creating a game chat for my game and I have this problem which I don't know how to solve.
So far I made this screen to look like this:
TextArea for messages and a TextField for user to enter ...
0
votes
2answers
60 views
Random Placement of Objects on a Tilemap
I have read many topics on random world generation on this site and others, and I roughly understand most of it. What I can't see is how to randomly place objects on the generated tile map I get. Say ...