This is part 6. In this video we introduce energy units for the players to collect which are randomly distributed around the grid, and we create an end game state, which is triggered when the player collects a given number of energy units. At this point, the game becomes playable, with the player using WASD to move around and collect energy until the game concludes. What we're now missing is an AI to play against.
I hope you enjoy the video, please do subscribe to my channel and if you wish visit my Patreon account, please see the link below.
https://www.patreon.com/singleentity
-- IMPORTANT - Please read --
Half way through this series Arcade updated from 2.6.17 to 3.0.0. If you're using this code and following along, please ensure you install Arcade 2.6.17 until I upgrade in a later video.
To install using pipenv:
pipenv install arcade=2.6.17
For Patreons, the code on Patreon includes the pinned version in the Pipfile. So you can simple do:
pipenv install
Apologies, but this is a good lesson in always pinning dependencies in Python!