Newest Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Resolution-independent rendering of crisp 2D graphics (SD2, non-pixel-art)

I’m a beginner developing a 2D game in SDL2 using C with a visual style similar to Geometry Dash (simple shapes, clean high-resolution graphics, not pixel art). I want the game to scale correctly to ...
NewCoder's user avatar
0 votes
0 answers
57 views

What is &256 function C++ [closed]

I see in noise functions a lot the function "&256" I think it's used to wrap a remainder from 0 again for values larger than 256. Is this what the function does? For example In c++ Int A ...
Opengraphicspros12's user avatar
0 votes
0 answers
10 views

Transform is not available in SystemBase Script (Unity Entities)

My player is baked entity in subscene while main camera is outside on scene. For some reason system cannot find transform of camera, GameObject was found though. <...
UNREAL's user avatar
  • 1
-1 votes
0 answers
56 views

Values for Hermite Curve used in Perlin Noise

I need to know if the Perlin noise code I'm making that will use the hermite curve needs values between 0 to 1 or -1 to 1 in its permutation table or whatever is correct. I read the hermite curve uses ...
Opengraphicspros12's user avatar
2 votes
0 answers
59 views

Changing prediction to interpolation on client connected to the authoritative server

Let's assume the following situation: I have a server, that sends a snapshot of current game state to all the clients at a fixed time. Server is authoritative, all the physic calculations are done on ...
zillah's user avatar
  • 21
3 votes
0 answers
87 views

Displaying pixel art at any resolution with subpixel movement

The Goal I have a game in Unity which utilizes pixel art. I'm not following the standard rules of pixel art, however. I'm ok with sprites having different sized pixels, pixels rotating, and pixels not ...
Afropenguinn's user avatar
9 votes
5 answers
4k views

How can I encourage players to play optimally against bosses?

I am making a shoot em up game with an aerial view. It’s main gimmick is that, instead of working like a machine-gun, your character throws a boomerang that hit the enemies both on the way there and ...
Alexis Mercado's user avatar
0 votes
0 answers
55 views

Hashing gradient vector and unshuffled permutation table in perlin noise generator

I'm implementing perlin noise in C++. I have a permutation table for the gradients vectors and want to shuffle them with a 2 number hash that has 2 purposes. The hash uses the integer portion of the ...
Opengraphicspros12's user avatar
-1 votes
0 answers
44 views

Perlin noise permutation table

I read that the permutation table in classic perlin noise uses values from 0 to 255. I want to know if the quantity of elements can be increased. I think it uses 256 values (0-255). I'm going to make ...
Opengraphicspros12's user avatar
1 vote
1 answer
150 views

How to speed up collision detection if there are hundreds of objects?

Let's say I have like 500 Asteroids and I'm using SAT to determine whether a collision with the Spaceship object has happened. This would require an insane amount of CPU cycles, so it makes sense to ...
Jared Kosiba's user avatar
1 vote
1 answer
34 views

Gizmo scaling with arbitrary reference coordinate system

I am currently implementing gizmos in my engine (or rather continuing the implementation I made a year ago). I had implemented a way to choose whether transformations are applied based on local space ...
ostef's user avatar
  • 21
0 votes
1 answer
26 views

Does SceneManager.LoadAsync(name) load the whole asset or only the prefab?

I have an asset called "Ocean" that contains 100 fish, and one of the prefabs for these fish is called "Dolphin". My game has 100 scenes, and each scene contains 1 different fish ...
Job_September_2020's user avatar
1 vote
1 answer
203 views

Overriding property setter

In Godot 4.5 beta 5, I am trying to override the text setter on a Label node. Following the documentation, I did: ...
jakub's user avatar
  • 135
0 votes
0 answers
23 views

How do you setup a ramp with an existing tile-set in Unity?

(Beginner questions) How do you setup the ramp with the tiles in unity? The graphics and the behavior? I've been checking this free tileset: In the image it has connected ramps I cannot seem to get ...
AturSams's user avatar
  • 10.6k
0 votes
1 answer
14 views

Having trouble creating a ModGUIConfig with a custom category

I'm working on a mod for 1.7.10 Forge that needs a complex config for the user to set up, but only the "general" category shows up (from ...
Lum1te's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
3846