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
8
votes
2 answers

Particle System pink when attached to a GameObject

I am working on unity particle system. I created a new project and an empty object then added the Particle System to it. For some reason it not working properly you can see the image attached to see whats happening...
I AM A Hacker
  • 113
  • 1
  • 1
  • 10
8
votes
1 answer

How can I write a simple real-time game loop in pure Haskell?

I've just started with Haskell and want to make a simple real-time game without installing additional libraries. I need to write a loop that scans for keyboard input but the game also has to run if there is no input. How do I do this?
Miloslav Číž
  • 557
  • 4
  • 18
8
votes
1 answer

Xbox one dev mode and Unity free version

I have a retail Xbox one console with Dev Mode activated Unity (latest free version) and a MSDN individual developer account. I am able to deploy test apps from Visual studio on the Xbox however i want to know how do i build and run apps on Xbox…
rony_y
  • 535
  • 1
  • 8
  • 26
7
votes
1 answer

Is the default font in Bevy unusable?

When attempting to print "Hello, world!" to the screen with Bevy, the text would not display until I imported a third-party font file and loaded it as an asset to use as the font value in the TextStyle value of the Text component. Prior to using…
Connor Mooneyhan
  • 547
  • 6
  • 17
7
votes
2 answers

Using javax.sound.sampled.Clip to play, loop, and stop multiple sounds in a game. Unexpected Errors

I'm trying to play two wav sounds at once during a game (Background Music and an effect). I first constructed this chunk of code using another audio handler in java which would handle the playing, stopping, and looping of the sound. This construct…
T. Thomas
  • 660
  • 3
  • 10
  • 25
6
votes
1 answer

Why is the floor in my raycaster seemingly "misaligned"?

I have been working on a doom/wolfenstein style raycaster for a while now. I implemented the "floor raycasting" to the best of my ability, roughly following a well known raycaster tutorial. It almost works, but the floor tiles seem slightly bigger…
6
votes
1 answer

Is there a way of detecting collision of Sprites in the bevy game engine?

Currently im using the Position of two objects (comets and the ship) to detect if they collide. fn collision_detection( comets: Query<&Transform, With>, mut ships: Query<(&Transform, &mut ShipStatus), With>, ) { for comet in…
Bruno Wallner
  • 383
  • 5
  • 13
6
votes
2 answers

Game walk by path in array

I am writing an algorithm for iterating over the elements of an array at a given speed. I use this to iterate through the cells on the game map in an array of paths that I find. I need that when a new function is called with a new array, the last…
Nikita Shahov
  • 281
  • 2
  • 11
6
votes
1 answer

How to find the "Saved Games" folder programmatically in C/C++?

I am writing a game. I am planning to store saves in the "saved games" directory. How to find the location of the Saved Games folder programmatically? It needs to work on non-English Windows. Hacks like %USERPROFILE%\Saved Games are not an option.
user5994461
  • 5,301
  • 1
  • 36
  • 57
6
votes
2 answers

How to delete sliced sprites in Unity3d

When I slicing a sprite in Unity. I mistakenly sliced a piece that i don't want Here the Menu Buttons_0 Now, I want to delete that garbage Is there any way I can delete the Menu Buttons_0
6
votes
1 answer

Collect coins and add to score label in Sprite Kit

I'm trying to implement a simple scoring system into my game using this tutorial as a reference: http://www.raywenderlich.com/87232/make-game-like-mega-jump-sprite-kit-swift-part-2 The problem is, if I try to implement as is, it crashes in the…
Paul
  • 1,179
  • 3
  • 14
  • 38
6
votes
2 answers

How does touchDragged work in libgdx?

I am currently learning libgdx game programming,now i have learnt how to use touchDown but iam not getting idea how to use touchDragged.How will the computer knows in which direction the finger is dragged(whether the user has dragged to left or…
suvimsgowda
  • 97
  • 1
  • 4
6
votes
5 answers

How to clamp a value from 0 to infinite to a value from 0 to 1?

I have a program in Java that generates a float value aggressiveness that can be from 0 to infinite. What I need to do is that the higher this float is, the higher there are chances the program fires a function attackPawn(). I already found out that…
turbodoom
  • 235
  • 1
  • 3
  • 14
6
votes
2 answers

How Does Spaceteam Work?

For those not in the know, Spaceteam is a very popular and very fun multiplayer game for iOS. It allows for real time gameplay among multiple devices on an ad-hoc Wifi network - how does it do this? Are there published libraries describing how to…
Rich Jones
  • 1,422
  • 1
  • 15
  • 17
5
votes
3 answers

How to translate game state for a game turn into a limited set of moves?

I'm having a very difficult time determining how to translate a game state for a specific turn in a game I'm developing into a limited sequence of moves that represents the moves taken for that turn. I'd appreciate advice on how I can do…
Jez
  • 27,951
  • 32
  • 136
  • 233