libgdx / libgdx.github.io

Github hosted site for libGDX
61 stars 218 forks source link

Correct Background Color Description in "A Simple Game" Tutorial #165

Closed menglutao closed 1 year ago

menglutao commented 1 year ago

Summary

This PR corrects a detail in the "A Simple Game" tutorial regarding the background color information.

Details

In the "A Simple Game" tutorial:

When we run the game now, we will get the default 'game' generated by the setup app: a Badlogic Games image on a pink background.

However, the default game setting of the background color is red, given the code ScreenUtils.clear(1, 0, 0, 1); should set the color to red instead of pink.

Proposed Change

Update the documentation in the tutorial to state that the background color is red, instead of pink. This change will ensure accuracy and prevent any confusion for readers learning about rendering and color values in LibGDX.

Thank you for considering this update to the documentation.

crykn commented 1 year ago

Thanks!

menglutao commented 1 year ago

Happy to contribute :)