C4D Script - Minesweeper


Cinema 4D gives us a 3D engine, Objects, Gui and some programming languages.. that's all what we need to create some games.. of course there is some limitations, but it still possible.
that's why i developped a classic game "Minesweeper". The first of a long series (I hope...) of #Games4Cinema
This script is a draft, it still needs some features like placing flags or option menu etc...

Enjoy :)

minesweeper default minesweeper gameover

Installation

  • Clone the project or download the zip file and extract it into the Maxon scripts directory.
    • WindowsC:\Program Files\MAXON\CINEMA 4D R<version>\library\scripts\
    • MacOs/Applications/MAXON/CINEMA 4D R<version>/library/scripts/
  • Restart Cinema 4D
  • Open Cinema 4D Menu
    • Script » User scripts » Minesweeper » minesweeper


# You can change the size of the grid and difficulty by changing the values passed to the `MinesweeperGui` object.
# The args are: Rows, Columns, Difficulty[EASY|MEDIUM|DIFFICULT]

if __name__ == '__main__':
    dlg = MinesweeperGui(15, 10, Level.EASY)
    dlg.Open(dlgtype=c4d.DLG_TYPE_ASYNC)

No comments

Post a Comment