Questions tagged [game-development]

Questions directly related to programming computer gaming and interactive graphics/video. Questions involving game logic or general game development (which are off-topic here) should be asked at https://gamedev.stackexchange.com/

Game development is the software development process by which a video game is produced. Games are developed as a creative outlet and to generate profit. Development is normally funded by a publisher. Well-made games bring profit more readily. However, it is important to estimate a game's financial requirements, such as development costs of individual features. Failing to provide clear implications of game's expectations may result in exceeding allocated budget. In fact, the majority of commercial games do not produce profit. Most developers cannot afford changing development schedule and require estimating their capabilities with available resources before production.

You also can ask your questions in Game Development in StackExange

3583 questions
0
votes
0 answers

Spawning enemies on a Nav Mesh Surface in a randomly generated 2D Dungeon

for the past few months I've been making a Binding of Isaac like game with some inspiration from the older Zelda games. I previously made a post here ( Generating a Navigation Mesh at runtime for a 2d semi-procedural dungeon crawler(Unity) ) where I…
0
votes
1 answer

Vectors games dev

can someone explain to me not in "mathematical terms" but in practice, that is, the application of a vector in a 2D plane for video game development? Because until now I had the belief that a vector was generally a point, that is, the tail of the…
Peppe32
  • 23
  • 3
0
votes
0 answers

How can I get an accurate height value from the gradient noise in shader graph based on an object's world x and z position values in unity?

So the solution I currently have actually works for a couple of seconds, then it goes out of sync. Here is how the shader graph looks: Here is how the code looks (the code is attached to the object). I assign a global time float to the shader each…
0
votes
0 answers

I am getting error on using http-server on my pixijs game and it is saying "cannot import statement outside module" and i want to use npm only

I created simple folder and using npm, I installed packages of pixi.js. Created html and js file. Then I copied some of the code from internet as simple as it could be. And using http-server, I am getting error on "cannot use import statement…
0
votes
3 answers

When I want something to jump every frame it only jumps once then stops

I'am trying to make a flappybird game and when i try to make the bird jump every frame it jumps once and then stops here is code using System.Collections; using System.Collections.Generic; using UnityEngine; public class plzwork : MonoBehaviour { …
0
votes
0 answers

How can I make an object rotate around the player following the mouse?

I am working on a side-scroller 2D platformer game. I want to program the player's shield to rotate around the player in the direction of the mouse. For example, if the mouse is above the player, the shield is above too, if the mouse is to the left…
Jan
  • 9
0
votes
0 answers

How do you draw an "infinite" 3D grid in a 3D viewport like in Unreal Engine

I am trying to figure out a technique for drawing a 3D grid in a 3D viewport like in Unreal Engine. Drawing a grid on its own is simple, you decide what the size of the grid should be and then you either draw a quad of that size and apply a texture…
user18490
  • 3,546
  • 4
  • 33
  • 52
0
votes
1 answer

Getting a tilebase from mouse position?

So I have a grid component and for its children I have 3 layers of tilemaps. I'm trying to get the position of a tilebase from specific layer by using my mouse location. var mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); …
Mengart
  • 3
  • 4
0
votes
1 answer

Why isn't my bird jumping when i press the space bar for my flappy bird game?

I am new to lua and love. I am attempting to make a flappy bird game. When the game runs, the bird does not jump. the bird just floats until it crashes and the game ends. Also, only my original pipes are shown, no new pipes are being spawned. How do…
0
votes
1 answer

Moving a sprite on a 2d plane along a circular path in C++

I am making a simple 2d arcade shooter game and am attempting to have the enemy sprites move in circular patterns. The enemy's position on the screen is controlled by the two variables: iCurrentScreenX and iCurrentScreenY which are updated and then…
Fishie
  • 13
  • 1
0
votes
0 answers

Relative layout within Relative layout

This is the code of my activity.xml here I used two relative layout but it is not accepting the id's of the txt views within which is why i am not able to use them in my java code. I don't know what the problem is.
0
votes
2 answers

How do I get an ArrayList that can grow in two directions?

Trying to code procedural generation for a game for the first time but I'm having trouble with implementing positive and negative coordinates on a 2D plane. Right now I have 4 ArrayLists representing each of the 4 quadrants but this feels…
0
votes
1 answer

Generating a Navigation Mesh at runtime for a 2d semi-procedural dungeon crawler(Unity)

For the past few months, I have been creating a 2D dungeon crawler similar to the Binding of Isaac and Enter the Gungeon, with a bit of inspiration from older Zelda games. Without getting into too much detail, the main scene which houses the player,…
0
votes
1 answer

When compiling this script in unity to spawn enemies randomly in one of ten spawners it gives me an error message

My idea is a 2D game where the player has a base in the center and enemies spawn in one of 10 spawn points and then move towards the middle. I wrote this code but there is an error. Can someone help?? using System.Collections; using…
0
votes
1 answer

libGDX: Fix overlapping textures of enemies, when moving towards the player

I am writing a game with libGDX named TaskWarrior, where the player is in the middle of the screen and has to move around to kill enemies. All the characters in the game are seen from above (more like a satellite view). I made different movement…