improved database blocks v1.63 ! by loucheman
(multi-users, multi-projects)
store key (in the browser)
-
you can store numbers, text, boolean, list of text / number, costume or sound
-
the value are saved for the current user and current project
- example 1: if you have a game played by 2 different user (logged
user), the two players doesen't share the same variable "hi-score" - example 2 : if you have 2 games, the two games doesen't share the variable
"hi-score"
- example 1: if you have a game played by 2 different user (logged
remove key
nothing special ... but only for the user:project:
( project data / user data / all data ) stored in browser
- you can visualize the data (variable name and value) from a project,
a user or all data stoded in the browser
clear ( project data / user data / all data ) in browser
- you can clear the data from a project, a user or all data stodes in the browser
- ask are you sure ? before clearing the data...
when you run a block for the 1st time, it will ask for the project name. (store in the variable user:project:), so if you change the name of the project earlier, you don't lose your previous saved data...
-->see inside for examples
version 1.0 : 1st draw
version 1.1 : code optimisation
adding 3 new block to save/restore/delete in the joecooldoo cloud vars
version 1.2 : user data / project data stored in the joecooldoo cloud vars
clear user data / project date in the joecooldo cloud vars
version 1.4 : bug correction since snap v7 : the setting block (project name) seem depriciated, now asking
the user for the project name...
version 1.5 : removing all remaining javascript (almost)
version 1.53 : bug correction for the joecooldo cloud var
version 1.54 : verify if the data is correctly store after storing key (read the value and compare)
version 1.61 : the username block is now "no javascript"
version 1.62 : javascript free + bug correction when verifying after storing key (costume and sound)
version 1.63 : the username block can't be "no javascript" for now: sorry guys