https://seskon.itch.io/hole-sweeper Hot Air Ballon - Hole Sweeper Downloadable standalones are available for Linux, Windows and Mac down below Sounds created with Leshy SFDesigner Pixel Art created by mysel Controls:
Gameplay: short: its basically minesweeper, just in a diffrent frame and you have levels (8 in total each with more holes). if you dont know minesweeper the rules are as followed:
Secret button well i guess its not a secret button if you read this, but when you click on the level number (over the baloon basket) you can skipt the level. Development Process: I created this game over two days, in probably around 8 hours. The Pixelart was done pretty fast since there is not much too it (created with Gimp). After that was completed I imported it into a new 2d project and started Coding. Overall this was my first minesweeper that i programmed, so the Architecture and code is very experimental (more like a prototype) but if you want to check it out, feel free to download the project. The main part of the game consists of 3 Textures:
this is not a good solution because unity compresses textures, so if you pick the wrong colors you get sometimes slightly diffrent values when reading a pixel. This was only a problem in one case for me so it was a somewhat easy fix. When the player reveals a field, first it is getting checked if there is a hole at the given location (checks pixel on the hole texture). If not, the color from the balloon texture is getting copied onto the play texture and the field is reveald. Then the fields around it are getting checked for the same thing, automatically revealing if there are no holes next to them. Otherwise a number gets placed wich shows how many holes are in the surrounding fields. There is actually no gui just some OnMouse events wich you can get when you have a collider on your sprite for example. This was just a fast and easy solution wich gets the job done. I used it for example to get a mouse click when clicking on the playfield. When that happens, I get the mouse position and calculate the pixel wich is clicked on (x and y position on the texture). Since I set it up, so that the Texeldensity is 1 Unit, it is really easy to calculate. This way I dont need to create a bunch of tiles that can be clicked on. Thats all. Thanks for reading. If you have any questions or suggestions feel free to leave a comment. |