Hopson97 / open-builder

Open "Minecraft-like" game with multiplayer support and Lua scripting support for the both client and server
https://github.com/Hopson97/open-builder/projects/3
GNU General Public License v3.0
700 stars 80 forks source link

Crosshair + overlay/ui framework #70

Closed ghost closed 4 years ago

ghost commented 4 years ago

Suggestion Title Implement crosshair + framework for ui

Describe your suggestion Simply draw a crosshair sprite at the center of the game window, as well as a framework for easily implementing other similar elements to be drawn as an overlay (e.g. UI, HUD). Crosshair is mainly for ease of knowing what block you're looking at.

Implementations ideas [optional] Possibly just define a class that's not too much more than an sfml sprite.

Hopson97 commented 4 years ago

SFML won't work unfortunately, it does not play well with user-defined OpenGL stuff

But good ideas 👍

Hopson97 commented 4 years ago

Reoprening as it is a needed feature, and can be implemented using OpenGL anyways

Ruixel commented 4 years ago

https://github.com/Hopson97/open-builder/pull/96 Added/improved the gui framework for lua and now has neat crosshair

Ruixel commented 4 years ago

PR pushed, closing now