fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.25k stars 1.24k forks source link

Framerate Ticker and Command Line Arguments #77

Closed Christofosho closed 7 years ago

Christofosho commented 8 years ago

This commit implements a framerate ticker in the bottom left corner of the window. It also allows for further extension of command line arguments.

I do believe this could be further refactored to use a module such as argparse, but I felt that as the goal of this project is to teach people how to code, the implementation of sys.argv was more suitable.

Christofosho commented 8 years ago

Further, I do know this already existed within the label. However, I felt it was more accurate to establish a more consistent and stable visual of the framerate, to allow developers to see more clearly what is occurring. The current implementation moves too rapidly to make much of it, in my opinion.