Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Sweep

An asset by derinasir
The page banner background of a mountain and forest
Sweep hero image

Quick Information

0 ratings
Sweep icon image
derinasir
Sweep

Automatic minesweeper field generator

Supported Engine Version
3.5
Version String
1.0
License Version
MIT
Support Level
testing
Modified Date
2 years ago
Git URL
Issue URL

sweep

Usage

Just instance a Field and pass parameters.

Parameter Type Role
origin Vector2 Top left position of the Field
field_size Vector2 Size of the Field in Tiles
mine_count int Mine count

Changing Sprites

Tiles used in Field are categorised by numbers and sprites are loaded by the category. To change the sprites used, you can add any 16x16 sprite and rename them to match category number.

For example, if Tiles code is 9 it means it has a mine and mine sprite is loaded. To change the look of mine, replace res://src/tile/9.png

Number Category
-2 Has flag, tile is disabled
-1 Closed
0 Open, 0 mines around
1 Open, 1 mine around
...
8 Open, 8 mines around
9 Has mine

Automatic minesweeper field generator

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Sweep icon image
derinasir
Sweep

Automatic minesweeper field generator

Supported Engine Version
3.5
Version String
1.0
License Version
MIT
Support Level
testing
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers