Slicer
Configuration
Options
header_background_color
header_text_color
String
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).
[ {...} ]
lives
Integer
Number of lives before game over (= chances to miss).
3
tutorial_fruit_number
Integer
Indicates which item will be displayed in the tutorial as good.
0
tutorial_bomb_number
Integer
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_wave
Integer
Delay between each new wave.
3
gravity_strenght
Integer
Strength of the items' gravity (y speed).
1
height_percent_before_fall_start
Integer
Height reached before the items start falling back (in percents).
75
cut_trail_width
Integer
Width of the cursor animation.
5
cut_trail_color
String
Colour of the cursor animation.
"red"
fruit_missed_deduct_lives
Boolean
Option to lose one live if a good item isn't cut before falling back out of the screen.
false
spawn_bombs
Boolean
Option to display bad items in the game (must have bad items in the fruits array).
true
fruit_bounce
Boolean
Option to make items bounce on left and right "walls" (if set to false, will leave the screen).
true
timer
Integer
Duration of the game (in seconds).
60
text_police
String
Font to be used in the game (Google Fonts).
"Arial"
overlay_width / _height
Integer
Size of the canvas.
600 / 600
default_lang
String
[PTF] Default language if unmatched language.
"fr"
score
String
Text in the header.
"Score"
remaining_lives
String
Text in the header.
"✕ ❤️"
time_left
String
Text in the header (displayed if no lives).
"Time remaining"
tutorial_text_1
String
Tutorial text for good items.
"Cut fruit to score points."
tutorial_text_2
String
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_src
64 x 64px (whole / left and right must be of the same size) 100 x 100px (stain)
Visuals of an item.
newgame_circle_image
500 x 500px
Visual to put behind/around the tutorial items.
Last updated