PawnLibs/scramble
Summary
A helper library that facilitates level initialization.
Description
This library contains several useful utilities which simulate cube twists. An application can initialize its inner state data with wining condition and do some virtual twists to prepare initial arrangement for player like deck shuffling or Rubik'c cube scramble.
To use this library several functions have to be defined:
- RememberDataBeforeTwist()
- SetDataAfterTwist(moduleTo, screenTo, moduleFrom, screenFrom)
- VirtualTwist(twist[TOPOLOGY_TWIST_INFO])
TBD - add detailed descriptions of required functions
Example
TBD - add example description
PawnLibs/scramble/Scramble
Summary
Scramble the cube randomly the specified number of times.
Synopsis
Inputs
- twistsCount - how many times to twist the cube for scramble
PawnLibs/scramble/ScrambleRotate
Summary
Twist the cube around some screen in a specified direction.
Synopsis
Inputs
- scr - a screen to twist around
- dir - a direction of the twist