Tower of hell inspired player altitude system

In tower of hell there is a bar thats shows how high up the player is, and i want something similiar to it but i do not know where to start

If possible, i would like it to be color coded.
I have a random stage generator that works just fine.

If any clarification is needed, just message me