From 594c16700f01c3b39421b4d7878eafb86e664872 Mon Sep 17 00:00:00 2001 From: PAlexanderFranklin Date: Sat, 28 Sep 2024 10:36:27 -0700 Subject: [PATCH] Add setup and gameplay instructions to readme, change enemy numbers --- README.md | 14 ++++++++++++++ mapgen.py | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 54d65e7..59943e8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # Arctic Masher + This is a clone of the debian game "Monster Masher". This project was started because we couldn't get it to run on our machines. + +# Setup + +Use pip to install the libraries in requirements.txt +Use python to run arctic-masher.py + +# Gameplay + +There are two players, and each can move in the 8 cardinal directions, pushing lines of blocks that are in the way. Crush monsters between blocks without getting smished by them yourself. See "pygame.K_w" etc. in arctic-masher.py for the controls. For example, 'pygame.K_e, "ne"' means that the "e" key is used to move "ne" which is north east. "KP" stands for "KeyPad" I believe, so player two uses the numpad. The "p" control, which is the shift keys for each player, allows you to move away from a block to pull it, which only works if there is not a monster adjacent to it. + +You have a few respawns, but after that you have to exit the game and start it again to restart. + +If you want to change the number of enemies, or check out the "mage" enemy type, edit the numbers on the "spawnEnemy" calls inside of mapgen.py e.g. change "spawnEnemy(Smart, 1)" to "spawnEnemy(Smart, 10)" to make the game miserable. diff --git a/mapgen.py b/mapgen.py index b345c8d..9014a13 100644 --- a/mapgen.py +++ b/mapgen.py @@ -36,9 +36,9 @@ def generateMap(): except Exception as error: continue - spawnEnemy(Enemy, 20) - spawnEnemy(Smart, 3) - spawnEnemy(Mage, 3) + spawnEnemy(Enemy, 10) + spawnEnemy(Smart, 1) + # spawnEnemy(Mage, 3) for id, player in players.items(): maxTries = 5