‘еX{ёd‡˜&йJˆo“@CNТXџџџџџО Ј( @€ЯаРПпрАяЏ  я(№/№/я(я рŸ 0№/8џ0@џ0?џ/8№ 0я(р п?Gџ@PџOWџOXџOPџ?Hџ0@№/7я@Oџ_`џ`hџ_hџPXџ 0р(пP_џopџpxџowџ_gџ@O№/8я'п'р 7№pџ€џ‡џ`oџ?Gя/7р Я€0?№€ˆџ?Hя/8р`/пo?G№OX№@Hя0?р/аpOW№?Hр/8п 7яOPя?Gр/7п(Я РP0@яPX№@Oя0@п 0аO а@H№/Я@'а 0п0@р@P№0?п'Я_OP№@Hр(а 7п/7а'Р Пџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ^^^^^^^^^^џџџџџџџџџџџџџџџџџџџџ^^^^^^^^^^^^^^џџџџџџџџџџџџџџџџ^^TeeBBBBeTT^^^^^^џџџџџџџџџџџџџ^eBDJ33333JJDBeZ^^^^џџџџџџџџџџџTD33==#####==3JDBT^^^^џџџџџџџџџeJ=###=3DeZ^^TџџџџџџџB3# #=3JBZ^^Tџџџџџџ3#  #=JBT^^џџџџџJ# Sll #=JBZ^Tџџџџ# %,68??86,/@A*< ##џџџџ45('.6787-9%:;*<=#џџџџџ$+&,--.,/01)2 3џџџџџџ $%&&'%($!)* ##џџџџџџџ  !"#џџџџџџџџџ  џџџџџџџџџџџ  џџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџРџџџќџј№?рРР€€€€РРр№?јќџџџџРџd­оz—ўт@sprite0  gxœsђ5cc3 жb bF ˆT4ќoEƒa8-т••Xеc2рlЌRФ{„Юцу тЭЧ ЌzЩ3—Q˜ё‹&EdVХуT24тWF’п) џQDS9-‹рsprite10/ }xœsђ5уd3 жb bF ˆT4ќoEЃh#\\ ‚№ЋGSЂЉ'л=hVЩЦ/B-їрВS MнƒђXнƒU …ё…i&q+ЌЈ>ШNХхBL5јuQшЊ aрЌщg м3А‚с_ѕЄfont0Arial єtheboxЎџџџџœџџџџџџџ И[џџџџЉshow_info() st3[0]="0" st3[1]="X" st3[2]="X^2" st3[3]="sin(X)" st2[0]="+1" st2[1]="-1" st2[2]="+2" st2[3]="-2" st1[0]="0" st1[1]="1" st1[2]="-1" reveal=00000000џџџџџџџџџџџџИ[џџџџѓx=-(mouse_y-250)/100 switch (t3) { case 0: y=0; break; case 1: y=x; break; case 2: y=x*x; break; case 3: y=sin(x); break; } switch (t2) { case 0: y=y; break; case 1: y=-y; break; case 2: y=2*y; break; case 3: y=-2*y; break; } switch (t1) { case 0: y=y; break; case 1: y=1+y; break; case 2: y=-1+y; break; } 0000000џџџџџџџџџџџџџџџџџџџџИ action_font џџџџ00000000Иcџџџџi0000000И  action_color џџџџ00000000Иaction_draw_textџџџџ."Y = "+st1[t1]+" " + st2[t2] + " x " +st3[t3] 20224500000Иџaction_draw_rectangleџџџџ2002003003001000Иdaction_if_variableџџџџreveal0000000Иџaction_draw_rectangleџџџџ2002003003000000Иaction_draw_lineџџџџ100mouse_y2002500000Иaction_draw_lineџџџџ5050504500000Иaction_draw_lineџџџџ450504504500000Иaction_draw_ellipseџџџџ46 mouse_y-454 mouse_y+40000Иaction_draw_ellipseџџџџ446 250-100*y-4454 250-100*y+40000Иaction_draw_textџџџџ"x="+string(x)7025000000Иaction_draw_textџџџџ"y="+string(y)52025000000Иaction_draw_lineџџџџ300250400 250-100*y0000ИЇџџџџ50000000ИІџџџџ00000000Иaction_draw_lineџџџџ5050+100*i6050+100*i0000Иaction_draw_lineџџџџ45050+100*i46050+100*i0000Иaction_draw_textџџџџ""+string(2-i)30100*i+5000000Иaction_draw_textџџџџ""+string(2-i)500100*i+5000000Иcџџџџi1000000ИЈџџџџ00000000џџџџџџџџџџџџstartЎœџџџџџџџ И[џџџџG//y = term1 + term2 x term 3 thebox.t1=0 thebox.t2=0 thebox.t3=1 0000000џџџџџџџџџџџџџџџџџџџџџџџџИ[џџџџ…//y = term1 + term2 x term 3 thebox.t1=floor(random(3)) thebox.t2=floor(random(4)) thebox.t3=floor(random(4)) thebox.reveal=0 0000000џџџџџџџџџџџџџџџџџџџџRevealЎœџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџИcџџџџ thebox.reveal1000000џџџџџџџџџџџџџџџџџџџџЄroom0What's in the box?€р§џвџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ€р€р џџџџџџџџџџџџ€р€р џџџџџџџџџџџџ€р€р џџџџџџџџџџџџ€р€р џџџџџџџџџџџџ€р€р џџџџџџџџџџџџ€р€р џџџџџџџџџџџџ€р€р џџџџџџџџџџџџ€р€р џџџџџџџџџџџџр Ё† Ђ†`Ѓ†Ѓ†€–˜XџGame InformationџџџџџџџџXх{\rtf1\ansi\ansicpg1252\deff0\deflang3081{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil Arial;}{\f2\fnil Courier New;}{\f3\fnil\fcharset0 Courier New;}{\f4\fnil\fcharset2 Symbol;}} {\colortbl ;\red0\green0\blue0;\red128\green0\blue128;\red0\green0\blue128;\red0\green0\blue255;\red0\green128\blue0;} \viewkind4\uc1\pard\cf1\b\fs46 What's in the box? \par \fs34 A maths guessing game\fs46 \par \i\fs20 Tony Forster July 06, may be copied with acknowledgement \par \b0\i0\f1\fs24 \par \f0 Move the x lever up and down with the mouse. See what's happening to the y lever. Guess what's in the box. \par \par Press reveal when you are sure you know what's in the box. Press start to get a new puzzle. \par \par The box contains a formula y = T1 +T2 x T3 or \par \par \tab\tab -2\tab\tab 0 \par \tab -1\tab -1\tab x \tab x \par y = \tab 0\tab +1\tab\tab x^2 \par \tab +1\tab -2\tab\tab sin(x) in radians \par \par \b Challenges: \par \b0 (1) Add colour and sound \par \par (2) Test your friends with: \par \par \pard{\pntext\f4\'B7\tab}{\*\pn\pnlvlblt\pnf4\pnindent0{\pntxtb\'B7}}\fi-200\li200 a wider range of constants \par {\pntext\f4\'B7\tab} new functions like cos(x), square root, cube \par \pard ____________________________________________________________ \par \b How: \par \b0\f2\fs20 st3[0]="0"\cf0 \par \cf1 st3[1]="X"\cf0 \par \cf1 st3[2]="X^2"\cf0 \par \cf1 st3[3]="sin(X)"\cf0 \par \cf1 st2[0]="+1"\cf0 \par \cf1 st2[1]="-1"\cf0 \par \cf1 st2[2]="+2"\cf0 \par \cf1 st2[3]="-2"\cf0 \par \cf1 st1[0]="0"\cf0 \par \cf1 st1[1]="1"\cf0 \par \cf1 st1[2]="-1"\cf0 \par \cf1\b\f0\fs24 \par \b0 These are the options, which are revealed\b \par \par \cf2\b0\f3\fs20 thebox\cf1 .t1=\cf3 floor\cf1 (\cf3 random\cf1 (3))\cf4 \par \cf2 thebox\cf1 .t2=\cf3 floor\cf1 (\cf3 random\cf1 (4))\cf4 \par \cf2 thebox\cf1 .t3=\cf3 floor\cf1 (\cf3 random\cf1 (4))\cf4 \par \cf1\f0\fs24 \par You will need to alter these numbers to match how many options you have \par \par \b\f3\fs20 switch\b0 (t3) \cf5\i \par \cf1\b\i0\{\b0 \cf5\i \par \cf1\i0 \b case\b0 0: \cf5\i \par \cf1\i0 \cf4 y\cf1 =0; \b break\b0 ; \cf5\i \par \cf1\i0 \b case\b0 1: \cf5\i \par \cf1\i0 \cf4 y\cf1 =\cf4 x\cf1 ; \b break\b0 ; \cf5\i \par \cf1\i0 \b case\b0 2:\cf5\i \par \cf1\i0 \cf4 y\cf1 =\cf4 x\cf1 *\cf4 x\cf1 ; \b break\b0 ;\cf5\i \par \cf1\i0 \b case\b0 3:\cf5\i \par \cf1\i0 \cf4 y\cf1 =\cf3 sin\cf1 (\cf4 x\cf1 ); \b break\b0 ;\cf5\i \par \cf1\b\i0\}\cf5\b0\i \par \par \cf1\b\i0 switch\b0 (t2) \cf5\i \par \cf1\b\i0\{\b0 \cf5\i \par \cf1\i0 \b case\b0 0: \cf5\i \par \cf1\i0 \cf4 y\cf1 =\cf4 y\cf1 ; \b break\b0 ; \cf5\i \par \cf1\i0 \b case\b0 1: \cf5\i \par \cf1\i0 \cf4 y\cf1 =-\cf4 y\cf1 ; \b break\b0 ; \cf5\i \par \cf1\i0 \b case\b0 2:\cf5\i \par \cf1\i0 \cf4 y\cf1 =2*\cf4 y\cf1 ; \b break\b0 ;\cf5\i \par \cf1\i0 \b case\b0 3:\cf5\i \par \cf1\i0 \cf4 y\cf1 =-2*\cf4 y\cf1 ; \b break\b0 ;\cf5\i \par \par \cf1\b\i0\}\cf5\b0\i \par \par \cf1\b\i0 switch\b0 (t1) \cf5\i \par \cf1\b\i0\{\b0 \cf5\i \par \cf1\i0 \b case\b0 0: \cf5\i \par \cf1\i0 \cf4 y\cf1 =\cf4 y\cf1 ; \b break\b0 ; \cf5\i \par \cf1\i0 \b case\b0 1: \cf5\i \par \cf1\i0 \cf4 y\cf1 =1+\cf4 y\cf1 ; \b break\b0 ; \cf5\i \par \cf1\i0 \b case\b0 2:\cf5\i \par \cf1\i0 \cf4 y\cf1 =-1+\cf4 y\cf1 ; \b break\b0 ;\cf5\i \par \cf1\i0 \cf5\i \par \cf1\b\i0\}\cf5\b0\i \par \cf0\i0\f2 \par \cf1\f0\fs24 Thats where the maths is done, add extra case statements, don't forget the \b\f3\fs20 break\b0\f0\fs24 \par \par \f1 "y = "+st1[t1]+" " + st2[t2] + " X " +st3[t3] \par \par \f0 This is the revealed equation, you wont need to alter this unless you change the general form of the equation from y = T1 + T2 x T3 \par ________________________________________________________ \par \par (3) Allow players to try coefficients, display their Y output as well, move to the next question when correct. \par \par (4) Add a highscore table \par \par (5) Add a timer for each move (for an analogue clock see clock at \cf4 http://www.freewebs.com/schoolgamemaker/samples4.zip\cf1 ) \par \par (6) Save a database of responses (for saving to file see database at \cf4 http://www.freewebs.com/schoolgamemaker/samples4.zip\cf1 ) \par \par (7) Analyse the answers and tailor the questions to improve weaknesses \par \par \f1 \par } єSpritessprite0sprite1Sounds BackgroundsPathsScripts Fonts font0 Time LinesObjectstheboxstartRevealRoomsroom0 Game Information Global Game Settings