diff --git a/compile.sh b/compile.sh index 6f67330..d1c22ec 100755 --- a/compile.sh +++ b/compile.sh @@ -3,6 +3,6 @@ # This is the path to the Closure Compiler from http://code.google.com/closure/compiler/ COMPILER=~/compiler.jar -java -jar $COMPILER --warning_level VERBOSE --compilation_level SIMPLE_OPTIMIZATIONS --js webventure.js --js windows.js --js files.js --js graphics.js --js objects.js --js text.js --js engine.js --js resource.js --js controls.js --js sounds.js --js menus.js --js last.js --externs externs.js --externs jquery-1.4.4.js --js_output_file webventure_min.js +java -jar $COMPILER --warning_level VERBOSE --compilation_level SIMPLE_OPTIMIZATIONS --js webventure.js --js windows.js --js files.js --js graphics.js --js objects.js --js text.js --js engine.js --js resource.js --js controls.js --js sounds.js --js menus.js --js last.js --externs externs.js --externs jquery_externs.js --js_output_file webventure_min.js echo "Webventure compiled, webventure_min.js created" diff --git a/game_example.html b/game.html similarity index 82% rename from game_example.html rename to game.html index c34cbe4..90e3ef2 100644 --- a/game_example.html +++ b/game.html @@ -8,6 +8,6 @@ var gameparts=document.location.hash.substring(1).split('?'); var gamename=gameparts[0]; - + diff --git a/games.js b/games.js index a101006..8558dbc 100644 --- a/games.js +++ b/games.js @@ -2,5 +2,9 @@ {"title":"Deja Vu","game":"Deja Vu.dsk","icon":"icons/Deja Vu.png"}, {"title":"Deja Vu 2","game":"Deja Vu II.dsk","icon":"icons/Deja Vu II.png"}, {"title":"Shadowgate","game":"Shadowgate.dsk","icon":"icons/Shadowgate.png"}, -{"title":"Uninvited","game":"Uninvited.dsk","icon":"icons/Uninvited.png"} +{"title":"Uninvited","game":"Uninvited.dsk","icon":"icons/Uninvited.png"}, +{"title":"Deja Vu IIgs","game":"Deja Vu.2mg","icon":"icons/Deja Vu_gs.png"}, +{"title":"Deja Vu 2 IIgs","game":"Deja Vu II.2mg","icon":"icons/Deja Vu II_gs.png"}, +{"title":"Shadowgate IIgs","game":"Shadowgate.2mg","icon":"icons/Shadowgate_gs.png"}, +{"title":"Uninvited IIgs","game":"Uninvited.2mg","icon":"icons/Uninvited_gs.png"} ] diff --git a/images/gs/activeTitle.png b/images/gs/activeTitle.png new file mode 100644 index 0000000..851c0bb Binary files /dev/null and b/images/gs/activeTitle.png differ diff --git a/images/gs/apple.png b/images/gs/apple.png new file mode 100644 index 0000000..ec1fe16 Binary files /dev/null and b/images/gs/apple.png differ diff --git a/images/gs/closeBox.png b/images/gs/closeBox.png new file mode 100644 index 0000000..98ef59c Binary files /dev/null and b/images/gs/closeBox.png differ diff --git a/images/gs/clover.png b/images/gs/clover.png new file mode 100644 index 0000000..65acc8f Binary files /dev/null and b/images/gs/clover.png differ diff --git a/images/gs/dclover.png b/images/gs/dclover.png new file mode 100644 index 0000000..44b00b2 Binary files /dev/null and b/images/gs/dclover.png differ diff --git a/images/gs/grow.png b/images/gs/grow.png new file mode 100644 index 0000000..d6ee393 Binary files /dev/null and b/images/gs/grow.png differ diff --git a/images/gs/iclover.png b/images/gs/iclover.png new file mode 100644 index 0000000..4abdf4f Binary files /dev/null and b/images/gs/iclover.png differ diff --git a/images/gs/info.png b/images/gs/info.png new file mode 100644 index 0000000..280da57 Binary files /dev/null and b/images/gs/info.png differ diff --git a/images/gs/resizeBox.png b/images/gs/resizeBox.png new file mode 100644 index 0000000..50ff120 Binary files /dev/null and b/images/gs/resizeBox.png differ diff --git a/images/gs/scrollback.png b/images/gs/scrollback.png new file mode 100644 index 0000000..7f262dd Binary files /dev/null and b/images/gs/scrollback.png differ diff --git a/images/gs/scrolldown.png b/images/gs/scrolldown.png new file mode 100644 index 0000000..824491b Binary files /dev/null and b/images/gs/scrolldown.png differ diff --git a/images/gs/scrollleft.png b/images/gs/scrollleft.png new file mode 100644 index 0000000..51d0574 Binary files /dev/null and b/images/gs/scrollleft.png differ diff --git a/images/gs/scrollright.png b/images/gs/scrollright.png new file mode 100644 index 0000000..94d3da6 Binary files /dev/null and b/images/gs/scrollright.png differ diff --git a/images/gs/scrollup.png b/images/gs/scrollup.png new file mode 100644 index 0000000..d5fe3a5 Binary files /dev/null and b/images/gs/scrollup.png differ diff --git a/images/gs/startup.png b/images/gs/startup.png new file mode 100644 index 0000000..9e3b59a Binary files /dev/null and b/images/gs/startup.png differ diff --git a/images/activeTitle.png b/images/mac/activeTitle.png similarity index 100% rename from images/activeTitle.png rename to images/mac/activeTitle.png diff --git a/images/apple.png b/images/mac/apple.png similarity index 100% rename from images/apple.png rename to images/mac/apple.png diff --git a/images/closeBox.png b/images/mac/closeBox.png similarity index 100% rename from images/closeBox.png rename to images/mac/closeBox.png diff --git a/images/clover.png b/images/mac/clover.png similarity index 100% rename from images/clover.png rename to images/mac/clover.png diff --git a/images/dkGray.png b/images/mac/dkGray.png similarity index 100% rename from images/dkGray.png rename to images/mac/dkGray.png diff --git a/images/gray.png b/images/mac/gray.png similarity index 100% rename from images/gray.png rename to images/mac/gray.png diff --git a/images/grow.png b/images/mac/grow.png similarity index 100% rename from images/grow.png rename to images/mac/grow.png diff --git a/images/iapple.png b/images/mac/iapple.png similarity index 100% rename from images/iapple.png rename to images/mac/iapple.png diff --git a/images/iclover.png b/images/mac/iclover.png similarity index 100% rename from images/iclover.png rename to images/mac/iclover.png diff --git a/images/ltGray.png b/images/mac/ltGray.png similarity index 100% rename from images/ltGray.png rename to images/mac/ltGray.png diff --git a/images/resizeBox.png b/images/mac/resizeBox.png similarity index 100% rename from images/resizeBox.png rename to images/mac/resizeBox.png diff --git a/images/scrolldown.png b/images/mac/scrolldown.png similarity index 100% rename from images/scrolldown.png rename to images/mac/scrolldown.png diff --git a/images/scrollleft.png b/images/mac/scrollleft.png similarity index 100% rename from images/scrollleft.png rename to images/mac/scrollleft.png diff --git a/images/scrollright.png b/images/mac/scrollright.png similarity index 100% rename from images/scrollright.png rename to images/mac/scrollright.png diff --git a/images/scrollup.png b/images/mac/scrollup.png similarity index 100% rename from images/scrollup.png rename to images/mac/scrollup.png diff --git a/images/sliderBack.png b/images/mac/sliderBack.png similarity index 100% rename from images/sliderBack.png rename to images/mac/sliderBack.png diff --git a/images/sliderLeft.png b/images/mac/sliderLeft.png similarity index 100% rename from images/sliderLeft.png rename to images/mac/sliderLeft.png diff --git a/images/sliderRight.png b/images/mac/sliderRight.png similarity index 100% rename from images/sliderRight.png rename to images/mac/sliderRight.png diff --git a/images/sliderThumb.png b/images/mac/sliderThumb.png similarity index 100% rename from images/sliderThumb.png rename to images/mac/sliderThumb.png diff --git a/images/start.png b/images/mac/start.png similarity index 100% rename from images/start.png rename to images/mac/start.png diff --git a/index_example.html b/index.html similarity index 91% rename from index_example.html rename to index.html index 6174ea5..a7476cc 100644 --- a/index_example.html +++ b/index.html @@ -17,7 +17,7 @@

WebVenture

for (var i=0;iWebVenture var title=localStorage.key(i); var game=JSON.parse(localStorage.getItem(title)); var link=document.createElement('a'); - link.href="game_example.html#"+game.game+"?"+escape(title); + link.href="game.html#"+game.game+"?"+escape(title); var img=document.createElement('img'); img.src='icons/'+game.game+'.png'; $(link).append(img); diff --git a/jquery-1.4.4.js b/jquery_externs.js similarity index 100% rename from jquery-1.4.4.js rename to jquery_externs.js diff --git a/game.css b/mac/game.css similarity index 88% rename from game.css rename to mac/game.css index 2233e53..e93ebdf 100644 --- a/game.css +++ b/mac/game.css @@ -1,7 +1,7 @@ div.screen { font-family: sans-serif; background: #ccc; - background-image: url("images/gray.png"); + background-image: url("images/mac/gray.png"); width: 512; height: 342; } @@ -21,7 +21,7 @@ div.menu { height: 19px; } div.menu.apple { - background-image: url("images/apple.png"); + background-image: url("images/mac/apple.png"); background-repeat: no-repeat; background-position: center 3px; @@ -32,7 +32,7 @@ div.menu.active { color: #fff; } div.menu.apple.active { - background-image: url("images/iapple.png"); + background-image: url("images/mac/iapple.png"); background-repeat: no-repeat; background-position: center 3px; } @@ -60,7 +60,7 @@ table.menu tr.menuitem.active { color: #fff; } table.menu tr.menuitem.active td.shortcut{ - background-image: url("images/iclover.png"); + background-image: url("images/mac/iclover.png"); background-repeat: no-repeat; background-position: 15px 4px; } @@ -76,7 +76,7 @@ table.menu td.divider { table.menu td.shortcut { width: 30px; text-align: right; - background-image: url("images/clover.png"); + background-image: url("images/mac/clover.png"); background-repeat: no-repeat; background-position: 15px 4px; } @@ -98,7 +98,7 @@ div.document.active { z-index: 50000; } div.document.active div.title { - background-image: url('images/activeTitle.png'); + background-image: url('images/mac/activeTitle.png'); background-repeat: repeat-x; } div.document.canvas { @@ -126,7 +126,7 @@ div.document div.close { div.document.active div.close { cursor: pointer; visibility: visible; - background-image: url('images/closeBox.png'); + background-image: url('images/mac/closeBox.png'); } div.dBox { background: #fff; @@ -174,7 +174,7 @@ div.noGrowDoc.active { z-index: 50000; } div.noGrowDoc.active div.title { - background-image: url('images/activeTitle.png'); + background-image: url('images/mac/activeTitle.png'); background-repeat: repeat-x; } div.noGrowDoc canvas { @@ -210,7 +210,7 @@ div.zoomDoc.active { z-index: 50000; } div.zoomDoc.active div.title { - background-image: url('images/activeTitle.png'); + background-image: url('images/mac/activeTitle.png'); background-repeat: repeat-x; } div.zoomDoc canvas { @@ -223,7 +223,7 @@ div.zoomDoc div.grow { background: #fff; } div.zoomDoc.active div.grow { - background-image: url('images/grow.png'); + background-image: url('images/mac/grow.png'); cursor: pointer; } div.zoomDoc div.hscroll { @@ -245,35 +245,35 @@ div.zoomDoc div.slider { display: none; } div.zoomDoc.active div.hscroll { - background-image: url('images/ltGray.png'); + background-image: url('images/mac/ltGray.png'); cursor: pointer; } div.zoomDoc.active div.vscroll { - background-image: url('images/ltGray.png'); + background-image: url('images/mac/ltGray.png'); cursor: pointer; } div.zoomDoc.active div.leftarrow { display: block; position: absolute; - background-image: url('images/scrollleft.png'); + background-image: url('images/mac/scrollleft.png'); border-right: 1px solid #000; } div.zoomDoc.active div.rightarrow { display: block; position: absolute; - background-image: url('images/scrollright.png'); + background-image: url('images/mac/scrollright.png'); border-left: 1px solid #000; } div.zoomDoc.active div.uparrow { display: block; position: absolute; - background-image: url('images/scrollup.png'); + background-image: url('images/mac/scrollup.png'); border-bottom: 1px solid #000; } div.zoomDoc.active div.downarrow { display: block; position: absolute; - background-image: url('images/scrolldown.png'); + background-image: url('images/mac/scrolldown.png'); border-top: 1px solid #000; } div.zoomDoc.active div.slider { @@ -304,7 +304,7 @@ div.zoomDoc div.close { div.zoomDoc.active div.close { cursor: pointer; visibility: visible; - background-image: url('images/closeBox.png'); + background-image: url('images/mac/closeBox.png'); } div.zoomDoc div.resize { visibility: hidden; @@ -318,7 +318,7 @@ div.zoomDoc div.resize { div.zoomDoc.active div.resize { cursor: pointer; visibility: visible; - background-image: url('images/resizeBox.png'); + background-image: url('images/mac/resizeBox.png'); } div.zoomNoGrow { background: #fff; @@ -507,24 +507,24 @@ div.hsliderLeft { position: absolute; width: 4px; height: 13px; - background-image: url("images/sliderLeft.png"); + background-image: url("images/mac/sliderLeft.png"); } div.hsliderRight { position: absolute; width: 4px; height: 13px; - background-image: url("images/sliderRight.png"); + background-image: url("images/mac/sliderRight.png"); } div.hsliderWell { position: absolute; height: 13px; - background-image: url("images/sliderBack.png"); + background-image: url("images/mac/sliderBack.png"); } div.hsliderThumb { position: absolute; width: 11px; height: 23px; - background-image: url("images/sliderThumb.png"); + background-image: url("images/mac/sliderThumb.png"); } canvas.proxy { z-index: 100000; @@ -546,10 +546,10 @@ div.commands { background: #000; } div.exits { - background-image: url("images/ltGray.png"); + background-image: url("images/mac/ltGray.png"); } div.exits.selected { - background-image: url("images/dkGray.png"); + background-image: url("images/mac/dkGray.png"); } div.resizeProxy { position: absolute; diff --git a/print.css b/mac/print.css similarity index 100% rename from print.css rename to mac/print.css diff --git a/webventure.js b/webventure.js index 4de5572..493fa23 100644 --- a/webventure.js +++ b/webventure.js @@ -35,12 +35,12 @@ function WebVenture() var link=document.createElement('link'); link.type="text/css"; link.rel="stylesheet"; - link.href="game.css"; + link.href="mac/game.css"; $('head').append(link); screen=$(document.createElement('div')); screen.addClass("screen"); startImage=$(document.createElement('img')); - startImage.attr("src","images/start.png"); + startImage.attr("src","images/mac/start.png"); startImage.css("width","100%"); startImage.css("height","100%"); screen.append(startImage); @@ -497,7 +497,7 @@ function WebVenture() var link=document.createElement('link'); link.type="text/css"; link.rel="stylesheet"; - link.href="print.css"; + link.href="mac/print.css"; link.media="print"; $('head').append(link); var d=res.get('GNRL',0x81);