Curses
A Java based ego resizer
Simply click the button for a new curse.
Here is the source:
/* CursesApplet.java The one, the same, the original. Quick and dirty, just how you like it */
import java.awt.*;
public class CursesApplet extends java.applet.Applet { final double MAXQ = 10.0; static String cSquotes1[] = {"stinky", "truculent", "slimey", "oozing", "grotesque", "ignorant", "boorish", "mindless", "infantile", "hurtful"}; static String cSquotes2[] = {"bag", "hulk", "pile", "mass", "cup", "sponge", "closet", "pig pen", "toilet", "swarm"}; static String cSquotes3[] = {"desiccated", "rotting", "dehydrated", "pale yellow", "bright green", "rubbery", "vibrating", "suffocating", "radioactive", "poisonous"}; static String cSquotes4[] = {"rat droppings", "spew", "spam", "entrails", "congress persons", "ecoli bacteria", "republicans", "couch potatoes", "test tubes", "socks"}; static String cSquotes5[] = {"liver", "face", "buttocks", "sister", "children", "nostrils", "scalp", "TV set", "pets", "car"}; static String cSquotes6[] = {"explode", "turn green with envy", "spin ever faster", "grow fat", "gyrate madly", "turn into jello", "leak bile", "grow confused and useless", "irritate you until death", "become large, red, and swollen"}; int ciindex1 = 0; int ciindex2 = 0; int ciindex3 = 0; int ciindex4 = 0; int ciindex5 = 0; int ciindex6 = 0;
public void init() { updateQuoteIndex(); add( new Button( "Curse Me!" ) ); }
public boolean action( Event evt, Object obj ) { if( evt.target instanceof Button ) { updateQuoteIndex(); repaint(); return true; } else return false; }
void updateQuoteIndex() { ciindex1 = (int)(Math.random() * MAXQ); ciindex2 = (int)(Math.random() * MAXQ); ciindex3 = (int)(Math.random() * MAXQ); ciindex4 = (int)(Math.random() * MAXQ); ciindex5 = (int)(Math.random() * MAXQ); ciindex6 = (int)(Math.random() * MAXQ); }
public void paint( Graphics g ) { g.drawString( "You " + cSquotes1[ciindex1] + " " + cSquotes2[ciindex2] + " of " + cSquotes3[ciindex3] + " " + cSquotes4[ciindex4] + " -" , 40, 60 ); g.drawString( "May your " + cSquotes5[ciindex5] + " " + cSquotes6[ciindex6] + "!!", 40, 80 ); }
}