Minewatch 1.1. 🙂
This code is over 6 months old. The code may have expired and might no longer function.
A minesweeper in Overwatch. Great for waiting in dps queue and can be played by multiple people at the same time.
That's it. Enjoy losing.
UPDATE: So the mod is now feature-complete in my eyes, so I'm done with it's development and there probably won't be any updates from me. UNLESS somebody discovers a bug or requests a feature. If you find a bug, please record it or give me exact steps to reproduce bug.
FOR DEVELOPERS ONLY:In addition, I was thinking how to implement larger grid sizes. I would do it myself but honestly, going around the 128 effect limit and forced one-dimensional arrays is frustrating enough for me not to do it. If somebody wants to do it, here's thought process of how you could start:
- I think there is an array limit of 1000 items, so this could create up to 40x25 fields.
- Consider player's position and draw 10x10 field bellow the player (0-9 x 0-9).
- If player moves in a direction, it adds 5 units and draws new 10x10 field (5-14 x 0-9). Repeat until player reaches a border of the 40x25 field. Let player move in any direction.
- Good luck figuring out how to check if the cell is on a border using one dimensional array. I couldn't so I'm checking for static numbers like in table bellow.
Overall, it's quite a challenge. So if ur up to it, good luck, have fun, don't die.