# a stupid game :) (version 2) class(mystupidgame,widget) { constructor { srand $unixTime; $$->$setCaption(":)"); $$->$setGeometry($rand(770),$rand(570),30,30); } mouseEnterEvent { $$->$move($rand(770),$rand(570)); } mousePressEvent { echo "You got me!" delete $$ } } %w = $new(mystupidgame,0) %w->$show()