Skip to content

Website Content Update (Tour, and Updating some Tutorials) #48

@NicholasDewberryOfficial

Description

I was looking through the documentation of a lot of tutorials and examples, and I thought we could improve a lot of them.

The tours, for example - are simply not finished. We could just add some more stuff.

I also want to prioritize readability and grokability for some of the examples.

Take this one for instance:
https://ebitengine.org/en/examples/infinitescroll.html

  • random number constants (the * 16 and / 32, when they should really be called "pixelSize" and "scrollSpeed")
  • drawing the image 3 times on the screen (without explaining why)
  • using offsets without explaining why

Now, it's good for me as someone more experienced in gamedev because I can repeatedly tweak values to find out what they all mean - but if I was experienced in Go but new to gamedev or vice-versa, I might struggle.

Some examples of good Go tutorials (imo):
https://gobyexample.com/

  • Paragraphs are easy to parse, code is simplistic and commented
  • The two column view may be hard to implement

https://github.com/charmbracelet/bubbletea/tree/main/examples/credit-card-form

  • Variables are named simply
  • Goes along with best practices

https://pkg.go.dev/github.com/charmbracelet/bubbletea#Tick

  • Lots of code examples of how you would use the functions

https://ebitengine.org/en/documents/cheatsheet.html

  • Easy to see basic features at a glance, reference functions

I'll get started on this tonight, hopefully I can PR with some tour stuff soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions