Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sapier
Last active December 19, 2015 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sapier/5959230 to your computer and use it in GitHub Desktop.
Save sapier/5959230 to your computer and use it in GitHub Desktop.
Drawing of background/overlay/header/footer
texturepack --> file from texturepack
game --> file from game
default --> file from engine
Overlay/Background
---------------------------------------------------------------------------------
background false
if singleplayertab
try1 texturepack game overlay --> successfull
try2 game overlay --> successfull
try1 texturepack game background --> successfull --> background true
try2 game background --> successfull --> background true
else
try1 texturepack overlay --> successfull
try2 default overlay --> successfull
try1 texturepack background --> successfull --> background true
try2 default background --> successfull --> background true
disable clouds
if not background and clouds enabled
set clouds
Header/Footer
---------------------------------------------------------------------------------
if singleplayer tab
try1 texturepack game --> successfull done
try2 game --> successfull done
reset to empty
else
try1 texturepack --> successfull done
try2 default --> successfull done
reset to empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment