tubelz / macaw

2D game engine written in Go using SDL2 and ECS
https://github.com/tubelz/macaw/wiki
zlib License
12 stars 0 forks source link

Remove bool variables from `macaw.Initialize()` to improve readability #6

Closed rennomarcus closed 6 years ago

rennomarcus commented 6 years ago

Is your feature request related to a problem? Please describe. At this moment we don't know by looking at the code what is being initialized in macaw.Initialize() function. It takes three bool variables. They are required to initialize the sound, image and font (not in this order).

Describe the solution you'd like It would be better to add functions that will check those values. By default they will be true.

It is better to have a few more lines and be more descriptive.

Describe alternatives you've considered Let the default value be false and let the user decide whether to turn them off or not. It is better to let them on, because it will just work by default.