home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / game / iconinva.cpt / Jon Gary's Icon Invasion / Invasion (Play me in B&W) / cards.xml < prev    next >
Encoding:
Text File  |  1991-06-26  |  14.2 KB  |  339 lines

  1. card_3658.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3658</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2585</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3321.css" />
  12.     <part>
  13.         <id>2</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>142</left>
  24.             <top>200</top>
  25.             <right>163</right>
  26.             <bottom>216</bottom>
  27.         </rect>
  28.         <style>transparent</style>
  29.         <showName> <false /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <false /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>1000</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>Hand</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>3</id>
  45.         <type>button</type>
  46.         <visible> <false /> </visible>
  47.         <reserved5> 0 </reserved5>
  48.         <reserved4> 0 </reserved4>
  49.         <reserved3> 0 </reserved3>
  50.         <reserved2> 0 </reserved2>
  51.         <reserved1> 0 </reserved1>
  52.         <enabled> <true /> </enabled>
  53.         <rect>
  54.             <left>116</left>
  55.             <top>72</top>
  56.             <right>150</right>
  57.             <bottom>111</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <showName> <false /> </showName>
  61.         <highlight> <false /> </highlight>
  62.         <autoHighlight> <false /> </autoHighlight>
  63.         <sharedHighlight> <true /> </sharedHighlight>
  64.         <family>0</family>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>2000</icon>
  67.         <textAlign>center</textAlign>
  68.         <font>Chicago</font>
  69.         <textSize>12</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <name>bomb</name>
  72.         <script></script>
  73.     </part>
  74.     <part>
  75.         <id>4</id>
  76.         <type>button</type>
  77.         <visible> <true /> </visible>
  78.         <reserved5> 0 </reserved5>
  79.         <reserved4> 0 </reserved4>
  80.         <reserved3> 0 </reserved3>
  81.         <reserved2> 0 </reserved2>
  82.         <reserved1> 0 </reserved1>
  83.         <enabled> <true /> </enabled>
  84.         <rect>
  85.             <left>85</left>
  86.             <top>23</top>
  87.             <right>119</right>
  88.             <bottom>62</bottom>
  89.         </rect>
  90.         <style>transparent</style>
  91.         <showName> <false /> </showName>
  92.         <highlight> <false /> </highlight>
  93.         <autoHighlight> <false /> </autoHighlight>
  94.         <sharedHighlight> <true /> </sharedHighlight>
  95.         <family>0</family>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>3060</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Chicago</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <name>i3</name>
  103.         <script></script>
  104.     </part>
  105.     <part>
  106.         <id>5</id>
  107.         <type>button</type>
  108.         <visible> <true /> </visible>
  109.         <reserved5> 0 </reserved5>
  110.         <reserved4> 0 </reserved4>
  111.         <reserved3> 0 </reserved3>
  112.         <reserved2> 0 </reserved2>
  113.         <reserved1> 0 </reserved1>
  114.         <enabled> <true /> </enabled>
  115.         <rect>
  116.             <left>51</left>
  117.             <top>23</top>
  118.             <right>85</right>
  119.             <bottom>62</bottom>
  120.         </rect>
  121.         <style>transparent</style>
  122.         <showName> <false /> </showName>
  123.         <highlight> <false /> </highlight>
  124.         <autoHighlight> <false /> </autoHighlight>
  125.         <sharedHighlight> <true /> </sharedHighlight>
  126.         <family>0</family>
  127.         <titleWidth>0</titleWidth>
  128.         <icon>3030</icon>
  129.         <textAlign>center</textAlign>
  130.         <font>Chicago</font>
  131.         <textSize>12</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <name>i2</name>
  134.         <script></script>
  135.     </part>
  136.     <part>
  137.         <id>6</id>
  138.         <type>button</type>
  139.         <visible> <true /> </visible>
  140.         <reserved5> 0 </reserved5>
  141.         <reserved4> 0 </reserved4>
  142.         <reserved3> 0 </reserved3>
  143.         <reserved2> 0 </reserved2>
  144.         <reserved1> 0 </reserved1>
  145.         <enabled> <true /> </enabled>
  146.         <rect>
  147.             <left>17</left>
  148.             <top>23</top>
  149.             <right>51</right>
  150.             <bottom>62</bottom>
  151.         </rect>
  152.         <style>transparent</style>
  153.         <showName> <false /> </showName>
  154.         <highlight> <false /> </highlight>
  155.         <autoHighlight> <false /> </autoHighlight>
  156.         <sharedHighlight> <true /> </sharedHighlight>
  157.         <family>0</family>
  158.         <titleWidth>0</titleWidth>
  159.         <icon>3070</icon>
  160.         <textAlign>center</textAlign>
  161.         <font>Chicago</font>
  162.         <textSize>12</textSize>
  163.         <textStyle>plain</textStyle>
  164.         <name>i1</name>
  165.         <script></script>
  166.     </part>
  167.     <part>
  168.         <id>7</id>
  169.         <type>button</type>
  170.         <visible> <true /> </visible>
  171.         <reserved5> 0 </reserved5>
  172.         <reserved4> 0 </reserved4>
  173.         <reserved3> 0 </reserved3>
  174.         <reserved2> 0 </reserved2>
  175.         <reserved1> 0 </reserved1>
  176.         <enabled> <true /> </enabled>
  177.         <rect>
  178.             <left>119</left>
  179.             <top>23</top>
  180.             <right>153</right>
  181.             <bottom>62</bottom>
  182.         </rect>
  183.         <style>transparent</style>
  184.         <showName> <false /> </showName>
  185.         <highlight> <false /> </highlight>
  186.         <autoHighlight> <false /> </autoHighlight>
  187.         <sharedHighlight> <true /> </sharedHighlight>
  188.         <family>0</family>
  189.         <titleWidth>0</titleWidth>
  190.         <icon>3029</icon>
  191.         <textAlign>center</textAlign>
  192.         <font>Chicago</font>
  193.         <textSize>12</textSize>
  194.         <textStyle>plain</textStyle>
  195.         <name>i4</name>
  196.         <script></script>
  197.     </part>
  198.     <part>
  199.         <id>8</id>
  200.         <type>button</type>
  201.         <visible> <true /> </visible>
  202.         <reserved5> 0 </reserved5>
  203.         <reserved4> 0 </reserved4>
  204.         <reserved3> 0 </reserved3>
  205.         <reserved2> 0 </reserved2>
  206.         <reserved1> 0 </reserved1>
  207.         <enabled> <true /> </enabled>
  208.         <rect>
  209.             <left>153</left>
  210.             <top>23</top>
  211.             <right>187</right>
  212.             <bottom>62</bottom>
  213.         </rect>
  214.         <style>transparent</style>
  215.         <showName> <false /> </showName>
  216.         <highlight> <false /> </highlight>
  217.         <autoHighlight> <false /> </autoHighlight>
  218.         <sharedHighlight> <true /> </sharedHighlight>
  219.         <family>0</family>
  220.         <titleWidth>0</titleWidth>
  221.         <icon>3060</icon>
  222.         <textAlign>center</textAlign>
  223.         <font>Chicago</font>
  224.         <textSize>12</textSize>
  225.         <textStyle>plain</textStyle>
  226.         <name>i5</name>
  227.         <script></script>
  228.     </part>
  229.     <part>
  230.         <id>9</id>
  231.         <type>button</type>
  232.         <visible> <true /> </visible>
  233.         <reserved5> 0 </reserved5>
  234.         <reserved4> 0 </reserved4>
  235.         <reserved3> 0 </reserved3>
  236.         <reserved2> 0 </reserved2>
  237.         <reserved1> 0 </reserved1>
  238.         <enabled> <true /> </enabled>
  239.         <rect>
  240.             <left>2</left>
  241.             <top>1</top>
  242.             <right>36</right>
  243.             <bottom>18</bottom>
  244.         </rect>
  245.         <style>shadow</style>
  246.         <showName> <true /> </showName>
  247.         <highlight> <false /> </highlight>
  248.         <autoHighlight> <false /> </autoHighlight>
  249.         <sharedHighlight> <true /> </sharedHighlight>
  250.         <family>0</family>
  251.         <titleWidth>0</titleWidth>
  252.         <icon>0</icon>
  253.         <textAlign>center</textAlign>
  254.         <font>Geneva</font>
  255.         <textSize>9</textSize>
  256.         <textStyle>bold</textStyle>
  257.         <name>play</name>
  258.         <script>on mouseUpgameend mouseUp</script>
  259.     </part>
  260.     <part>
  261.         <id>10</id>
  262.         <type>field</type>
  263.         <visible> <true /> </visible>
  264.         <dontWrap> <false /> </dontWrap>
  265.         <dontSearch> <false /> </dontSearch>
  266.         <sharedText> <false /> </sharedText>
  267.         <fixedLineHeight> <false /> </fixedLineHeight>
  268.         <autoTab> <false /> </autoTab>
  269.         <lockText> <true /> </lockText>
  270.         <rect>
  271.             <left>37</left>
  272.             <top>0</top>
  273.             <right>288</right>
  274.             <bottom>18</bottom>
  275.         </rect>
  276.         <style>rectangle</style>
  277.         <autoSelect> <false /> </autoSelect>
  278.         <showLines> <false /> </showLines>
  279.         <wideMargins> <false /> </wideMargins>
  280.         <multipleLines> <false /> </multipleLines>
  281.         <reservedFamily> 0 </reservedFamily>
  282.         <titleWidth>0</titleWidth>
  283.         <icon>0</icon>
  284.         <textAlign>center</textAlign>
  285.         <font>Geneva</font>
  286.         <textSize>9</textSize>
  287.         <textStyle>plain</textStyle>
  288.         <textHeight>12</textHeight>
  289.         <name>cookie</name>
  290.         <script></script>
  291.     </part>
  292.     <part>
  293.         <id>11</id>
  294.         <type>field</type>
  295.         <visible> <false /> </visible>
  296.         <dontWrap> <false /> </dontWrap>
  297.         <dontSearch> <false /> </dontSearch>
  298.         <sharedText> <false /> </sharedText>
  299.         <fixedLineHeight> <false /> </fixedLineHeight>
  300.         <autoTab> <false /> </autoTab>
  301.         <lockText> <false /> </lockText>
  302.         <rect>
  303.             <left>0</left>
  304.             <top>60</top>
  305.             <right>288</right>
  306.             <bottom>205</bottom>
  307.         </rect>
  308.         <style>scrolling</style>
  309.         <autoSelect> <false /> </autoSelect>
  310.         <showLines> <false /> </showLines>
  311.         <wideMargins> <false /> </wideMargins>
  312.         <multipleLines> <false /> </multipleLines>
  313.         <reservedFamily> 0 </reservedFamily>
  314.         <titleWidth>0</titleWidth>
  315.         <icon>0</icon>
  316.         <textAlign>left</textAlign>
  317.         <font>Geneva</font>
  318.         <textSize>9</textSize>
  319.         <textStyle>plain</textStyle>
  320.         <textHeight>12</textHeight>
  321.         <name>cookieList</name>
  322.         <script>on enterInFieldhide meend enterInField</script>
  323.     </part>
  324.     <content>
  325.         <layer>card</layer>
  326.         <id>11</id>
  327.         <text>What's that about 2 megabytes?bad shot!Microsoft what?Get a life!Splat!That was ugly!You hated that thing anyway!Kill all INITs.HyperCard, it's not a system, it's a way of life.Did you get Word yet?Having fun yet?Take that, you evil thing.The bombster!  Bombsteroony!  The bombmeister!Jon Gary did this at HackHack 91 in a couple of hours.Type Cmd-. to abort the game.Kill Dean and get it overwith!If you could only get the grouch!Ok, where's Atkinson?</text>
  328.     </content>
  329.     <content>
  330.         <layer>card</layer>
  331.         <id>10</id>
  332.         <text>Hold < > to move left & right, <space> to shoot</text>
  333.     </content>
  334.     <name></name>
  335.     <script>on helpanswer "press < to move left" & return & ┬¼"press > to go right" & return & ┬¼"press spacebar to shoot" & return & return & ┬¼"Don't let any icons reach the bottom of the window!!!"end helpon openCardglobal dirtyset the cursor to watchput "Hacking.  Please waitΓǪ" into cd fld "cookie"LDI 3000,100if the result is not empty then answer "Could not get icons, using old ones."CleanUpend openCardon CleanUpglobal dirtySetUpIconsput "Icon invasion by Jon Gary." into cd fld "cookie"wait 2 secondsput "Hold < > to move left & right, <space> to shoot" into cd fld "cookie"put false into dirtyend CleanUpon Cookieglobal cookieListget any line of cd field "cookieList"put it into cd fld "cookie"end Cookieon idleglobal dirtyif dirty is true then CleanUpend idlefunction SectRect r1,r2the topLeft of r1 is within r2 or the topLeft of r2 is within r1end SectRecton StepFrame xDir,yDirrepeat with i = 1 to 5put "i" & i into btnNameif the visible of btn btnName then MoveBtn btnName,xdir,ydirend repeatend StepFrameon SetUpIcons doHandrepeat with i = 1 to 5put "i" & i into btnNameset the loc of btn btnName to i * 34,42show btn btnNameend repeatif dohand is not false then set the loc of btn "hand" to 152,208hide btn "bomb"end SetUpIconson MoveBtn btnName,xDir,yDirif not the visible of btn btnName then exit MoveBtnget the loc of btn btnNameadd  round(xDir * ((item 3 of the rect of btn btnName) - (item 1 of the rect of btn btnName)))  to item 1 of itadd  round(yDir * ((item 4 of the rect of btn btnName) - (item 2 of the rect of btn btnName)))  to item 2 of itset the loc of btn btnName to itend MoveBtnon DoHandglobal lastHand, handDirput the loc of btn "hand" into saveLocput the ticks - lastHand into howLongif the mouseLoc is within the rect of btn "hand" then exit DoHandif  GetKeys() contains "right" thenMoveBtn "hand",handDir, 0put the ticks into lastHandelse if GetKeys() contains "left" thenMoveBtn "hand",- handDir, 0put the ticks into lastHandend ifif item 1 of the loc of btn "hand" < item 1 of the rect of this card thenput item 1 of the rect of this card  into item 1 of saveLocset the loc of btn "hand" to saveLocelse if item 1 of the loc of btn "hand"  > item 3 of the rect of this card thenput item 3 of the rect of this card  into item 1 of saveLocset the loc of btn "hand" to saveLocend ifend DoHandfunction TimeToSwitch dirput false into swif dir < 0 thenrepeat with i = 1 to 5put "i" & i into btnNameif the visible of btn btnName thenput true into swexit repeatend ifend repeatelse if dir > 0 thenrepeat with i = 5 down to 1put "i" & i into btnNameif the visible of btn btnName thenput true into swexit repeatend ifend repeatend ifif sw then return (the loc of btn btnName is not within the rect of this card)else return falseend TimeToSwitchon SelectIconsrepeat with i = 1 to 5put "i" & i into btnNameput false into donerepeat until doneget abs(random(99))get 3000 + itset the icon of btn btnName to itif the result is empty then  put true into doneend repeatget random (1000)if it  > 990 then set the icon of btn btnName to 4000end repeatend SelectIconson Gameglobal level, dirtyglobal dir, handDir, stepTimeput 0 into levelput 1 into handDirSetUpIconsSelectIconsput 60 into stepTimeput 0 into lastTimeput .5 into dirset the cursor to noneput true into dirtyput "Take Revenge.  Bomb your applications back!" into cd fld "cookie"repeat-- lock screenDoHandDoBomb-- unlock screen with dissolve very fastDoCollisionlock screenif the ticks - lastTime > stepTime thenStepFrame dir,0put the ticks into lastTimeif TimeToSwitch(dir) thenmultiply dir by -1StepFrame 0,.5end ifend ifunlock screen --with dissolve very fastend repeatend Gameon DoBombif not the visible of btn "bomb" and  GetKeys() contains "space" thenset the loc of btn "bomb" to the loc of btn "hand"show btn "bomb"play "boop"end ifMoveBtn "bomb",0,-1if the loc of btn bomb is not within ┬¼the rect of this card then hide btn "bomb"end DoBombon DoCollisionput false into stillGoingrepeat with i = 1 to 5put "i" & i into btnNameif the visible of btn "bomb" and the visible of btn btnName and ┬¼(the topLeft of btn btnName is within the rect of btn "bomb" or ┬¼the topLeft of btn "bomb" is within the rect of btn btnName) thenDoBoom btnNameend ifif item 2 of the loc of btn btnname  > item 4 of the rect of this card ┬¼and the visible of btn btnName thenDoDDayend ifput stillGoing or the visible of btn btnName into stillGoingend repeatif not stillGoing then WinItend DoCollisionon DoBoom bNameplay "boom"flash 2hide btn bNamehide btn "bomb"cookie-- wait until the sound is doneend DoBoomon DoDDayplay "boom" --"c1w"play "boom" -- "c2w"play "boom"play "boom" --"c1w"flash 10put "Sorry, game over." into cd fld "cookie"SetUpIconsexit to HyperCardend DoDDayon WinItglobal level, dir, handDir, stepTimeif level > 15 thenplay flute  "c4 e g c5h g4q c5h"Answer "You killed tham all!"put "Game over." into cd fld "cookie"SetUpIconsexit to HyperCardelseadd 1 to levelmultiply dir by 1.1multiply stepTime by .75multiply handDir by 1.1visual effect iris close to blacklock screen--go to this cardSetUpIcons falseSelectIconsput abs (dir) into dirunlock screen with iris openend ifend WinIt</script>
  336. </card>
  337.  
  338.  
  339.