… | |
… | |
30 | our $LIBDIR = "."; |
30 | our $LIBDIR = "."; |
31 | our $APPDIR = "$LIBDIR/kgsueme"; |
31 | our $APPDIR = "$LIBDIR/kgsueme"; |
32 | our $IMGDIR = "$LIBDIR/images"; |
32 | our $IMGDIR = "$LIBDIR/images"; |
33 | our $SNDDIR = "$LIBDIR/sounds"; |
33 | our $SNDDIR = "$LIBDIR/sounds"; |
34 | |
34 | |
35 | for (qw(util.pl gtk.pl image.pl sound.pl appwin.pl roomlist.pl room.pl game.pl)) { |
35 | for (qw(util.pl gtk.pl image.pl sound.pl game.pl gamelist.pl room.pl roomlist.pl appwin.pl)) { |
36 | print "loading module $_\n"; |
36 | print "loading module $_\n"; |
37 | require "$APPDIR/$_"; |
37 | require "$APPDIR/$_"; |
38 | } |
38 | } |
39 | |
39 | |
40 | our $appwin = new appwin; |
40 | our $appwin = new appwin; |
41 | |
41 | |
42 | if (1) { |
42 | if (0) { |
43 | use KGS::Constants; |
43 | use KGS::Constants; |
44 | |
44 | |
45 | for (19) { |
45 | for (19) { |
46 | my $board = new game %{Storable::retrieve "testboard.storable"}; |
46 | my $board = new game %{Storable::retrieve "testboard.storable"}; |
47 | |
47 | |
… | |
… | |
59 | } |
59 | } |
60 | } |
60 | } |
61 | |
61 | |
62 | main Gtk2; |
62 | main Gtk2; |
63 | |
63 | |
|
|
64 | $appwin->destroy; |
|
|
65 | |
|
|
66 | Gtk2->main_iteration while Gtk2->events_pending; |
|
|
67 | |
|
|
68 | 1; |
64 | |
69 | |
65 | |
70 | |