Skip to content

Commit ebc4e5d

Browse files
committed
New examples HTML page added.
1 parent fa69265 commit ebc4e5d

52 files changed

Lines changed: 1657 additions & 525 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 0 deletions

examples/html/css/stylesheet.css

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
/* reset css starts */
2+
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;}
3+
/* HTML5 display-role reset for older browsers */
4+
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
5+
body {line-height: 1;}
6+
ol, ul {list-style: none;}
7+
blockquote, q {quotes: none;}
8+
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}
9+
table {border-collapse: collapse; border-spacing: 0;}
10+
/* reset css ends */
11+
@font-face{font-family: 'HelveticaBd'; src: url('../fonts/HelveticaNeueLTStd-Bd.otf');}
12+
13+
body{margin:0;padding:0; overflow-x:hidden; font-family: 'HelveticaBd', Helvetica, Arial, Tahoma, Verdana !important; background: #e0e4f1;}
14+
15+
a{color:#fff; text-decoration: none;}
16+
a:hover{text-decoration: underline;}
17+
18+
.helvetica{font-family: 'HelveticaBd', Helvetica, Arial, Tahoma, Verdana !important;}
19+
.header{background: #e0e4f1 url('../img/header-bg.jpg') no-repeat; width:100%; margin:0; padding:0; background-size: cover; height: 910px; display: block; clear:both; margin-bottom: -400px}
20+
.main-container{display: block; clear:both; width: 1125px; height: auto; margin:0 auto;}
21+
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;}
22+
ul.nav-links > li{margin:0; padding:0; list-style-type: none; padding-left: 55px;}
23+
ul.nav-links > li > a{color: #fff; text-decoration: none;}
24+
ul.nav-links > li > a:hover{text-decoration: underline;}
25+
.link-home, .link-latest, .link-forum, .link-docs, .link-twitter{background-image: url('../img/nav-icons.png'); background-repeat: no-repeat;}
26+
27+
.main-title{font-size:55px;color:#fff;text-shadow:0 0 15px #b643e6; text-align: center; display: block; text-transform: uppercase; margin: 40px auto 0 auto;}
28+
.link-home{background-position: 0 -9px;}
29+
.link-latest{background-position: 0 -37px;}
30+
.link-forum{background-position: 0 -67px;}
31+
.link-docs{background-position: 0 -97px;}
32+
.link-twitter{background-position: 0 -127px;}
33+
.phaser-examples{background: url('../img/phaser-examples.png') no-repeat; display: block; width: 485px; height: 205px; margin: 20px auto;}
34+
.phaser-version{float: right; background: url('../img/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; }
35+
.phaser-version > span{margin-top: 10px; display: inline-block; margin-left: 60px; margin-right: 25px;}
36+
.phaser-version > a{color: #fff; text-decoration: none; background: url('../img/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}
37+
.phaser-version > a:hover{text-decoration: underline;}
38+
.phaser-logo{display: block; float: right; width: 168px;height: 144px; background: url('../img/phaser-logo.png') no-repeat; margin-top: 40px; margin-right: 40px;}
39+
40+
.line{display:block;clear:both; width:100%; margin:0;padding:0; float:left; background-color: transparent;}
41+
.go-top{margin-top: -200px;}
42+
.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;}
43+
.float-right{float:right !important;}
44+
45+
.box5{width:4%; min-width: 100px; float:left;}
46+
.box10{width:9%; min-width: 100px; float:left;}
47+
.box15{width:14%; min-width: 150px;float:left;}
48+
.box20{width:19%; min-width: 200px;float:left;}
49+
.box25{width:24%; min-width: 250px;float:left;}
50+
.box30{width:29%; min-width: 300px;float:left;}
51+
.box35{width:34%; min-width: 350px;float:left;}
52+
.box40{width:39%; min-width: 400px;float:left;}
53+
.box45{width:44%; min-width: 450px;float:left;}
54+
.box50{width:49%; min-width: 500px;float:left;}
55+
.box55{width:54%; min-width: 550px;float:left;}
56+
.box60{width:59%; min-width: 600px;float:left;}
57+
.box65{width:64%; min-width: 650px;float:left;}
58+
.box70{width:69%; min-width: 700px;float:left;}
59+
.box75{width:74%; min-width: 750px;float:left;}
60+
.box80{width:79%; min-width: 800px;float:left;}
61+
.box85{width:84%; min-width: 850px;float:left;}
62+
.box90{width:89%; min-width: 900px;float:left;}
63+
.box95{width:94%; min-width: 950px;float:left;}
64+
.box100, .clear, .clear5, .clear10, .clear15, .clear20, .clear25{width:100%; clear: both;}
65+
.clear{display: block;}
66+
.clear5{height: 10px;}
67+
.clear10{height: 20px;}
68+
.clear15{height: 30px;}
69+
.clear20{height: 40px;}
70+
.clear25{height: 50px;}
71+
.strong{text-transform: uppercase !important;}
72+
.no-margin{margin:0 !important;}
73+
.no-padding{padding:0 !important;}
74+
.box-center{float: none !important; margin-left: auto !important; margin-right: auto !important;}
75+
.txt-center{text-align: center !important;}
76+
77+
p.title{font-size: 30px; color: #fff; text-shadow: 0 1px 3px #9e6ce8; text-align: right;}
78+
p.count-examples{font-size: 12px; color: #676773; text-align: right;}
79+
80+
ul.group-items{background-image: url('../img/laser1.png'); background-repeat: no-repeat; background-position: left top 5px; padding-left: 125px; width: 875px !important;}
81+
ul.group-items > li{width: 213px; padding-top: 15px; height: 35px; background: url('../img/group-item.png') no-repeat; text-align: center; display: inline-block; margin-bottom: 15px}
82+
ul.group-items > li a{display:block; width:100%; height: 100%; padding: 20px 0; margin-top: -20px; color:#333;}
83+
ul.group-items > li a:hover{cursor: pointer; text-decoration: underline;}
84+
ul.group-items > li a span.mark{display:inline-block;width: 1px; height: 25px; vertical-align: middle;}
85+
ul.group-items > li a:visited span.mark{background: url('../img/group-item-hover.png') no-repeat; background-position: center center;width:25px; padding-left:4px;}
86+
87+
.laser2{background-image: url('../img/laser2.png') !important; background-repeat: no-repeat; background-position: center 20px;}
88+
.laser3{background-image: url('../img/laser3.png') !important; background-repeat: no-repeat; background-position: center 20px;}
89+
.laser4{background-image: url('../img/laser4.png') !important; background-repeat: no-repeat; background-position: center 20px;}
90+
.laser5{background-image: url('../img/laser5.png') !important; background-repeat: no-repeat; background-position: center 20px;}
91+
.laser6{background-image: url('../img/laser6.png') !important; background-repeat: no-repeat; background-position: center 20px;}
92+
.laser7{background-image: url('../img/laser7.png') !important; background-repeat: no-repeat; background-position: center 20px;}
93+
.laser8{background-image: url('../img/laser8.png') !important; background-repeat: no-repeat; background-position: center 20px;}
94+
.laser9{background-image: url('../img/laser9.png') !important; background-repeat: no-repeat; background-position: center 20px;}
95+
.laser10{background-image: url('../img/laser10.png') !important; background-repeat: no-repeat; background-position: center 20px;}
96+
97+
.bright-bg, .dark-bg{border-bottom: 1px solid #d1d1d1; padding:25px 0;}
98+
.bright-bg{background-color: #e0e0ee;}
99+
.dark-bg{background-color:#e0e4f1;}
100+
.border-bottom{border-bottom: 1px solid #d1d1d1;}
101+
102+
.prize-bg{background: url('../img/prize-bg.png') no-repeat; background-size: cover; background-position: center center; height: 326px; width: 100%;}
103+
.gradient{background: url('../img/gradient-bg') repeat-y;}
104+
.prize-button{text-transform: uppercase; color: #000; text-shadow: 1px 0 #fff; float:right; background: url('../img/prize-button.png') no-repeat; width: 300px; height: 70px; padding-top:135px; font-size: 16px; padding-left: 75px; margin-top: 25px; margin-right: 145px;}
105+
106+
.footer{background: #e0e4f1 url('../img/footer-bg.jpg') no-repeat; background-size: cover; width:100%; height: 425px; bottom:0; color:#fff; text-shadow: 1px 1px 0 #000; line-height: 1.25em; font-size: 15px;}
107+
.photonstorm-logo{background: url('../img/photonstorm-logo.png') no-repeat; background-size: cover; display: block;clear:both; width:113px;height:15px; margin-bottom: 6px;}
108+
.flixel-logo{display:block; clear:both; width:26px; height:50px; background: url('../img/flixel-logo.png') no-repeat;}
109+
.forums-icon, .twitter-icon, .github-icon{background: url('../img/forums-icon.png') no-repeat; vertical-align: middle; padding-left: 68px; height: 35px; display: inline-block; padding-top: 25px;}
110+
.twitter-icon{background: url('../img/twitter-icon.png') no-repeat;}
111+
.github-icon{background: url('../img/github-icon.png') no-repeat;}
112+
113+
.footer > .main-container > .line{margin-top: 270px;}
114+
115+
ul.footer-links{list-style-type: none; width:100%; clear:both; padding:0; margin:0; float:right; margin-top: -20px;}
116+
ul.footer-links > li{display: inline-block; padding:0; margin:0; float:right;}
117+
118+
119+
.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;}
120+
.game-screen{display:block; clear:both; width:800px;height:600px;margin:0;}
121+
.game-controls{display:block; width:100%; height:80px; margin:0; padding:0;background: url('../img/game-controls-bg.jpg') repeat-x;}
122+
ul.left-controls{float:left; list-style-type: none; margin:30px 0 0 25px;padding:0; display: inline-block;}
123+
ul.left-controls > li{margin:0;padding:0; display: inline-block; vertical-align: middle;}
124+
.controls-label{display:inline-block; width:80px; height:9px; background: url('../img/controls-label.png') no-repeat;}
125+
.up-label{display: inline-block; width:11px; height: 11px; background: url('../img/up-label.png') no-repeat;}
126+
.down-label{display: inline-block; width:11px; height: 11px; background: url('../img/down-label.png') no-repeat;}
127+
.left-label{display: inline-block; width:13px; height: 11px; background: url('../img/left-label.png') no-repeat;}
128+
.right-label{display: inline-block; width:12px; height: 11px; background: url('../img/right-label.png') no-repeat;}
129+
.space-label{display: inline-block; width:64px; height: 18px; background: url('../img/space-label.png') no-repeat;}
130+
131+
ul.right-controls{float:right;list-style-type: none; padding:0; display: inline-block; margin: 15px 25px 0 0;}
132+
ul.right-controls > li{margin:0;padding:0; display: inline-block; vertical-align: middle;}
133+
.pause-button{width: 121px; height:52px; display:inline-block; background: url('../img/pause-button.png') no-repeat;}
134+
.mute-button{width: 121px; height:52px; display:inline-block; background: url('../img/mute-button.png') no-repeat;}
135+
.reset-button{width: 121px; height:52px; display:inline-block; background: url('../img/reset-button.png') no-repeat;}
136+
.pause-button:hover, .mute-button:hover, .reset-button:hover{cursor: pointer;}
137+
.filler{height: 420px;}
138+
.code-block{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;}
139+
.px800{width:800px; clear:both; display: block; margin:0 auto; line-height: 1.5em;}
140+
.gradient p{color:#333;}
141+
142+
@media only screen and (max-width: 1235px), only screen and (max-device-width: 1235px){
143+
ul.nav-links{min-width:100% !important;}
144+
ul.nav-links > li{display: inline-block;}
145+
}
146+
@media only screen and (max-width: 1120px), only screen and (max-device-width: 1120px){
147+
.footer .box20, .footer .box55, .footer .box15{display: block; clear:both; margin:10px auto; text-align: center; float:none;}
148+
.footer .box5{display:none;}
149+
.photonstorm-logo{margin:10px auto;}
150+
.footer .box55{width:100%; float:none; margin:10px auto;}
151+
.footer ul.footer-links{width:100%;}
152+
.footer ul.footer-links > li{float:none;}
153+
.footer > .main-container > .line{margin-top: 125px;}
154+
}
155+
@media only screen and (max-width: 1020px), only screen and (max-device-width: 1020px){
156+
.phaser-logo{display:none;}
157+
.header{margin-bottom: -350px;}
158+
p.title, p.count-examples{text-align: center;}
159+
.box20, .box60{min-width:100% !important; clear:both; width: 100% !important; max-width: 100% !important; text-align: center;}
160+
a.prize-button{margin:0 auto; float:none;display:block;}
161+
.prize-bg{background: transparent;}
162+
}
163+
@media only screen and (max-width: 810px), only screen and (max-device-width: 810px){
164+
.main-container{width:100%;}
165+
}

examples/html/demo.html

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
2+
<head>
3+
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
4+
<script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'></script>
5+
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
6+
<script src='./js/application.js' type='text/javascript'></script>
7+
<link href='./css/stylesheet.css' media='screen' rel='stylesheet' type='text/css'>
8+
</head>
9+
<body>
10+
<div class="header">
11+
<div class="box100 no-padding">
12+
<div class="phaser-version">
13+
<span>Phaser Version: 1.0.6</span>
14+
<a href="#" class="version-button">Update to 1.0.7</a>
15+
</div>
16+
</div>
17+
<div class="clear"></div>
18+
<div class="line">
19+
<div class="box20">
20+
<ul class="nav-links">
21+
<li class="link-home"><a href="#">Back to examples</a></li>
22+
</ul>
23+
</div>
24+
<div class="box60 txt-center">
25+
<span class="main-title">Starstruck</span>
26+
</div>
27+
<div class="box20">
28+
<div class="phaser-logo"></div>
29+
</div>
30+
</div>
31+
<div class="game-panel centered">
32+
<img src="./img/screenshot.jpg" alt="" class="game-screen"/>
33+
<div class="game-controls">
34+
<ul class="left-controls">
35+
<li class="controls-label"></li>
36+
<li class="up-label"></li>
37+
<li class="down-label"></li>
38+
<li class="left-label"></li>
39+
<li class="right-label"></li>
40+
<li class="space-label"></li>
41+
</ul>
42+
<ul class="right-controls">
43+
<li class="pause-button"></li>
44+
<li class="mute-button"></li>
45+
<li class="reset-button"></li>
46+
</ul>
47+
</div>
48+
</div>
49+
</div>
50+
51+
<div class="clear filler"></div>
52+
<div class="gradient helvetica">
53+
<p class="centered px800">Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. </p>
54+
<p class="centered px800">Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna. </p>
55+
<pre class="code-block prettyprint centered">
56+
var Phaser;
57+
(function (Phaser) {
58+
var Basic = (function () {
59+
function Basic(game) {
60+
this.name = 'Space Harrier';
61+
this._game = game;
62+
this.ID = -1;
63+
this.exists = true;
64+
this.active = true;
65+
}
66+
Basic.prototype.destroy =
67+
function () {
68+
};
69+
// Code Comment
70+
Basic.prototype.toString =
71+
function () {
72+
return "";
73+
};
74+
return Basic;
75+
})();
76+
Phaser.Basic = Basic;
77+
})(Phaser || (Phaser = {}));
78+
</pre>
79+
<div class="clear20"></div>
80+
</div>
81+
82+
<div class="clear"></div>
83+
<div class="footer">
84+
<div class="main-container centered">
85+
<div class="clear25"></div>
86+
<div class="line">
87+
<div class="box20 helvetica">
88+
<a href="#" class="photonstorm-logo"></a>
89+
&copy; 2013 Photon Storm Ltd.<br/>
90+
All rights reserved.
91+
</div>
92+
<div class="box5">
93+
<div class="flixel-logo"></div>
94+
</div>
95+
<div class="box15 helvetica">
96+
Looking for a flash game framework?<br/>
97+
<a href="#">Try flixel!</a>
98+
</div>
99+
<div class="box55 helvetica float-right">
100+
<ul class="footer-links">
101+
<li><a class="forums-icon" href="#">Phaser Forums</a></li>
102+
<li><a class="twitter-icon" href="#">@Photonstorm</a></li>
103+
<li><a class="github-icon" href="#">Phaser on Github</a></li>
104+
</ul>
105+
</div>
106+
</div>
107+
</div>
108+
</div>
109+
</body>
110+
</html>
27.6 KB
Binary file not shown.
18.8 KB

examples/html/img/down-label.png

17.9 KB

examples/html/img/flixel-logo.png

17.8 KB

examples/html/img/footer-bg.jpg

192 KB

examples/html/img/forums-icon.png

21.2 KB
11.5 KB

0 commit comments

Comments
 (0)