From 0764aa010e9a48f774afb7dc9917e9d33e9a3cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 14 Jan 2016 00:41:47 +0100 Subject: add rustanddust.ch --- rustanddust.ch/ace.png | Bin 0 -> 852 bytes rustanddust.ch/ap.png | Bin 0 -> 2777 bytes rustanddust.ch/check-btn.png | Bin 0 -> 1297 bytes rustanddust.ch/combat.png | Bin 0 -> 1355447 bytes rustanddust.ch/deployment.png | Bin 0 -> 1358737 bytes rustanddust.ch/exit.png | Bin 0 -> 884 bytes rustanddust.ch/favicon.ico | Bin 0 -> 21662 bytes rustanddust.ch/game.png | Bin 0 -> 1320734 bytes rustanddust.ch/hold-objective.png | Bin 0 -> 1076 bytes rustanddust.ch/hq-activation.png | Bin 0 -> 1365897 bytes rustanddust.ch/hq-promote.png | Bin 0 -> 1357022 bytes rustanddust.ch/hq-stars.png | Bin 0 -> 1876 bytes rustanddust.ch/index.html | 196 +++++++++++++++++++++++ rustanddust.ch/jquery.fancybox.css | 273 +++++++++++++++++++++++++++++++++ rustanddust.ch/jquery.fancybox.pack.js | 46 ++++++ rustanddust.ch/logo.png | Bin 0 -> 31974 bytes rustanddust.ch/main-menu.png | Bin 0 -> 1427217 bytes rustanddust.ch/move.png | Bin 0 -> 1333534 bytes rustanddust.ch/objective.png | Bin 0 -> 1074 bytes rustanddust.ch/play-menu.png | Bin 0 -> 1425699 bytes rustanddust.ch/promote-btn.png | Bin 0 -> 1152 bytes rustanddust.ch/select.png | Bin 0 -> 1362509 bytes rustanddust.ch/style.css | 39 +++++ rustanddust.ch/unit-dock.png | Bin 0 -> 2370 bytes www.sh | 5 + 25 files changed, 559 insertions(+) create mode 100644 rustanddust.ch/ace.png create mode 100644 rustanddust.ch/ap.png create mode 100644 rustanddust.ch/check-btn.png create mode 100644 rustanddust.ch/combat.png create mode 100644 rustanddust.ch/deployment.png create mode 100644 rustanddust.ch/exit.png create mode 100644 rustanddust.ch/favicon.ico create mode 100644 rustanddust.ch/game.png create mode 100644 rustanddust.ch/hold-objective.png create mode 100644 rustanddust.ch/hq-activation.png create mode 100644 rustanddust.ch/hq-promote.png create mode 100644 rustanddust.ch/hq-stars.png create mode 100644 rustanddust.ch/index.html create mode 100644 rustanddust.ch/jquery.fancybox.css create mode 100644 rustanddust.ch/jquery.fancybox.pack.js create mode 100644 rustanddust.ch/logo.png create mode 100644 rustanddust.ch/main-menu.png create mode 100644 rustanddust.ch/move.png create mode 100644 rustanddust.ch/objective.png create mode 100644 rustanddust.ch/play-menu.png create mode 100644 rustanddust.ch/promote-btn.png create mode 100644 rustanddust.ch/select.png create mode 100644 rustanddust.ch/style.css create mode 100644 rustanddust.ch/unit-dock.png create mode 100755 www.sh diff --git a/rustanddust.ch/ace.png b/rustanddust.ch/ace.png new file mode 100644 index 0000000..16f6346 Binary files /dev/null and b/rustanddust.ch/ace.png differ diff --git a/rustanddust.ch/ap.png b/rustanddust.ch/ap.png new file mode 100644 index 0000000..74348d4 Binary files /dev/null and b/rustanddust.ch/ap.png differ diff --git a/rustanddust.ch/check-btn.png b/rustanddust.ch/check-btn.png new file mode 100644 index 0000000..bdcd47e Binary files /dev/null and b/rustanddust.ch/check-btn.png differ diff --git a/rustanddust.ch/combat.png b/rustanddust.ch/combat.png new file mode 100644 index 0000000..38975bf Binary files /dev/null and b/rustanddust.ch/combat.png differ diff --git a/rustanddust.ch/deployment.png b/rustanddust.ch/deployment.png new file mode 100644 index 0000000..7147e63 Binary files /dev/null and b/rustanddust.ch/deployment.png differ diff --git a/rustanddust.ch/exit.png b/rustanddust.ch/exit.png new file mode 100644 index 0000000..5dafecd Binary files /dev/null and b/rustanddust.ch/exit.png differ diff --git a/rustanddust.ch/favicon.ico b/rustanddust.ch/favicon.ico new file mode 100644 index 0000000..3add713 Binary files /dev/null and b/rustanddust.ch/favicon.ico differ diff --git a/rustanddust.ch/game.png b/rustanddust.ch/game.png new file mode 100644 index 0000000..092a513 Binary files /dev/null and b/rustanddust.ch/game.png differ diff --git a/rustanddust.ch/hold-objective.png b/rustanddust.ch/hold-objective.png new file mode 100644 index 0000000..6de3a2d Binary files /dev/null and b/rustanddust.ch/hold-objective.png differ diff --git a/rustanddust.ch/hq-activation.png b/rustanddust.ch/hq-activation.png new file mode 100644 index 0000000..308ceef Binary files /dev/null and b/rustanddust.ch/hq-activation.png differ diff --git a/rustanddust.ch/hq-promote.png b/rustanddust.ch/hq-promote.png new file mode 100644 index 0000000..c6b601d Binary files /dev/null and b/rustanddust.ch/hq-promote.png differ diff --git a/rustanddust.ch/hq-stars.png b/rustanddust.ch/hq-stars.png new file mode 100644 index 0000000..75e8d61 Binary files /dev/null and b/rustanddust.ch/hq-stars.png differ diff --git a/rustanddust.ch/index.html b/rustanddust.ch/index.html new file mode 100644 index 0000000..943aa96 --- /dev/null +++ b/rustanddust.ch/index.html @@ -0,0 +1,196 @@ + + + + + Rust And Dust + + + + + + + + + + + + + + + +
+
+

Rust And Dust

+ +
+ +
+ Rust And Dust a tactical ground combat simulation for android. +
+ +
+
+
+ +
+

It is still in beta mode, you can get it freely from here.

+

Coming soon : Player vs Player mode, under heavy development right now !

+ + +
+ +
+

Main Options:

+
+
    +
  • Show Moves : to show the hexes you can reach with the selected unit.
  • +
  • Show Targets : to show the enemy units you can fire at with the selected unit.
  • +
  • Show Move Assists : to show the friendly units you will be able to move if you activate the selected HQ.
  • +
  • Show Enemy Possibilities : to show what a selected enemy unit can do, the above options determine what is shown.
  • +
  • Debug : well, to turn on the debug mode.
  • +
  • Fx Volume : to change the volume of the sounds effects.
  • +
  • Graphics : to choose between regular wargame chits, and animated realistic sprites.
  • +
+

Play Options:

+
+
    +
  • Game Mode : to choose, between Solo, Player vs Player or Player vs AI game mode.
  • +
  • Scenario : to choose which battelfield you are going to play on.
  • +
+
+ +
+ +

Action Points (AP):

+

Each player will have 2 to 4 AP to spend per turn.
+ You won't know the amount of AP that you can spend until you have reached that number.

+

An action point allows you to do one of the following: +

+ +
+ +
+

Movement Points (MP):

+

Your units have an amount of movement points.
+ Each hex costs 1 MP, except the woods and the town that costs 2 MP.
+ If all your movement occures on a road, you gain 1 extra MP.

+

To move your unit:

+
    +
  • select it.
  • +
  • select the destination hex.
  • +
  • select the final orientation of your unit.
  • +
+

Moving a unit costs you 1 AP.

+
+
+ +
+

Combat:

+

Your units have a fire range and a defense value.
+ On a hill, your range is increased by 1 (except for the infantry).
+ A target in woods or town has a defense increased by 1.
+ You can target 1 unit within your range with a clear line of sight.
+ Hills, cities, other units block the line of sight.
+ Friendly units that can fire and have a clear line of sight to the selected target can assist you.
+ Artillery units can assist even if they don't have a clear line of sight to the target.
+ Infantry units nullify the defense bonus when attacking to a town.
+ Soft targets have 2 defense values, the higher being used when the are in hills, woods or town hex.

+

You destroy the target if: 2d6 + #engaged units + bonuses >= defense + bonuses.

+

To perform a combat:

+
    +
  • select your unit.
  • +
  • select your target.
  • +
  • (un)toggle the assist unit(s).
  • +
  • select the target again.
  • +
+

To cancel the action, select your combat leading unit again.

+

Leading a combat costs you 1 AP.

+
+
+ +
+

HQ units:

+

Your HQ units have on them.
+ When you activate an HQ, adjacents units can move freely.

+

To perform an HQ activation:

+
    +
  • select twice the HQ unit.
  • +
  • you can then move it and/or any other adjacent units in any order.
  • +
  • after each movement you can end your HQ activation with the button.
  • +
+

Activating an HQ costs you 1 AP.

+
+
+ +
+

Promotion to HQ:

+

You can promote one of your regular unit into an HQ if you have in your casualties an HQ of the same kind of unit.

+

To perform an promotion to HQ:

+
    +
  • select the regular unit.
  • +
  • touch the button.
  • +
+

Promoting a regular unit to an HQ costs you 1 AP.

+
+
+ +
+

Ace units:

+

Your Ace units have an on them.
+ When taking part in an combat, an ace unit allows you a second dice roll + if the first one is a failure.

+
+ +
+

Special Hexes:

+

The following hexes will have importance in the victory decision of some scenarios.

+
    +
  • Exit hexes will allow you to leave the battelfield if you have at least 1 MP left.
  • +
  • Objective will belong to the last army that passes over it.
  • +
  • Hold Objective belong to you as long as one of your units stands on it.
  • +
+
+ +
+ +

Deployment / Reinforcement:

+

Some scenarios will require you to first place some or all your units on the battle field.
+ Some others will require you to make some or all your units enter the battle field.
+ You may also recieve some reinforcement units during the battle.
+

+

In any of the above situation, you will see the number of available units over the unit dock button.

+

To make one unit enter the battle field from the unit dock:
+

    +
  • select the unit.
  • +
  • choose one of the available highlighted hexes.
  • +
  • choose the orientation of the unit or perform a regular move.
  • +
+
+
+ + + + diff --git a/rustanddust.ch/jquery.fancybox.css b/rustanddust.ch/jquery.fancybox.css new file mode 100644 index 0000000..c75d051 --- /dev/null +++ b/rustanddust.ch/jquery.fancybox.css @@ -0,0 +1,273 @@ +/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +.fancybox-wrap, +.fancybox-skin, +.fancybox-outer, +.fancybox-inner, +.fancybox-image, +.fancybox-wrap iframe, +.fancybox-wrap object, +.fancybox-nav, +.fancybox-nav span, +.fancybox-tmp +{ + padding: 0; + margin: 0; + border: 0; + outline: none; + vertical-align: top; +} + +.fancybox-wrap { + position: absolute; + top: 0; + left: 0; + z-index: 8020; +} + +.fancybox-skin { + position: relative; + background: #f9f9f9; + color: #444; + text-shadow: none; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.fancybox-opened { + z-index: 8030; +} + +.fancybox-opened .fancybox-skin { + -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); +} + +.fancybox-outer, .fancybox-inner { + position: relative; +} + +.fancybox-inner { + overflow: hidden; +} + +.fancybox-type-iframe .fancybox-inner { + -webkit-overflow-scrolling: touch; +} + +.fancybox-error { + color: #444; + font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + margin: 0; + padding: 15px; + white-space: nowrap; +} + +.fancybox-image, .fancybox-iframe { + display: block; + width: 100%; + height: 100%; +} + +.fancybox-image { + max-width: 100%; + max-height: 100%; +} + +#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url(fancybox_sprite.png); +} + +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + margin-top: -22px; + margin-left: -22px; + background-position: 0 -108px; + opacity: 0.8; + cursor: pointer; + z-index: 8060; +} + +#fancybox-loading div { + width: 44px; + height: 44px; + background: url(fancybox_loading.gif) center center no-repeat; +} + +.fancybox-close { + position: absolute; + top: -18px; + right: -18px; + width: 36px; + height: 36px; + cursor: pointer; + z-index: 8040; +} + +.fancybox-nav { + position: absolute; + top: 0; + width: 40%; + height: 100%; + cursor: pointer; + text-decoration: none; + background: transparent url(blank.gif); /* helps IE */ + -webkit-tap-highlight-color: rgba(0,0,0,0); + z-index: 8040; +} + +.fancybox-prev { + left: 0; +} + +.fancybox-next { + right: 0; +} + +.fancybox-nav span { + position: absolute; + top: 50%; + width: 36px; + height: 34px; + margin-top: -18px; + cursor: pointer; + z-index: 8040; + visibility: hidden; +} + +.fancybox-prev span { + left: 10px; + background-position: 0 -36px; +} + +.fancybox-next span { + right: 10px; + background-position: 0 -72px; +} + +.fancybox-nav:hover span { + visibility: visible; +} + +.fancybox-tmp { + position: absolute; + top: -99999px; + left: -99999px; + max-width: 99999px; + max-height: 99999px; + overflow: visible !important; +} + +/* Overlay helper */ + +.fancybox-lock { + overflow: visible !important; + width: auto; +} + +.fancybox-lock body { + overflow: hidden !important; +} + +.fancybox-lock-test { + overflow-y: hidden !important; +} + +.fancybox-overlay { + position: absolute; + top: 0; + left: 0; + overflow: hidden; + display: none; + z-index: 8010; + background: url(fancybox_overlay.png); +} + +.fancybox-overlay-fixed { + position: fixed; + bottom: 0; + right: 0; +} + +.fancybox-lock .fancybox-overlay { + overflow: auto; + overflow-y: scroll; +} + +/* Title helper */ + +.fancybox-title { + visibility: hidden; + font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + position: relative; + text-shadow: none; + z-index: 8050; +} + +.fancybox-opened .fancybox-title { + visibility: visible; +} + +.fancybox-title-float-wrap { + position: absolute; + bottom: 0; + right: 50%; + margin-bottom: -35px; + z-index: 8050; + text-align: center; +} + +.fancybox-title-float-wrap .child { + display: inline-block; + margin-right: -100%; + padding: 2px 20px; + background: transparent; /* Fallback for web browsers that doesn't support RGBa */ + background: rgba(0, 0, 0, 0.8); + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; + text-shadow: 0 1px 2px #222; + color: #FFF; + font-weight: bold; + line-height: 24px; + white-space: nowrap; +} + +.fancybox-title-outside-wrap { + position: relative; + margin-top: 10px; + color: #fff; +} + +.fancybox-title-inside-wrap { + padding-top: 10px; +} + +.fancybox-title-over-wrap { + position: absolute; + bottom: 0; + left: 0; + color: #fff; + padding: 10px; + background: #000; + background: rgba(0, 0, 0, .8); +} + +/*Retina graphics!*/ +@media only screen and (-webkit-min-device-pixel-ratio: 1.5), + only screen and (min--moz-device-pixel-ratio: 1.5), + only screen and (min-device-pixel-ratio: 1.5){ + + #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url(fancybox_sprite@2x.png); + background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/ + } + + #fancybox-loading div { + background-image: url(fancybox_loading@2x.gif); + background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/ + } +} \ No newline at end of file diff --git a/rustanddust.ch/jquery.fancybox.pack.js b/rustanddust.ch/jquery.fancybox.pack.js new file mode 100644 index 0000000..ea918f7 --- /dev/null +++ b/rustanddust.ch/jquery.fancybox.pack.js @@ -0,0 +1,46 @@ +/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +(function(s,H,f,w){var K=f("html"),q=f(s),p=f(H),b=f.fancybox=function(){b.open.apply(this,arguments)},J=navigator.userAgent.match(/msie/i),C=null,t=H.createTouch!==w,u=function(a){return a&&a.hasOwnProperty&&a instanceof f},r=function(a){return a&&"string"===f.type(a)},F=function(a){return r(a)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0, +openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1, +isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=u(a)?f(a).get():[a]),f.each(a,function(e,c){var l={},g,h,k,n,m;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),u(c)?(l={href:c.data("fancybox-href")||c.attr("href"),title:f("
").text(c.data("fancybox-title")||c.attr("title")).html(),isDom:!0,element:c}, +f.metadata&&f.extend(!0,l,c.metadata())):l=c);g=d.href||l.href||(r(c)?c:null);h=d.title!==w?d.title:l.title||"";n=(k=d.content||l.content)?"html":d.type||l.type;!n&&l.isDom&&(n=c.data("fancybox-type"),n||(n=(n=c.prop("class").match(/fancybox\.(\w+)/))?n[1]:null));r(g)&&(n||(b.isImage(g)?n="image":b.isSWF(g)?n="swf":"#"===g.charAt(0)?n="inline":r(c)&&(n="html",k=c)),"ajax"===n&&(m=g.split(/\s+/,2),g=m.shift(),m=m.shift()));k||("inline"===n?g?k=f(r(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):l.isDom&&(k=c): +"html"===n?k=g:n||g||!l.isDom||(n="inline",k=c));f.extend(l,{href:g,type:n,content:k,title:h,selector:m});a[e]=l}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==w&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1===b.trigger("onCancel")||(b.hideLoading(),a&&(b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(), +b.coming=null,b.current||b._afterZoomOut(a)))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(b.isOpen&&!0!==a?(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]()):(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&& +(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};!0===a||!b.player.isActive&&!1!==a?b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==w&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,l;c&&(l=b._getPosition(d),a&&"scroll"===a.type?(delete l.position,c.stop(!0,!0).animate(l,200)):(c.css(l),e.pos=f.extend({},e.dim,l)))}, +update:function(a){var d=a&&a.originalEvent&&a.originalEvent.type,e=!d||"orientationchange"===d;e&&(clearTimeout(C),C=null);b.isOpen&&!C&&(C=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),C=null)},e&&!t?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,t&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"), +b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('
').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){27===(a.which||a.keyCode)&&(a.preventDefault(),b.cancel())});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}));b.trigger("onLoading")},getViewport:function(){var a=b.current&& +b.current.locked||!1,d={x:q.scrollLeft(),y:q.scrollTop()};a&&a.length?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=t&&s.innerWidth?s.innerWidth:q.width(),d.h=t&&s.innerHeight?s.innerHeight:q.height());return d},unbindEvents:function(){b.wrap&&u(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");q.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(q.bind("orientationchange.fb"+(t?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c= +e.which||e.keyCode,l=e.target||e.srcElement;if(27===c&&b.coming)return!1;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||l&&(l.type||f(l).is("[contenteditable]"))||f.each(d,function(d,l){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();0!==c&&!k&&1g||0>l)&&b.next(0>g?"up":"right"),d.preventDefault())}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&& +b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)})}p.trigger(a)},isImage:function(a){return r(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return r(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=m(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c, +c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"=== +c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&t&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(t?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,x(d.padding[a]))});b.trigger("onReady"); +if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width= +this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming, +d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",t?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);t||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload|| +b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,l,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()); +b.unbindEvents();e=a.content;c=a.type;l=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
").html(e).find(a.selector):u(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder", +!1)}));break;case "image":e=a.tpl.image.replace(/\{href\}/g,g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}u(e)&&e.parent().is(a.inner)||a.inner.append(e);b.trigger("beforeShow"); +a.inner.css("overflow","yes"===l?"scroll":"no"===l?"hidden":l);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(!b.isOpened)f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();else if(d.prevMethod)b.transitions[d.prevMethod]();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,l=b.skin,g=b.inner,h=b.current,c=h.width,k=h.height,n=h.minWidth,v=h.minHeight,p=h.maxWidth, +q=h.maxHeight,t=h.scrolling,r=h.scrollOutside?h.scrollbarWidth:0,y=h.margin,z=m(y[1]+y[3]),s=m(y[0]+y[2]),w,A,u,D,B,G,C,E,I;e.add(l).add(g).width("auto").height("auto").removeClass("fancybox-tmp");y=m(l.outerWidth(!0)-l.width());w=m(l.outerHeight(!0)-l.height());A=z+y;u=s+w;D=F(c)?(a.w-A)*m(c)/100:c;B=F(k)?(a.h-u)*m(k)/100:k;if("iframe"===h.type){if(I=h.content,h.autoHeight&&1===I.data("ready"))try{I[0].contentWindow.document.location&&(g.width(D).height(9999),G=I.contents().find("body"),r&&G.css("overflow-x", +"hidden"),B=G.outerHeight(!0))}catch(H){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(D),h.autoHeight||g.height(B),h.autoWidth&&(D=g.width()),h.autoHeight&&(B=g.height()),g.removeClass("fancybox-tmp");c=m(D);k=m(B);E=D/B;n=m(F(n)?m(n,"w")-A:n);p=m(F(p)?m(p,"w")-A:p);v=m(F(v)?m(v,"h")-u:v);q=m(F(q)?m(q,"h")-u:q);G=p;C=q;h.fitToView&&(p=Math.min(a.w-A,p),q=Math.min(a.h-u,q));A=a.w-z;s=a.h-s;h.aspectRatio?(c>p&&(c=p,k=m(c/E)),k>q&&(k=q,c=m(k*E)),cA||z>s)&&c>n&&k>v&&!(19p&&(c=p,k=m(c/E)),g.width(c).height(k),e.width(c+y),a=e.width(),z=e.height();else c=Math.max(n,Math.min(c,c-(a-A))),k=Math.max(v,Math.min(k,k-(z-s)));r&&"auto"===t&&kA||z>s)&&c>n&&k>v;c=h.aspectRatio?cv&&k
').appendTo(d&&d.lenth?d:"body");this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(q.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay", +function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){q.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),q.scrollTop(this.scrollV).scrollLeft(this.scrollH));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%"); +J?(b=Math.max(H.documentElement.offsetWidth,H.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>q.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&this.fixed&&b.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){b.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&f("*").filter(function(){return"fixed"=== +f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=q.scrollTop(),this.scrollH=q.scrollLeft(),this.el.addClass("fancybox-lock"),q.scrollTop(this.scrollV).scrollLeft(this.scrollH));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float", +position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(r(e)&&""!==f.trim(e)){d=f('
'+e+"
");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),J&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(m(d.css("margin-bottom")))}d["top"===a.position?"prependTo": +"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",l=function(g){var h=f(this).blur(),k=d,l,m;g.ctrlKey||g.altKey||g.shiftKey||g.metaKey||h.is(".fancybox-wrap")||(l=a.groupAttr||"data-fancybox-group",m=h.attr(l),m||(l="rel",m=h.get(0)[l]),m&&""!==m&&"nofollow"!==m&&(h=c.length?f(c):e,h=h.filter("["+l+'="'+m+'"]'),k=h.index(this)),a.index=k,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;c&&!1!==a.live?p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')", +"click.fb-start",l):e.unbind("click.fb-start").bind("click.fb-start",l);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===w&&(f.scrollbarWidth=function(){var a=f('
').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});f.support.fixedPosition===w&&(f.support.fixedPosition=function(){var a=f('
').appendTo("body"), +b=20===a[0].offsetTop||15===a[0].offsetTop;a.remove();return b}());f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(s).width();K.addClass("fancybox-lock-test");d=f(s).width();K.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery); \ No newline at end of file diff --git a/rustanddust.ch/logo.png b/rustanddust.ch/logo.png new file mode 100644 index 0000000..6520748 Binary files /dev/null and b/rustanddust.ch/logo.png differ diff --git a/rustanddust.ch/main-menu.png b/rustanddust.ch/main-menu.png new file mode 100644 index 0000000..4b32ad7 Binary files /dev/null and b/rustanddust.ch/main-menu.png differ diff --git a/rustanddust.ch/move.png b/rustanddust.ch/move.png new file mode 100644 index 0000000..ebe279c Binary files /dev/null and b/rustanddust.ch/move.png differ diff --git a/rustanddust.ch/objective.png b/rustanddust.ch/objective.png new file mode 100644 index 0000000..d86225c Binary files /dev/null and b/rustanddust.ch/objective.png differ diff --git a/rustanddust.ch/play-menu.png b/rustanddust.ch/play-menu.png new file mode 100644 index 0000000..a99b156 Binary files /dev/null and b/rustanddust.ch/play-menu.png differ diff --git a/rustanddust.ch/promote-btn.png b/rustanddust.ch/promote-btn.png new file mode 100644 index 0000000..3e7ff9a Binary files /dev/null and b/rustanddust.ch/promote-btn.png differ diff --git a/rustanddust.ch/select.png b/rustanddust.ch/select.png new file mode 100644 index 0000000..43a36f6 Binary files /dev/null and b/rustanddust.ch/select.png differ diff --git a/rustanddust.ch/style.css b/rustanddust.ch/style.css new file mode 100644 index 0000000..09f9709 --- /dev/null +++ b/rustanddust.ch/style.css @@ -0,0 +1,39 @@ +body { + background: #0f0f0f none repeat scroll 0 0; + color: #999; + font-family: "Strait","Terminus","HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif; + font-size: 14px; + /* font-weight: 300; */ +} + +#content { + margin: 0 auto; + width: 800px; +} + +#title { + color: #41d12e; + padding: 30px 10px; +} + +a { + color: #2ea4d1; + outline-width: 0; + text-decoration: none; +} + +.center { + text-align: center; +} + +.article { + background: #212121 none repeat scroll 0 0; + border-color: #fff #fff #ddd; + border-radius: 20px; + border-style: solid; + border-width: 1px 2px; + margin-bottom: 7px; + margin-top: 7px; + padding: 10px 10px; + position: relative; +} diff --git a/rustanddust.ch/unit-dock.png b/rustanddust.ch/unit-dock.png new file mode 100644 index 0000000..5c9b8d2 Binary files /dev/null and b/rustanddust.ch/unit-dock.png differ diff --git a/www.sh b/www.sh new file mode 100755 index 0000000..a560e66 --- /dev/null +++ b/www.sh @@ -0,0 +1,5 @@ +#! /bin/bash + +DIR=rustanddust.ch +rm $DIR/*~ +rsync -avz -e ssh ./$DIR erratic:/var/www/sites/ -- cgit v1.1-2-g2b99