Skip to content

Commit

Permalink
divied up mac and gs assets
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkite committed Mar 31, 2011
1 parent ac057e7 commit a5a1f4f
Show file tree
Hide file tree
Showing 43 changed files with 36 additions and 32 deletions.
2 changes: 1 addition & 1 deletion compile.sh
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion game_example.html → game.html
Expand Up @@ -8,6 +8,6 @@
var gameparts=document.location.hash.substring(1).split('?');
var gamename=gameparts[0];
</script>
<script type="text/javascript" src="webventure_min.js"></script>
<script type="text/javascript" src="webventure_full.js"></script>
</body>
</html>
6 changes: 5 additions & 1 deletion games.js
Expand Up @@ -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"}
]
Binary file added images/gs/activeTitle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/apple.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/closeBox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/clover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/dclover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/grow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/iclover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/resizeBox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/scrollback.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/scrolldown.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/scrollleft.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/scrollright.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/scrollup.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gs/startup.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions index_example.html → index.html
Expand Up @@ -17,7 +17,7 @@ <h3>WebVenture</h3>
for (var i=0;i<games.length;i++)
{
var link=document.createElement('a');
link.href="game_example.html#"+escape(games[i].game);
link.href="game.html#"+escape(games[i].game);
var img=document.createElement('img');
img.src=games[i].icon;
$(link).append(img);
Expand All @@ -35,7 +35,7 @@ <h3>WebVenture</h3>
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);
Expand Down
File renamed without changes.
48 changes: 24 additions & 24 deletions game.css → 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;
}
Expand All @@ -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;

Expand All @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions webventure.js
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a5a1f4f

Please sign in to comment.