DEV Community

Discussion on: Coin Collector Game

Collapse
 
joestrout profile image
JoeStrout

I love it! This is a great tutorial. It shows a lot of key concepts central to almost any game.

One suggestion: rather than explicitly checking for the arrow keys, you might use key.axis, like so:

   fox.x += key.axis("Horizontal") * fox.speed
   fox.y += key.axis("Vertical") * fox.speed
Enter fullscreen mode Exit fullscreen mode

It's not only less code, but also lets the user use WASD or a gamepad if they so choose.

But in any case, it's a fantastic post and I hope you'll do more!

Collapse
 
sebnozzi profile image
Sebastian Nozzi

As always, there is no shortage of things to learn about Mini Micro.

Thanks for the suggestion! I am planning on writing shorter "recipes" tutorials for Mini Micro and one will be "moving things around", so this will come in handy.

I'm glad you liked the tutorial.