Cat and Mouse
An on-chain game where 2 players and trying to attack and avoid being attacked.
Screenshots



Problem Statement
This project is a simple game developed using the MUD (Multi-User Dungeon) framework. The game revolves around two players, one assuming the role of a cat and the other assuming the role of a mouse. The objective of the cat is to attack the mouse, while the mouse tries to avoid the cat for as long as possible. When the cat successfully attacks the mouse, the players' roles switch. Please note that this project is solely for experimentation purposes with the MUD framework.
Solution
The project is built using the MUD engine and the frontend is built using plain HTML.The project is relatively simple but would be a good start to make greater on-chain games in the future.Learning points from using MUD:Optimistic Rendering significantly improves user experience by providing users with immediate feedback.Clients that are receiving updates will still experience latency issues (lag), which means that the framework should not be used for real-time strategy games (yet)Possible workflow to build future games:Design Game ConceptDefine Winning ConditionDefine Game RulesWrite down data structures into mud.config.tsDefine discrete game logic in "System" ContractsDesign user interface on FigmaBuild user interfaceIntegrate user interface with MUD
Hackathon
Autonomous Worlds
2024
Contributors
- 2manslkh
4 contributions