1.1.7 • Published 2 years ago

react-super-slide-me v1.1.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

react-super-slide-me

"Super Slide Me" puzzle game as React component

game screen shot

###How to use

In order to embed the full game onto your site simply add <SuperSlideMe /> component in the desired place in code.

You can customise the game to your liking using props.

<SuperSlideMe /> accepts props:

It is required only if you embed two games, with the same level config at once.

Level Config

levelConfig prop accepts object in form:

{\   levelSets: string[]\   levelFilter: string\ }

All the levels in game are divided into sets: "A", "B", "C", "D", "E", "F", "X". Each set has 16 levels and introduces new mechanic. You can specify which sets should your game use by declaring them in an array. By Default all sets are used.

levelFilter can have one of the following values:

all - all levels are used

onlyEasy - only first 8 levels of each set are used

onlyHard - only last 8 levels of each set are used

short - only 1st, 2nd, 9th and 10th levels of each set are used (it's a shorter version of the full game)

onlyCustom - none of the levels from any sets are used.

Custom Levels

You can create your own levels and provide them in customLevels props. This prop requires an array of strings. Each string should represent a level.

Example string level representation:

'x..x.bx' +
'.xbx.x.' +
'.......' +
'x..e...' +
's.g.g..' +
'x......' +
'.x.x.x.'

Each character represents one block/field. Level needs to be square.

Available characters:

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.1.7

2 years ago

1.0.8

2 years ago

1.1.6

2 years ago

1.0.7

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago