Slicer
Configuration
Options
header_background_color
header_text_colorString
Colour / background of the header.
"black" / "white"
fruits []Objects
Items that will need to be cut in half ("is_a_bomb": 0) or not ("is_a_bomb": 1).
[ {...} ]
livesInteger
Number of lives before game over (= chances to miss).
3
tutorial_fruit_numberInteger
Indicates which item will be displayed in the tutorial as good.
0
tutorial_bomb_numberInteger
Indicates which item will be displayed in the tutorial as bad.
4
min_fruits_per_wave / max_Integer
Amount of items that could be rendered at the same time.
1 / 3
seconds_between_waveInteger
Delay between each new wave.
3
gravity_strenghtInteger
Strength of the items' gravity (y speed).
1
height_percent_before_fall_startInteger
Height reached before the items start falling back (in percents).
75
cut_trail_widthInteger
Width of the cursor animation.
5
cut_trail_colorString
Colour of the cursor animation.
"red"
fruit_missed_deduct_livesBoolean
Option to lose one live if a good item isn't cut before falling back out of the screen.
false
spawn_bombsBoolean
Option to display bad items in the game (must have bad items in the fruits array).
true
fruit_bounceBoolean
Option to make items bounce on left and right "walls" (if set to false, will leave the screen).
true
timerInteger
Duration of the game (in seconds).
60
text_policeString
Font to be used in the game (Google Fonts).
"Arial"
overlay_width / _heightInteger
Size of the canvas.
600 / 600
default_langString
[PTF] Default language if unmatched language.
"fr"
scoreString
Text in the header.
"Score"
remaining_livesString
Text in the header.
"✕ ❤️"
time_leftString
Text in the header (displayed if no lives).
"Time remaining"
tutorial_text_1String
Tutorial text for good items.
"Cut fruit to score points."
tutorial_text_2String
Tutorial text for bad items.
"Each bomb you cut costs you one life."
Assets
img_whole_src
img_Left_src
img_Right_src
img_Stain_src64 x 64px (whole / left and right must be of the same size) 100 x 100px (stain)
Visuals of an item.
newgame_circle_image500 x 500px
Visual to put behind/around the tutorial items.
Last updated