gamercade-io / gamercade_console

A Neo-Retro Fantasy Console. Make WASM-powered, networked multiplayer games.
https://gamercade.io
Apache License 2.0
166 stars 10 forks source link

"Draw Text" Function Implementation #9

Open RobDavenport opened 1 year ago

RobDavenport commented 1 year ago

We currently have a console_log function, we also have the beginnings of a draw_text implementation.

This function would draw text on the screen at the specificed location, similar to drawing a sprite.

How should we represent fonts?

I think it would be good to keep it simple and restrict it to monospace fonts - however, I'm not picky on this. But I think anything more than this is out of the scope of the feature. For example, we shouldn't need to pass in things like wrapping settings, justification, etc.

It could also potentially open up some nice hacks/tricks where developers use drawing of fonts as an alternative for sprite drawing.

What do users/developers want out of a "Draw Text" function?