Questions tagged [initialization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
69 views

Separating scene generation and scene starting in Unity?

I'm working on a game, where the map is generated, and: The map is generated in an Awake(), so when an object's Start() is called, the map should be fully initialized. But the scene's physics world ...
0
votes
1answer
50 views
1
vote
1answer
1k views

Direct3D 12 can't create a swap chain

I'm learning DirectX12 and I'm trying to create a simple application that clears the screen with a solid color, but I'm stuck in Direct3D initialization. I can't create the swap chain and the ...
2
votes
1answer
249 views

LibGDX - How to do more things asynchronously

Most documentation only mentions how to load assets asynchronously, eg with code similar to ...
1
vote
1answer
62 views

Why does AudioSource not initializes itself?

Why does AudioSource not initializes itself? Here is my code: ...
0
votes
1answer
79 views

Code vs. Configuration in Unity [closed]

I know a thing or two about Unity at this point, but I've still lots of subjective, best practice questions, Such as: How do you decide what values are obtained via Start/Awake initialization, and ...
4
votes
2answers
1k views

Is it a terrible practice to NOT initialize an object in its constructor?

I'm currently working on my own game engine, more precisely on the resources management part. For now, most of my assets inherits of the following - simplified - class: ...
0
votes
1answer
182 views

Error when initializing Stage

I made a new class that implements Screen, what I've seen from other people's code is that they create a constructor that takes a parameter of Game game. I did not created a constructor, I think that'...
0
votes
1answer
980 views

Automatically select back buffer format

In D3D9, you could set BackBufferFormat to D3DFMT_UNKNOWN in the presentation parameters and D3D would select the format for you....
1
vote
2answers
173 views

Different ways to load/select characters in a RPG game [closed]

I am brand new here, and have been designing a two player card game where from tens of thousands of cards each player selects up to 80 cards DECK, and then fights with those cards. For reference Yu ...
2
votes
2answers
967 views

How to fill/initialize D3D11_SAMPLER_DESC properly?

If I want to set explicitly every parameter of the structure I just do so and that's it. But what if I want to set only some of them and leave the rest with default values? I've seen in some tutorial ...