XԔ0cM0lX ( @ (//(  0/80@0?/8 0( ?G@POWOXOP?H0@/7@O_``h_hPX 0(P_oppxow_g@O/8'' 7p`o?G/7 0??H/8`/o?GOX@H0?/pOW?H/8 7OP?G/7( P0@PX@O0@ 0O @H/@' 00@@P0?'_OP@H( 7/7' ^^^^^^^^^^^^^^^^^^^^^^^^^^TeeBBBBeTT^^^^^^^eBDJ33333JJDBeZ^^^^TD33==#####==3JDBT^^^^eJ=###=3DeZ^^TB3# #=3JBZ^^T3#  #=JBT^^J# Sll #=JBZ^T# %,68??86,/@A*< ##45('.6787-9%:;*<=#$+&,--.,/01)2 3 $%&&'%($!)* ##  !"#     ??dg.;@ sprite_red   Yxs5a3 b(fdH@Q@(Ehthj8խ4V|42l [A(`@w? nj>F(yG sprite_blue   Nxs5a3 b(fdH@Q@(Ehphj8խ4V !FL %>F(Z object_red e action_move 1111011111000000action_change_object 00000000p action_wrap20000000 object_blue e action_move 1111011111000000p action_wrap20000000object_controller [show_info() for (i=0; i9)instance_create(i,j,object_blue) } } instance_create(random(room_width),random(room_height),object_red)0000000room0Disease spread        XGame InformationX${\rtf1\ansi\ansicpg1252\deff0\deflang3081{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil Courier New;}{\f2\fnil\fcharset0 Courier New;}{\f3\fnil MS Sans Serif;}{\f4\fnil Arial;}} {\colortbl ;\red0\green0\blue0;\red0\green0\blue255;\red0\green0\blue128;\red128\green0\blue128;} \viewkind4\uc1\pard\cf1\fs24 Demonstration of of disease spread \par Tony Forster 29/10/07 \par May be copied with acknowledgement \par \par The controller fills the room with one red and some blue balls and some blank space \par \b\f1\fs20 for\b0 (i=0; i<\cf2 room_width\cf1 ; i+=16)\cf0 \par \cf1 \b\{\cf0\b0 \par \cf1 \b for\b0 (j=0; j<\cf2 room_height\cf1 ; j+=16)\cf0 \par \cf1 \b\{\cf0\b0 \par \cf1 \b if\b0 (\cf3 random\cf1 (10)>9)\cf3 instance_create\cf1 (i,j,\cf4\f2 object_blue\cf1\f1 )\cf0 \par \cf1 \b\}\cf0\b0 \par \cf1 \b\} \par \cf3\b0 instance_create\cf1 (\cf3\f2 random\cf1\f1 (\cf2\f2 room_width\cf1\f1 )\f2 ,\cf3 random\cf1\f1 (\cf2\f2 room_height\cf1\f1 ),\cf4\f2 object_red\cf1\f1 )\cf0 \par \cf1\f0\fs24 \par \par When an infected ball collides with another it infects it \par \cf0\b\f3\fs16 Collision Event with object object_blue: \par \b0 for other object: change the instance into object object_red, not performing events \par \par \cf1\f0\fs24 Ideas: \par save the number of infected balls at each second, graph it (see smartbug for how to export to spreadsheet) \par how does the rate of spread vary with total population? why? \par Press escape to start \par \par \par \par \par \f4 \par } Sprites sprite_red sprite_blueSounds BackgroundsPathsScripts Fonts Time LinesObjects object_red object_blueobject_controllerRoomsroom0 Game Information Global Game Settings