Simple MicroPython Game is a 30 Minute Game Dev Course

Hackaday Simple MicroPython Game is a 30 Minute Game Dev Course

hackaday.com/wp-content/uploads/2021/05/Wio-Terminal-Retro-Game-in-ArduPy-MicroPython-29-27-screenshot.png?resize=250,141 250w, hackaday.com/wp-content/uploads/2021/05/Wio-Terminal-Retro-Game-in-ArduPy-MicroPython-29-27-screenshot.png?resize=400,225 400w, hackaday.com/wp-content/uploads/2021/05/Wio-Terminal-Retro-Game-in-ArduPy-MicroPython-29-27-screenshot.png?resize=800,450 800w » sizes= »(max-width: 800px) 100vw, 800px » data-attachment-id= »480029″ data-permalink= »https://hackaday.com/2021/05/25/simple-micropython-game-is-a-30-minute-game-dev-course/wio-terminal-retro-game-in-ardupy-micropython-29-27-screenshot/ » data-orig-file= »https://hackaday.com/wp-content/uploads/2021/05/Wio-Terminal-Retro-Game-in-ArduPy-MicroPython-29-27-screenshot.png » data-orig-size= »1193,671″ data-comments-opened= »1″ data-image-meta= »{« aperture »: »0″, »credit »: » », »camera »: » », »caption »: » », »created_timestamp »: »0″, »copyright »: » », »focal_length »: »0″, »iso »: »0″, »shutter_speed »: »0″, »title »: » », »orientation »: »0″} » data-image-title= »Wio Terminal – Retro Game in ArduPy (MicroPython) 29-27 screenshot » data-image-description= » » data-medium-file= »https://hackaday.com/wp-content/uploads/2021/05/Wio-Terminal-Retro-Game-in-ArduPy-MicroPython-29-27-screenshot.png?w=400″ data-large-file= »https://hackaday.com/wp-content/uploads/2021/05/Wio-Terminal-Retro-Game-in-ArduPy-MicroPython-29-27-screenshot.png?w=800″ data-unique-identifier= » »>

Sometimes, it’s really useful to watch a project’s parts come together one piece at a time in order to get a complete understanding and mental picture of the whole, and we found that to be the case with this simple, retro-inspired sample game from [ezContents]. (Video, embedded below.) The code is on GitHub but if you’re at all interested in what goes on behind the scenes in a game like that, don’t miss the video.

In the video, each game element and function is illustrated, showing exactly what gets done and why. This part is collision detection (click to enlarge.)

These sprite-based games are mostly about moving a small graphical object (a sprite) around a screen in response to user input, and managing what happens when collisions are detected between the player’s sprite and other sprites like enemies, projectiles, and so forth. The development process is wonderfully documented and demonstrated in a video, as each separate part of functionality gets built and explained one piece at a time.

The simple game is made using ArduPy (which is MicroPython combined with Arduino APIs) using Seeed Studios’ Wio Terminal, a small microcontroller development board with integrated screen, sensors, and button inputs including a little directional clicker that [ezContents] uses as a joystick.

The video of the whole process is embedded below; give it a watch and you’ll maybe come away with inspiration, but you’ll definitely have a much better understanding of how these types of games are developed, even if you’re not using the same hardware or development environment.

Like what you see, but wish to go even smaller than the Wio Terminal? No problem, the Arduboy Nano pushes “tiny” to the limits.

https://hackaday.com/2021/05/25/simple-micropython-game-is-a-30-minute-game-dev-course/

Sent with Reeder

Envoyé de mon iPhone