Category "game-development"

How can I make it so when my player collides with an enemy, it disables movement input until player touches the ground?

So, I want to make it so the player loses control when it collides with an enemy. I already got a thing set up to make the player fly off towards the direction

Python Minesweeper Game Dictionary

I am making a copy of Minesweeper for a project in my class. My professor recommended that I randomly layout 10 bombs on the game's 9x9 grid. I was able to crea

How to create a random ground in matter.js

I am creating the ground of a game using a Perlin noise function. This gives me an array of vertices. I then add a vertex at the front that is {x:0 y: WORLD_HEI

Phaser JS 3: how to debug game performance

So, I'm working on a project, attempting to learn Phaser as a ruby dev (JS isn't my most confident programming language). Having run my game on a lower-spec la

OpenGL texture arrays render the texture completely black

I'm attempting to render a .png image as a texture. However, all that is being rendered is a black square. Can anybody see any mistakes in my OpenGL GL_TEXTU

How do you handle systems accessing multiple components (without dropping your cache load) in an entity component system?

I'm currently writing my own Entity Component System, and I'm having a little bit of trouble optimizing my cache load when it comes to systems that look at mult

How to read position x of Shape Object when during tween

I have the Circle object that extends shape and am trying to get the value of x or position of the object in 2d plane. During animation (tween) the position doe

How to stop host or client in unity netcode?

When I disconnect my server and go to the menu scene, there comes two NetworkManager Objects but a they are implementing the Singleton pattern and it in itself

Error Trying to Draw Platforms in Lua/Love2D

New to Lua/Game dev in general here. I'm trying to write a code to draw the background of my game. I have four different spritesheets for things related to sett

how to find a position of an Object from World Space and convert to Canvas UI with render mode : Screen Space - Camera in Unity 2d?

I am working in a Game which is pretty similar to Mario. So when player touches the coin object in World Space, I need to animate by moving that coin object to

Player animation doesn't want to stop

Currently working on a mobile game where i need to move the character with a virtual joystick ,i used a code from a tutorial i saw on the internet, the problem

How to change the way Elements are added in a Unity Grid Layout Group?

When I add an Element, for instance an image, to my Grid Layout Group, but the row is already full, a new row gets created. But the Grid is extended in the wron

Basic example of how to do numerical integration in C++

I think most people know how to do numerical derivation in computer programming, (as limit --> 0; read: "as the limit approaches zero"). //example code for d

Conway's game of life prefers bottom-left of screen [closed]

I'm creating Conway's Game of Life, but I've run into an issue: The pixels seem to prefer "moving" towards the bottom-left side of the screen.

Reload Scripts Assemblies (busy for long time) Unity Freezes

I'm Using Unity version 2020.3.32f1 & Rider as Editor. Whenever I make any changes in scripts, even small changes, Unity script assemblies take too much of

Libgdx Installation gdx-setup.jar file missing

So I have watched several videos and read through many a forum post on installing libgdx with android development studio. Every time someone opens the gdx-set