diff --git a/README.md b/README.md index 58e9d07e..67a34ccc 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,11 @@ By Richard Davey, [Photon Storm](http://www.photonstorm.com) View the [Official Website](http://phaser.io)
Follow on [Twitter](https://twitter.com/photonstorm)
Read the [Development Blog](http://www.photonstorm.com)
-Join the [Forum](http://www.html5gamedevs.com/forum/14-phaser/) +Join the [Forum](http://www.html5gamedevs.com/forum/14-phaser/)
Try out the [Phaser Test Suite](http://gametest.mobi/phaser/) +[Un-official Getting Started with Phaser](http://www.antonoffplus.com/coding-an-html5-game-for-30-minutes-or-an-introduction-to-the-phaser-framework) + "Being negative is not how we make progress" - Larry Page, Google Welcome to Phaser @@ -35,7 +37,7 @@ Phaser is everything we ever wanted from an HTML5 game framework. It will power Change Log ---------- -Version 1.0.7 (in progress in the dev branch) +Version 1.1 (in progress in the dev branch) * JSDoc is go! We've added jsdoc3 blocks to every property and function, in every file. * Added World.postUpdate - all sprite position changes, as a result of physics, happen here before the render. @@ -303,7 +305,6 @@ Known Issues ------------ * The TypeScript definition file isn't yet complete. -* The JSDOCS are not yet complete. Future Plans ------------ @@ -322,8 +323,6 @@ The following list is not exhaustive and is subject to change: * Flash CC html output support. * Game parameters read from Google Docs. -Right now however our main focus is on documentation and examples, we won't be touching any of the above features until the docs are finished. - Test Suite ---------- diff --git a/examples/build.php b/examples/_site/build.php similarity index 100% rename from examples/build.php rename to examples/_site/build.php diff --git a/examples/stylesheet.css b/examples/_site/css/phaser-examples.css similarity index 63% rename from examples/stylesheet.css rename to examples/_site/css/phaser-examples.css index c205af54..7b77cc1f 100644 --- a/examples/stylesheet.css +++ b/examples/_site/css/phaser-examples.css @@ -8,7 +8,7 @@ blockquote, q {quotes: none;} blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;} table {border-collapse: collapse; border-spacing: 0;} /* reset css ends */ -@font-face{font-family: 'HelveticaBd'; src: url('assets/html/HelveticaNeueLTStd-Bd.otf');} +@font-face{font-family: 'HelveticaBd'; src: url('../../_site/fonts/HelveticaNeueLTStd-Bd.otf');} body { margin:0; padding:0; overflow-x: hidden; font-family: Arial, Tahoma, Verdana !important; background: #e0e4f1;} @@ -16,30 +16,35 @@ a{color:#fff; text-decoration: none;} a:hover{text-decoration: underline;} .helvetica{font-family: Arial, Tahoma, Verdana !important;} -.header{background: #e0e4f1 url('assets/html/header-bg2.jpg') no-repeat; width:100%; margin:0; padding:0; background-size: cover; height: 530px; display: block; clear:both; margin-bottom: -400px} +.header{background: #e0e4f1 url('../../_site/images/header-bg2.jpg') no-repeat; width:100%; margin:0; padding:0; background-size: cover; height: 530px; display: block; clear:both; margin-bottom: -400px} .main-container{display: block; clear:both; width: 1125px; height: auto; margin:0 auto;} ul.nav-links{ margin:0; padding:0; display: inline-block; float: right; list-style-type: none; color: #fff; font-size: 15px; line-height: 2em; margin-top: 50px; min-width: 180px;} ul.nav-links > li{margin:0; padding:0; list-style-type: none; padding-left: 55px;} ul.nav-links > li > a{color: #fff; text-decoration: none;} ul.nav-links > li > a:hover{text-decoration: underline;} -.link-home, .link-latest, .link-forum, .link-docs, .link-twitter{background-image: url('assets/html/nav-icons.png'); background-repeat: no-repeat;} +.link-home, .link-latest, .link-forum, .link-docs, .link-twitter{background-image: url('../../_site/images/nav-icons.png'); background-repeat: no-repeat;} -.main-title{font-family: 'HelveticaBd', Helvetica, Arial;font-size:55px;color:#fff;text-shadow:0 0 15px #b643e6; text-align: center; display: block; text-transform: xuppercase; margin: 40px auto 0 auto;} +.main-title{font-family: 'HelveticaBd', Helvetica, Arial;font-size:55px;color:#fff;text-shadow:0 0 15px #b643e6; text-align: center; display: block; margin: 40px auto 0 auto;} .link-home{background-position: 0 -9px;} .link-latest{background-position: 0 -37px;} .link-forum{background-position: 0 -67px;} .link-docs{background-position: 0 -97px;} .link-twitter{background-position: 0 -127px;} -.phaser-examples{background: url('assets/html/phaser-examples.png') no-repeat; display: block; width: 485px; height: 205px; margin: 20px auto;} -.phaser-version{float: right; background: url('assets/html/phaser-version.png') no-repeat; display: block; width: 345px; height: 30px; color: #fff; font-size: 11px; text-shadow: 1px 1px #000; right:0; top:0; } +.phaser-examples{background: url('../../_site/images/phaser-examples.png') no-repeat; display: block; width: 485px; height: 205px; margin: 20px auto;} +.phaser-version{float: right; background: url('../../_site/images/phaser-version.png') no-repeat; display: block; width: 345px; height: 30px; color: #fff; font-size: 11px; text-shadow: 1px 1px #000; right:0; top:0; } .phaser-version > span{margin-top: 10px; display: inline-block; margin-left: 60px; margin-right: 25px;} -.phaser-version > a{color: #fff; text-decoration: none; background: url('assets/html/version-button.png') no-repeat; background-size: cover; display: inline-block; width: 123px; height: 10px; vertical-align: middle; text-align: center;padding-top:11px; padding-bottom: 11px} +.phaser-version > a{color: #fff; text-decoration: none; background: url('../../_site/images/version-button.png') no-repeat; background-size: cover; display: inline-block; width: 123px; height: 10px; vertical-align: middle; text-align: center;padding-top:11px; padding-bottom: 11px} .phaser-version > a:hover{text-decoration: underline;} -.phaser-logo{display: block; float: right; width: 168px;height: 144px; background: url('assets/html/phaser-logo.png') no-repeat; margin-top: 40px; margin-right: 40px;} +.phaser-logo{display: block; float: right; width: 168px;height: 144px; background: url('../../_site/images/phaser-logo.png') no-repeat; margin-top: 40px; margin-right: 40px;} + +.error { margin-left: 48px; width: 700px; background-color: rgb(150,25,25); color:#fff; text-shadow: 1px 1px 0 #000; line-height: 24px } + +.error p { + padding: 16px 24px; +} .line{display:block;clear:both; width:100%; margin:0;padding:0; float:left; background-color: transparent;} -.xxgo-top{margin-top: -200px;} .box5, .box10, .box15 .box20, .box25, .box30, .box35, .box40, .box45, .box50, .box55, .box60, .box65, .box70, .box75, .box80, .box85, .box90, .box95, .box100{position: relative;display: inline-block; box-sizing: border-box; padding: 5px 10px; -moz-box-sizing: border-box; vertical-align: top; margin:0;} .float-right{float:right !important;} @@ -78,36 +83,36 @@ ul.nav-links > li > a:hover{text-decoration: underline;} p.title{font-family: 'HelveticaBd', Helvetica, Arial; font-size: 30px; color: #fff; text-shadow: 0 1px 3px #9e6ce8; text-align: right;} p.count-examples{font-size: 12px; color: #676773; text-align: right;} -ul.group-items{background-image: url('assets/html/laser1.png'); background-repeat: no-repeat; background-position: left top 5px; padding-left: 125px; width: 875px !important;} -ul.group-items > li{width: 213px; padding-top: 15px; height: 35px; background: url('assets/html/group-item.png') no-repeat; text-align: center; display: inline-block; margin-bottom: 15px} +ul.group-items{background-image: url('../../_site/images/laser1.png'); background-repeat: no-repeat; background-position: left top 5px; padding-left: 125px; width: 875px !important;} +ul.group-items > li{width: 213px; padding-top: 15px; height: 35px; background: url('../../_site/images/group-item.png') no-repeat; text-align: center; display: inline-block; margin-bottom: 15px} ul.group-items > li a{display:block; width:100%; height: 100%; padding: 20px 0; margin-top: -20px; color:#333;} ul.group-items > li a:hover{cursor: pointer; text-decoration: underline;} ul.group-items > li a span.mark{display:inline-block;width: 1px; height: 25px; vertical-align: middle;} -ul.group-items > li a:visited span.mark{background: url('assets/html/group-item-hover.png') no-repeat; background-position: center center;width:25px; padding-left:4px;} +ul.group-items > li a:visited span.mark{background: url('../../_site/images/group-item-hover.png') no-repeat; background-position: center center;width:25px; padding-left:4px;} -.laser2{background-image: url('assets/html/laser2.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser3{background-image: url('assets/html/laser3.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser4{background-image: url('assets/html/laser4.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser5{background-image: url('assets/html/laser5.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser6{background-image: url('assets/html/laser6.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser7{background-image: url('assets/html/laser7.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser8{background-image: url('assets/html/laser8.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser9{background-image: url('assets/html/laser9.png') !important; background-repeat: no-repeat; background-position: center 20px;} -.laser10{background-image: url('assets/html/laser10.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser2{background-image: url('../../_site/images/laser2.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser3{background-image: url('../../_site/images/laser3.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser4{background-image: url('../../_site/images/laser4.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser5{background-image: url('../../_site/images/laser5.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser6{background-image: url('../../_site/images/laser6.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser7{background-image: url('../../_site/images/laser7.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser8{background-image: url('../../_site/images/laser8.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser9{background-image: url('../../_site/images/laser9.png') !important; background-repeat: no-repeat; background-position: center 20px;} +.laser10{background-image: url('../../_site/images/laser10.png') !important; background-repeat: no-repeat; background-position: center 20px;} .bright-bg, .dark-bg{border-bottom: 1px solid #d1d1d1; padding:25px 0;} .border-bottom{border-bottom: 1px solid #d1d1d1;} -.prize-bg{background: url('assets/html/prize-bg.png') no-repeat; background-size: cover; background-position: center center; height: 326px; width: 100%;} -.prize-button{text-transform: uppercase; color: #000; text-shadow: 1px 0 #fff; float:right; background: url('assets/html/prize-button.png') no-repeat; width: 300px; height: 70px; padding-top:135px; font-size: 16px; padding-left: 75px; margin-top: 25px; margin-right: 145px;} +.prize-bg{background: url('../../_site/images/prize-bg.png') no-repeat; background-size: cover; background-position: center center; height: 326px; width: 100%;} +.prize-button{text-transform: uppercase; color: #000; text-shadow: 1px 0 #fff; float:right; background: url('../../_site/images/prize-button.png') no-repeat; width: 300px; height: 70px; padding-top:135px; font-size: 16px; padding-left: 75px; margin-top: 25px; margin-right: 145px;} -.footer{ background: #e0e4f1 url('assets/html/footer-bg2.jpg') no-repeat; background-size: cover; width:100%; height: 592px; bottom:0; } -.photonstorm-logo{background: url('assets/html/photonstorm-logo.png') no-repeat; background-size: cover; display: block;clear:both; width:113px;height:15px; margin-bottom: 6px;} -.flixel-logo{display:block; clear:both; width:26px; height:50px; background: url('assets/html/flixel-logo.png') no-repeat;} -.forums-icon, .twitter-icon, .github-icon{background: url('assets/html/forums-icon.png') no-repeat; vertical-align: middle; padding-left: 68px; height: 35px; display: inline-block; padding-top: 25px;} -.twitter-icon{background: url('assets/html/twitter-icon.png') no-repeat;} -.github-icon{background: url('assets/html/github-icon.png') no-repeat;} +.footer{ background: #e0e4f1 url('../../_site/images/footer-bg2.jpg') no-repeat; background-size: cover; width:100%; height: 592px; bottom:0; } +.photonstorm-logo{background: url('../../_site/images/photonstorm-logo.png') no-repeat; background-size: cover; display: block;clear:both; width:113px;height:15px; margin-bottom: 6px;} +.flixel-logo{display:block; clear:both; width:26px; height:50px; background: url('../../_site/images/flixel-logo.png') no-repeat;} +.forums-icon, .twitter-icon, .github-icon{background: url('../../_site/images/forums-icon.png') no-repeat; vertical-align: middle; padding-left: 68px; height: 35px; display: inline-block; padding-top: 25px;} +.twitter-icon{background: url('../../_site/images/twitter-icon.png') no-repeat;} +.github-icon{background: url('../../_site/images/github-icon.png') no-repeat;} #footer .main-container .line { margin-top: 130px; @@ -119,21 +124,21 @@ ul.footer-links > li{display: inline-block; padding:0; margin:0; float:right;} .game-panel{width:800px; height: 680px; overflow: hidden; display:block; clear:both;box-shadow: 0 0 15px #6ac8f8; margin:-150px auto 0 auto; border-radius: 10px; position: relative; z-index: 10;} .game-screen{display:block; clear:both; width:800px;height:600px;margin:0;} -.game-controls{display:block; width:100%; height:80px; margin:0; padding:0;background: url('assets/html/game-controls-bg.jpg') repeat-x;} +.game-controls{display:block; width:100%; height:80px; margin:0; padding:0;background: url('../../_site/images/game-controls-bg.jpg') repeat-x;} ul.left-controls{float:left; list-style-type: none; margin:30px 0 0 25px;padding:0; display: inline-block;} ul.left-controls > li{margin:0;padding:0; display: inline-block; vertical-align: middle;} -.controls-label{display:inline-block; width:80px; height:9px; background: url('assets/html/controls-label.png') no-repeat;} -.up-label{display: inline-block; width:11px; height: 11px; background: url('assets/html/up-label.png') no-repeat;} -.down-label{display: inline-block; width:11px; height: 11px; background: url('assets/html/down-label.png') no-repeat;} -.left-label{display: inline-block; width:13px; height: 11px; background: url('assets/html/left-label.png') no-repeat;} -.right-label{display: inline-block; width:12px; height: 11px; background: url('assets/html/right-label.png') no-repeat;} -.space-label{display: inline-block; width:64px; height: 18px; background: url('assets/html/space-label.png') no-repeat;} +.controls-label{display:inline-block; width:80px; height:9px; background: url('../../_site/images/controls-label.png') no-repeat;} +.up-label{display: inline-block; width:11px; height: 11px; background: url('../../_site/images/up-label.png') no-repeat;} +.down-label{display: inline-block; width:11px; height: 11px; background: url('../../_site/images/down-label.png') no-repeat;} +.left-label{display: inline-block; width:13px; height: 11px; background: url('../../_site/images/left-label.png') no-repeat;} +.right-label{display: inline-block; width:12px; height: 11px; background: url('../../_site/images/right-label.png') no-repeat;} +.space-label{display: inline-block; width:64px; height: 18px; background: url('../../_site/images/space-label.png') no-repeat;} ul.right-controls{float:right;list-style-type: none; padding:0; display: inline-block; margin: 15px 25px 0 0;} ul.right-controls > li{margin:0;padding:0; display: inline-block; vertical-align: middle;} -.pause-button{width: 121px; height:52px; display:inline-block; background: url('assets/html/pause-button.png') no-repeat;} -.mute-button{width: 121px; height:52px; display:inline-block; background: url('assets/html/mute-button.png') no-repeat;} -.reset-button{width: 121px; height:52px; display:inline-block; background: url('assets/html/reset-button.png') no-repeat;} +.pause-button{width: 121px; height:52px; display:inline-block; background: url('../../_site/images/pause-button.png') no-repeat;} +.mute-button{width: 121px; height:52px; display:inline-block; background: url('../../_site/images/mute-button.png') no-repeat;} +.reset-button{width: 121px; height:52px; display:inline-block; background: url('../../_site/images/reset-button.png') no-repeat;} .pause-button:hover, .mute-button:hover, .reset-button:hover{cursor: pointer;} .filler{height: 720px;} .code-block{font-family: Courier; font-size: 14px; width:750px; height:auto; overflow: hidden; margin:0 auto; border-radius: 10px; background:#fdfdfd; border:0 !important; box-shadow: inset 0 5px 15px rgba(0,0,0,0.15), 0 0 10px rgba(106,200,248,0.5); padding: 25px !important;display: block; margin-bottom: 20px; margin-top: 30px;} diff --git a/examples/examples.json b/examples/_site/examples.json similarity index 100% rename from examples/examples.json rename to examples/_site/examples.json diff --git a/examples/assets/html/HelveticaNeueLTStd-Bd.otf b/examples/_site/fonts/HelveticaNeueLTStd-Bd.otf similarity index 100% rename from examples/assets/html/HelveticaNeueLTStd-Bd.otf rename to examples/_site/fonts/HelveticaNeueLTStd-Bd.otf diff --git a/examples/assets/html/inconsolata.woff b/examples/_site/fonts/inconsolata.woff similarity index 100% rename from examples/assets/html/inconsolata.woff rename to examples/_site/fonts/inconsolata.woff diff --git a/examples/funcs.php b/examples/_site/funcs.php similarity index 100% rename from examples/funcs.php rename to examples/_site/funcs.php diff --git a/examples/assets/html/bg-footer.jpg b/examples/_site/images/bg-footer.jpg similarity index 100% rename from examples/assets/html/bg-footer.jpg rename to examples/_site/images/bg-footer.jpg diff --git a/examples/assets/html/controls-label.png b/examples/_site/images/controls-label.png similarity index 100% rename from examples/assets/html/controls-label.png rename to examples/_site/images/controls-label.png diff --git a/examples/assets/html/down-label.png b/examples/_site/images/down-label.png similarity index 100% rename from examples/assets/html/down-label.png rename to examples/_site/images/down-label.png diff --git a/examples/assets/html/flixel-logo.png b/examples/_site/images/flixel-logo.png similarity index 100% rename from examples/assets/html/flixel-logo.png rename to examples/_site/images/flixel-logo.png diff --git a/examples/assets/html/footer-bg.jpg b/examples/_site/images/footer-bg.jpg similarity index 100% rename from examples/assets/html/footer-bg.jpg rename to examples/_site/images/footer-bg.jpg diff --git a/examples/assets/html/footer-bg2.jpg b/examples/_site/images/footer-bg2.jpg similarity index 100% rename from examples/assets/html/footer-bg2.jpg rename to examples/_site/images/footer-bg2.jpg diff --git a/examples/assets/html/forums-icon.png b/examples/_site/images/forums-icon.png similarity index 100% rename from examples/assets/html/forums-icon.png rename to examples/_site/images/forums-icon.png diff --git a/examples/assets/html/game-controls-bg.jpg b/examples/_site/images/game-controls-bg.jpg similarity index 100% rename from examples/assets/html/game-controls-bg.jpg rename to examples/_site/images/game-controls-bg.jpg diff --git a/examples/assets/html/github-icon.png b/examples/_site/images/github-icon.png similarity index 100% rename from examples/assets/html/github-icon.png rename to examples/_site/images/github-icon.png diff --git a/examples/assets/html/gradient-bg.jpg b/examples/_site/images/gradient-bg.jpg similarity index 100% rename from examples/assets/html/gradient-bg.jpg rename to examples/_site/images/gradient-bg.jpg diff --git a/examples/assets/html/group-item-hover.png b/examples/_site/images/group-item-hover.png similarity index 100% rename from examples/assets/html/group-item-hover.png rename to examples/_site/images/group-item-hover.png diff --git a/examples/assets/html/group-item.png b/examples/_site/images/group-item.png similarity index 100% rename from examples/assets/html/group-item.png rename to examples/_site/images/group-item.png diff --git a/examples/assets/html/header-bg.jpg b/examples/_site/images/header-bg.jpg similarity index 100% rename from examples/assets/html/header-bg.jpg rename to examples/_site/images/header-bg.jpg diff --git a/examples/assets/html/header-bg2.jpg b/examples/_site/images/header-bg2.jpg similarity index 100% rename from examples/assets/html/header-bg2.jpg rename to examples/_site/images/header-bg2.jpg diff --git a/examples/assets/html/laser1.png b/examples/_site/images/laser1.png similarity index 100% rename from examples/assets/html/laser1.png rename to examples/_site/images/laser1.png diff --git a/examples/assets/html/laser10.png b/examples/_site/images/laser10.png similarity index 100% rename from examples/assets/html/laser10.png rename to examples/_site/images/laser10.png diff --git a/examples/assets/html/laser2.png b/examples/_site/images/laser2.png similarity index 100% rename from examples/assets/html/laser2.png rename to examples/_site/images/laser2.png diff --git a/examples/assets/html/laser3.png b/examples/_site/images/laser3.png similarity index 100% rename from examples/assets/html/laser3.png rename to examples/_site/images/laser3.png diff --git a/examples/assets/html/laser4.png b/examples/_site/images/laser4.png similarity index 100% rename from examples/assets/html/laser4.png rename to examples/_site/images/laser4.png diff --git a/examples/assets/html/laser5.png b/examples/_site/images/laser5.png similarity index 100% rename from examples/assets/html/laser5.png rename to examples/_site/images/laser5.png diff --git a/examples/assets/html/laser6.png b/examples/_site/images/laser6.png similarity index 100% rename from examples/assets/html/laser6.png rename to examples/_site/images/laser6.png diff --git a/examples/assets/html/laser7.png b/examples/_site/images/laser7.png similarity index 100% rename from examples/assets/html/laser7.png rename to examples/_site/images/laser7.png diff --git a/examples/assets/html/laser8.png b/examples/_site/images/laser8.png similarity index 100% rename from examples/assets/html/laser8.png rename to examples/_site/images/laser8.png diff --git a/examples/assets/html/laser9.png b/examples/_site/images/laser9.png similarity index 100% rename from examples/assets/html/laser9.png rename to examples/_site/images/laser9.png diff --git a/examples/assets/html/left-label.png b/examples/_site/images/left-label.png similarity index 100% rename from examples/assets/html/left-label.png rename to examples/_site/images/left-label.png diff --git a/examples/assets/html/lite_footer.jpg b/examples/_site/images/lite_footer.jpg similarity index 100% rename from examples/assets/html/lite_footer.jpg rename to examples/_site/images/lite_footer.jpg diff --git a/examples/assets/html/lite_header.jpg b/examples/_site/images/lite_header.jpg similarity index 100% rename from examples/assets/html/lite_header.jpg rename to examples/_site/images/lite_header.jpg diff --git a/examples/assets/html/lite_header_2.jpg b/examples/_site/images/lite_header_2.jpg similarity index 100% rename from examples/assets/html/lite_header_2.jpg rename to examples/_site/images/lite_header_2.jpg diff --git a/examples/assets/html/mute-button.png b/examples/_site/images/mute-button.png similarity index 100% rename from examples/assets/html/mute-button.png rename to examples/_site/images/mute-button.png diff --git a/examples/assets/html/nav-icons.png b/examples/_site/images/nav-icons.png similarity index 100% rename from examples/assets/html/nav-icons.png rename to examples/_site/images/nav-icons.png diff --git a/examples/assets/html/pause-button.png b/examples/_site/images/pause-button.png similarity index 100% rename from examples/assets/html/pause-button.png rename to examples/_site/images/pause-button.png diff --git a/examples/assets/html/phaser-examples.png b/examples/_site/images/phaser-examples.png similarity index 100% rename from examples/assets/html/phaser-examples.png rename to examples/_site/images/phaser-examples.png diff --git a/examples/assets/html/phaser-logo.png b/examples/_site/images/phaser-logo.png similarity index 100% rename from examples/assets/html/phaser-logo.png rename to examples/_site/images/phaser-logo.png diff --git a/examples/assets/html/phaser-version.png b/examples/_site/images/phaser-version.png similarity index 100% rename from examples/assets/html/phaser-version.png rename to examples/_site/images/phaser-version.png diff --git a/examples/assets/html/photonstorm-logo.png b/examples/_site/images/photonstorm-logo.png similarity index 100% rename from examples/assets/html/photonstorm-logo.png rename to examples/_site/images/photonstorm-logo.png diff --git a/examples/assets/html/prize-bg.png b/examples/_site/images/prize-bg.png similarity index 100% rename from examples/assets/html/prize-bg.png rename to examples/_site/images/prize-bg.png diff --git a/examples/assets/html/prize-button.png b/examples/_site/images/prize-button.png similarity index 100% rename from examples/assets/html/prize-button.png rename to examples/_site/images/prize-button.png diff --git a/examples/assets/html/reset-button.png b/examples/_site/images/reset-button.png similarity index 100% rename from examples/assets/html/reset-button.png rename to examples/_site/images/reset-button.png diff --git a/examples/assets/html/right-label.png b/examples/_site/images/right-label.png similarity index 100% rename from examples/assets/html/right-label.png rename to examples/_site/images/right-label.png diff --git a/examples/assets/html/space-label.png b/examples/_site/images/space-label.png similarity index 100% rename from examples/assets/html/space-label.png rename to examples/_site/images/space-label.png diff --git a/examples/assets/html/twitter-icon.png b/examples/_site/images/twitter-icon.png similarity index 100% rename from examples/assets/html/twitter-icon.png rename to examples/_site/images/twitter-icon.png diff --git a/examples/assets/html/up-label.png b/examples/_site/images/up-label.png similarity index 100% rename from examples/assets/html/up-label.png rename to examples/_site/images/up-label.png diff --git a/examples/assets/html/version-button.png b/examples/_site/images/version-button.png similarity index 100% rename from examples/assets/html/version-button.png rename to examples/_site/images/version-button.png diff --git a/examples/index.php b/examples/_site/index.php similarity index 100% rename from examples/index.php rename to examples/_site/index.php diff --git a/examples/assets/html/application.js b/examples/_site/js/application.js similarity index 100% rename from examples/assets/html/application.js rename to examples/_site/js/application.js diff --git a/examples/_site/js/phaser-examples.js b/examples/_site/js/phaser-examples.js new file mode 100644 index 00000000..453feff4 --- /dev/null +++ b/examples/_site/js/phaser-examples.js @@ -0,0 +1,77 @@ +$(document).ready(function(){ + + $.getJSON("_site/examples.json") + + .done(function(data) { + + var i = 0; + var len = 0; + var node = ''; + var laser = ''; + + $.each(data, function(dir, files) + { + len = files.length / 4; + + if (len > 9) + { + laser = 'laser10'; + } + else + { + laser = 'laser' + (len + 1); + } + + if (i == 1) + { + node = '
'; + } + else if (i == 2) + { + node = '
'; + } + + node += '

' + dir + '

'; + node += '

' + files.length + ' examples

'; + node += '
'; + + $("#examples-list").append(node); + + i++; + + if (i == 3) + { + i = 1; + } + + }); + + }) + + .fail(function() { + + var node = '
'; + + node += '

Error!

'; + node += '

:(

'; + + node += '

Unable to load examples.json data file

'; + node += '

Did you open this html file locally?

'; + node += '

It needs to be opened via a web server, or due to browser security permissions
it will be unable to load local resources such as images and json data.

'; + node += '

Please see our Getting Started guide for details.

'; + + node += '
'; + node += '
'; + + $("#examples-list").append(node); + + }); + +}); diff --git a/examples/lite.php b/examples/_site/lite.php similarity index 100% rename from examples/lite.php rename to examples/_site/lite.php diff --git a/examples/phaser-debug-js.php b/examples/_site/phaser-debug-js.php similarity index 100% rename from examples/phaser-debug-js.php rename to examples/_site/phaser-debug-js.php diff --git a/examples/assets/html/demo.html b/examples/_site/templates/demo.html similarity index 100% rename from examples/assets/html/demo.html rename to examples/_site/templates/demo.html diff --git a/examples/assets/html/index.html b/examples/_site/templates/index.html similarity index 100% rename from examples/assets/html/index.html rename to examples/_site/templates/index.html diff --git a/examples/view_full.php b/examples/_site/view_full.html similarity index 100% rename from examples/view_full.php rename to examples/_site/view_full.html diff --git a/examples/_site/view_full.php b/examples/_site/view_full.php new file mode 100644 index 00000000..57a1f847 --- /dev/null +++ b/examples/_site/view_full.php @@ -0,0 +1,103 @@ + + + + + + phaser - <?php echo $title?> + + + + + + + + + +
+
+
+ Phaser Version: 1.1 + +
+
+
+
+ +
+ +
+
+ +
+
+
+
+
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
+
    +
  • +
  • +
  • +
+
+
+
+ +
+

Source code:

+
+        
+        
+
+ +
+ + + \ No newline at end of file diff --git a/examples/view_lite.php b/examples/_site/view_lite.php similarity index 100% rename from examples/view_lite.php rename to examples/_site/view_lite.php diff --git a/examples/view_plain.php b/examples/_site/view_plain.php similarity index 100% rename from examples/view_plain.php rename to examples/_site/view_plain.php diff --git a/examples/assets/bd/back.png b/examples/assets/bd/back.png deleted file mode 100644 index 45e439b7..00000000 Binary files a/examples/assets/bd/back.png and /dev/null differ diff --git a/examples/assets/bd/back2.png b/examples/assets/bd/back2.png deleted file mode 100644 index 47167d4b..00000000 Binary files a/examples/assets/bd/back2.png and /dev/null differ diff --git a/examples/assets/bd/burd.png b/examples/assets/bd/burd.png deleted file mode 100644 index f469cf8e..00000000 Binary files a/examples/assets/bd/burd.png and /dev/null differ diff --git a/examples/assets/bd/scroller.png b/examples/assets/bd/scroller.png deleted file mode 100644 index f48e5546..00000000 Binary files a/examples/assets/bd/scroller.png and /dev/null differ diff --git a/examples/assets/fonts/tiw_font.png b/examples/assets/fonts/tiw_font.png new file mode 100644 index 00000000..dd0a846a Binary files /dev/null and b/examples/assets/fonts/tiw_font.png differ diff --git a/examples/assets/suite/background.png b/examples/assets/suite/background.png deleted file mode 100644 index 4a496b8c..00000000 Binary files a/examples/assets/suite/background.png and /dev/null differ diff --git a/examples/index.html b/examples/index.html new file mode 100644 index 00000000..7b2db0f6 --- /dev/null +++ b/examples/index.html @@ -0,0 +1,73 @@ + + + + + + + + + + +
+
+
+ Phaser Version: 1.1 + 1.2 dev branch +
+
+ +
+ +
+
+
+ +
+
+ + + + \ No newline at end of file