Skip to content

Instantly share code, notes, and snippets.

@quickredfox
Created March 13, 2011 22:46
Show Gist options
  • Save quickredfox/868515 to your computer and use it in GitHub Desktop.
Save quickredfox/868515 to your computer and use it in GitHub Desktop.
###
This file changes for every book, could be stored in database
###
BOOK.THEME = 1
BOOK.SECTION = 1
###
Here we declare the image files for the toy chest.
###
BOOK.TOYS=[
"numero-0"
"numero-1"
"numero-2"
"numero-3"
"numero-4"
"numero-5"
"numero-6"
"numero-7"
"numero-8"
"numero-9"
]
BOOK.TOOLS =
[
name: 'crayon'
title: 'Crayon'
icons: [ "crayon-1.png", "efface.png" ]
,
name: 'mains'
title: 'Mains'
icons: [1..5].map( (n)-> "main-gauche-#{n}.png" ).concat [1..5].map (n)-> "main-droite-#{n}.png"
,
name: 'des'
title: 'Dés'
icons: [1..6].map (n)-> "bleu/de-#{n}.png"
# ,
# name: 'dominos'
# title: 'Dominos'
# icons: [ 1, 2, 3, 4, 5, 6, 11, 12, 13, 14, 15, 16, 21, 22, 23, 24, 25, 26, 31, 32, 33, 34, 35, 36, 41, 42, 43, 44, 45, 46, 51, 52, 53, 54, 55, 56, 61, 62, 63, 64, 65, 66 ].map (n)-> "orange/domino-#{n}.png"
,
name: 'jetons'
title: 'Jetons'
icons: ['bleu','orange','rouge','vert'].map (c)-> "#{c}/jetons.png"
,
name: 'cartes'
title: 'Cartes'
icons: [1..10].map (n)-> "carreau/carte-#{n}.png"
]
###
Holds the textual contents, behavior and recipes of
each page.
###
BOOK.PAGES = [
# PAGE 1
# content
text: "Trace les chiffres"
note: '''
Thème 1: Des vacances à la plage
Section 1: Écrire des chiffres
On peut d'abord faire écrire les chiffres de 0 à 4. Pour les autres chiffres, il suffit de rafraichir
la page (...)
TODO: complete this note
'''
# settings
trigger: ['refresh','openchest']
background: 'section-1-grid.png'
images: [
['numero-0',{top:200,left:110}]
, ['numero-1',{top:270,left:110}]
, ['numero-2',{top:345,left:110}]
, ['numero-3',{top:415,left:110}]
, ['numero-4',{top:490,left:110}]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment