Literacy Project/Tinkrbook.txt Specifications

From OLPC

Jump to: navigation, search

Contents

TinkrBook .txt format

Old Format (malformed JSON)

TIMESTAMP_MS {"SoundPlayed:" "URL POINTING TO SOUND FILE"}

TIMESTAMP_MS {"TinkrGraphic:" "NAME OF TINKERGRAPHIC TAPPED"}

TIMESTAMP_MS {"TinkrWord:" "NAME OF TINKERWORD TAPPED"}

TIMESTAMP_MS {"Log:" "ARBITRARY TEXT"}

TIMESTAMP_MS {"Scene:" { "url": "local url for scene loading","duckColor": "CURRENT DUCK COLOR","colorsLearned": "COMMA SEPERATED STRING OF COLORS","numbersLearned": "COMMA SEPERATED STRING OF NUMBERS","frogColorToFollow": "COLOR OF FROG SELECTED",}}

NEW ADDITIONS 2012-05-03

TIMESTAMP_MS {"type" : "FingerDown", "x", INT, "y": INT}

TIMESTAMP_MS {"type" : "FingerUp", "x", INT, "y": INT}

TIMESTAMP_MS{"type" : "Iconimation", "name", "NAME OF WORD DISPLAYING ICONIMATION"}

TIMESTAMP_MS{"type" : "WordHint", "name", "NAME OF WORD DISPLAYING WORD HINT"}

Example

1328239470831 {"Scene:" { "url": "scenes/tinkrbook_splash.swf","duckColor": "white","colorsLearned": "white,red,yellow,blue","numbersLearned": "","frogColorToFollow": "null",}}

1328239474753 {"SoundPlayed:" "app:/audio/title/My_BabyD_by_Angela_Cynthia_and_Fardad.mp3"}

1328239481543 {"Scene:" { "url": "scenes/intro.swf","duckColor": "white","colorsLearned": "white,red,yellow,blue","numbersLearned": "","frogColorToFollow": "null",}}

1328247221001 {"Scene:" { "url": "scenes/tinkrbook_splash.swf","duckColor": "white","colorsLearned": "white,red,yellow,blue","numbersLearned": "","frogColorToFollow": "null",}}

1328247224475 {"SoundPlayed:" "app:/audio/title/My_BabyD_by_Angela_Cynthia_and_Fardad.mp3"}

1328247225899 {"TinkrWord:" "Angela,"}

1328247228175 {"TinkrWord:" "Cynthia"}

1328247230247 {"Scene:" { "url": "scenes/intro.swf","duckColor": "white","colorsLearned": "white,red,yellow,blue","numbersLearned": "","frogColorToFollow": "null",}}

1328247231947 {"Scene:" { "url": "scenes/scene_1.swf","duckColor": "white","colorsLearned": "white,red,yellow,blue","numbersLearned": "","frogColorToFollow": "null",}}

1328247234178 {"TinkrWord:" "Tap,"}

1328247234846 {"TinkrWord:" "tap,"}

1328247234931 {"type" : "FingerDown", "x", 123, "y": 234}

1328247235339 {"type" : "FingerUp", "x", 123, "y": 234}

Proposed New Format (JSON) 2012-05-03

TIMESTAMP_MS {"type": "SoundPlayed", "url": "URL POINTING TO SOUND FILE"}

TIMESTAMP_MS {"type": "TinkrGraphic", "name" : "NAME OF TINKERGRAPHIC TAPPED"}

TIMESTAMP_MS {"type" : "TinkrWord", "name" : "NAME OF TINKERWORD TAPPED"}

TIMESTAMP_MS {"type" : "Log", "msg": "ARBITRARY TEXT"}

TIMESTAMP_MS {"type" : "Scene", "values" : { "url": "local url for scene loading","duckColor": "CURRENT DUCK COLOR","colorsLearned": "COMMA SEPERATED STRING OF COLORS","numbersLearned": "COMMA SEPERATED STRING OF NUMBERS","frogColorToFollow": "COLOR OF FROG SELECTED"}}

TIMESTAMP_MS {"type" : "FingerDown", "x": INT, "y": INT}

TIMESTAMP_MS {"type" : "FingerUp", "x": INT, "y": INT}

TIMESTAMP_MS{"type" : "Iconimation", "name": "NAME OF WORD DISPLAYING ICONIMATION"}

TIMESTAMP_MS{"type" : "WordHint", "name": "NAME OF WORD DISPLAYING WORD HINT"}

Personal tools
  • Log in
  • Login with OpenID
About OLPC
About the laptop
About the tablet
Projects
OLPC wiki
Toolbox