JoelOtter / termloop

Terminal-based game engine for Go, built on top of Termbox
Other
1.43k stars 83 forks source link

Termloop tutorial #23

Open JoelOtter opened 8 years ago

JoelOtter commented 8 years ago

The tutorial in the README, along with the GoDoc, serve as a reasonable introduction. However, I think it'd be useful to have some more comprehensive documentation written, along with several tutorials on how to use Termloop's perhaps more-obscure features. We could host on GitHub Pages, which would keep it as part of this repo (just uses a separate branch).

JoelOtter commented 8 years ago

GitBook looks promising and is used by a fair few open source projects: https://www.gitbook.com/

leavengood commented 8 years ago

BTW I wanted to mention somewhere that your switch/case statement in the README tutorial does not need those break statements. Go fixed this terrible choice from C/C++ and automatically "breaks" in each case but if you truly want "fallthrough" you can use that keyword to do so.

I also wanted to mention that the default fps is absurd and sucks 200% CPU on my Mac.

JoelOtter commented 8 years ago

@leavengood On switches - I wasn't actually aware of that, thank you.

Regarding framerate - we decided to not limit the framerate by default. If this is something you'd like to do, see _examples/collision.go. We have a Gitter channel for any further discussion you may wish to have, this issue probably isn't the place for it.

leavengood commented 8 years ago

Yeah sorry, this is the wrong place for FPS discussion.