Scripts/resources/[standalone]/memorygame/README.md

26 lines
782 B
Markdown
Raw Normal View History

2024-12-29 20:02:43 +00:00
# memorygame
Memory game like NoPixel for any framework
Inspired by - https://codepen.io/torbenxxx/pen/MWJBzWP
Join My Discord - https://discord.gg/VGYkkAYVv2
# Usage
Put the folder in your resources and start in resources.cfg
``ensure memorygame``
# How to use export
```
-- correctBlocks = Number of correct blocks the player needs to click
-- incorrectBlocks = number of incorrect blocks after which the game will fail
-- timetoShow = time in secs for which the right blocks will be shown
-- timetoLose = maximum time after timetoshow expires for player to select the right blocks
exports["memorygame"]:thermiteminigame(10, 3, 3, 10,
function() -- success
print("success")
end,
function() -- failure
print("failure")
end)
```