here's a demo cart showing off some different ways to handle input in grid-based games:
controls:
- move around with the arrow keys
- change "chapters" in the pause menu (enter + arrow keys)
- slow down the game speed (in the later chapters) in the pause menu
I made this cart as a companion to a blog post about input buffering



Great demo! Love how thorough the accompanying blog post is, too. I'll definitely be referencing it in the future.



The blog post was taken down and not posted to cohost (yet!) so here's the wayback link for the blog (super sick writeup!) https://web.archive.org/web/20220722130607/https://pancelor.tumblr.com/post/677053912115707904/input-buffering-in-grid-games



thanks everyone, I'm glad it's been helpful!
I've (finally) moved the post, and updated the link above. (no major changes to the post itself)



You know, for years I've asked myself if there was any simpler way of writing:
if(btn(⬅️)) x-=1 if(btn(➡️)) x+=1 if(btn(⬆️)) y-=1 if(btn(⬇️)) y+=1 |
For years I told myself there was no other way. Now I know.
[Please log in to post a comment]