Skip to content

Commit 957caec

Browse files
author
Anthony Brooks
committed
Initial Commit
1 parent a6a8609 commit 957caec

File tree

255 files changed

+30928
-1
lines changed

Some content is hidden

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

255 files changed

+30928
-1
lines changed

DevStory.xdk

+199
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
{
2+
"project": {
3+
"projectSettingsVersion": "1.1",
4+
"creationData": {
5+
"type": "Blank Project",
6+
"createDefaultBuildConfigs": true,
7+
"projectTypeName": "com.intel.xdk.projecttype.jsapp",
8+
"src": "blankproject",
9+
"sourceDirectory": "www",
10+
"projectGuid": "1a69d090-304f-4920-bd62-9e54996c947d",
11+
"lastModifiedDate": 1408096546060,
12+
"creationDate": 1407937983850
13+
},
14+
"sourceDirectory": "",
15+
"cordovaPluginsDirectory": "plugins",
16+
"startFile": "index.html",
17+
"projectFiles": {},
18+
"projectDirectories": {},
19+
"libraries": [
20+
{
21+
"name": "Cordova",
22+
"version": "2.9.0",
23+
"data": {
24+
"default": true
25+
}
26+
},
27+
{
28+
"name": "intelXDK",
29+
"version": "4.0.0",
30+
"data": {
31+
"default": true
32+
}
33+
}
34+
],
35+
"cordovaPlugins": [
36+
{
37+
"id": "org.apache.cordova.network-information",
38+
"version": "0.2.8",
39+
"selectedState": "Included",
40+
"data": {},
41+
"paramvals": {}
42+
},
43+
{
44+
"id": "org.apache.cordova.file",
45+
"version": "0.2.5",
46+
"selectedState": "Included",
47+
"data": {},
48+
"paramvals": {}
49+
},
50+
{
51+
"id": "org.apache.cordova.media",
52+
"version": "0.2.8",
53+
"selectedState": "Included",
54+
"data": {},
55+
"paramvals": {}
56+
},
57+
{
58+
"id": "org.apache.cordova.vibration",
59+
"version": "0.3.5",
60+
"selectedState": "Included",
61+
"data": {},
62+
"paramvals": {}
63+
},
64+
{
65+
"id": "org.apache.cordova.splashscreen",
66+
"version": "0.2.5",
67+
"selectedState": "Included",
68+
"data": {},
69+
"paramvals": {}
70+
},
71+
{
72+
"id": "org.apache.cordova.inappbrowser",
73+
"version": "0.3.0",
74+
"selectedState": "Included",
75+
"data": {},
76+
"paramvals": {}
77+
},
78+
{
79+
"id": "org.apache.cordova.device",
80+
"version": "0.2.5",
81+
"selectedState": "Included",
82+
"data": {},
83+
"paramvals": {}
84+
},
85+
{
86+
"id": "com.danielcwilson.plugins.googleanalytics",
87+
"version": "",
88+
"selectedState": "Included",
89+
"data": {},
90+
"paramvals": {},
91+
"custom": "true",
92+
"name": "Analytics",
93+
"origin": "https://github.com/danwilson/google-analytics-plugin.git",
94+
"originType": "repo"
95+
}
96+
],
97+
"serviceMethods": [],
98+
"buildConfigurations": {
99+
"Android": {
100+
"platform_": "android",
101+
"name_": "Android",
102+
"preferences_": {},
103+
"isActive_": true,
104+
"appName_": "DevStory",
105+
"appID_": "not.yet.specified",
106+
"appAccess_": "*",
107+
"icons_": [],
108+
"splashes_": [],
109+
"iosProvs_": [],
110+
"addlPermissions_": "",
111+
"excludedLibraries_": "",
112+
"cordovaCLIVersion_": "3.3",
113+
"crosswalkVersion_": "stable",
114+
"appVersion_": "1.0.0",
115+
"runtime_": "Cordova 3.x"
116+
},
117+
"Android-Crosswalk": {
118+
"platform_": "android",
119+
"name_": "Android-Crosswalk",
120+
"preferences_": {
121+
"Fullscreen": true,
122+
"Orientation": "landscape",
123+
"android-minSdkVersion": "4",
124+
"android-targetedSdkVersion": "4"
125+
},
126+
"isActive_": true,
127+
"appName_": "DevStory",
128+
"appID_": "com.android.intel",
129+
"appAccess_": "*",
130+
"icons_": [],
131+
"splashes_": [],
132+
"iosProvs_": [],
133+
"addlPermissions_": "",
134+
"excludedLibraries_": "",
135+
"cordovaCLIVersion_": "3.3",
136+
"crosswalkVersion_": "beta",
137+
"appVersion_": "1.0.0",
138+
"runtime_": "Crosswalk with Cordova 3.x",
139+
"appDescription_": "DevStory",
140+
"appAuthor_": "DevStory",
141+
"appVersionCode_": "1"
142+
},
143+
"iOS": {
144+
"platform_": "ios",
145+
"name_": "iOS",
146+
"preferences_": {},
147+
"isActive_": true,
148+
"appName_": "DevStory",
149+
"appID_": "not.yet.specified",
150+
"appAccess_": "*",
151+
"icons_": [],
152+
"splashes_": [],
153+
"iosProvs_": [],
154+
"addlPermissions_": "",
155+
"excludedLibraries_": "",
156+
"cordovaCLIVersion_": "3.3",
157+
"crosswalkVersion_": "stable",
158+
"appVersion_": "1.0.0",
159+
"runtime_": "Cordova 3.x"
160+
},
161+
"Windows8": {
162+
"platform_": "windows8",
163+
"name_": "Windows8",
164+
"preferences_": {},
165+
"isActive_": true,
166+
"appName_": "DevStory",
167+
"appID_": "not.yet.specified",
168+
"appAccess_": "*",
169+
"icons_": [],
170+
"splashes_": [],
171+
"iosProvs_": [],
172+
"addlPermissions_": "",
173+
"excludedLibraries_": "",
174+
"cordovaCLIVersion_": "3.3",
175+
"crosswalkVersion_": "stable",
176+
"appVersion_": "1.0.0.0",
177+
"runtime_": "Cordova 3.x"
178+
},
179+
"WindowsPhone8": {
180+
"platform_": "wp8",
181+
"name_": "WindowsPhone8",
182+
"preferences_": {},
183+
"isActive_": true,
184+
"appName_": "DevStory",
185+
"appID_": "not.yet.specified",
186+
"appAccess_": "*",
187+
"icons_": [],
188+
"splashes_": [],
189+
"iosProvs_": [],
190+
"addlPermissions_": "",
191+
"excludedLibraries_": "",
192+
"cordovaCLIVersion_": "3.3",
193+
"crosswalkVersion_": "stable",
194+
"appVersion_": "1.0.0.0",
195+
"runtime_": "Cordova 3.x"
196+
}
197+
}
198+
}
199+
}

DevStory.xdke

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"project": {
3+
"projectSettingsVersion": "1.1",
4+
"initialAutoPluginCount": 0,
5+
"projectFiles": {},
6+
"projectDirectories": {}
7+
}
8+
}

README.md

+77-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,80 @@
11
dev-story
22
=========
3+
Dev Story/\*HACK THE CODE\*/
4+
5+
Table of Contents
6+
-----------------
7+
- [Installation](#Installation)
8+
- [What the story?](#What the story?)
9+
- [Who is this for?](#Who is this for?)
10+
- [About the Intel® XDK](#About the Intel® XDK)
11+
- [Usage](#Usage)
12+
- [Documentation](#Documentation)
13+
- [Get Involved](#Get Involved)
14+
- [Change Log](#Change Log)
15+
- [License](#License)
16+
17+
Installation
18+
------------
19+
To install, simply clone the project to your local directory
20+
21+
git clone https://github.com/IntelDevZone/dev-story.git
22+
23+
Visit the [Intel® Developer Zone](http://software.intel.com/) and download and install the [Intel® XDK](https://software.intel.com/en-us/html5/tools).
24+
25+
What the story?
26+
------------
27+
Intel challenged a small team of developers to build an open source app. They created <span>Dev Story/\*HACK THE CODE\*/</span>, a set of mini-challenges about the development cycle of an app. But it’s not finished yet.
28+
29+
We’re bringing developers together from around the world to build something special and unique. So whether you’re honing your skills or flexing your coding muscles, you can modify and shape the open source code however you choose.
30+
31+
If your code makes the cut, you’ll see it in the next update. And you’ll take the credit.
32+
33+
Who is this for?
34+
------------
35+
Anyone with experience with HTML, CSS and JavaScript.
36+
37+
Usage
38+
------------
39+
Open the DevStory.xdk project file with the [Intel® XDK](https://software.intel.com/en-us/html5/tools).
40+
41+
Enable developer mode in main.js
42+
43+
App.developer = true;
44+
45+
Preview the app in the Intel® XDK Emulate tab or [Google Chrome Emulation Mode](https://developer.chrome.com/devtools/docs/device-mode)
46+
47+
About the Intel® XDK
48+
------------
49+
[Intel® XDK](https://software.intel.com/en-us/html5/tools) provides a simplified workflow to enable developers to easily design, debug, build, and deploy HTML5 web and hybrid apps across multiple app stores, and form factor devices.
50+
51+
- Make changes to the code using the built-in IDE in the Develop tab.
52+
- Quickly preview the app in the Emulate tab
53+
- Run the app on a mobile device using the various build options under the Build tab
54+
55+
Documentation & futher reading
56+
------------
57+
**Panda.js** - [[Documentation](http://www.pandajs.net/docs/)] - [[Forums](http://www.html5gamedevs.com/forum/19-pandajs/)]
58+
59+
**Pixi.js** - [[Documentation](http://www.goodboydigital.com/pixijs/docs/)] - [[Forums](http://www.html5gamedevs.com/forum/15-pixijs/)]
60+
61+
**Intel® Developer Zone** - [[Forums](https://software.intel.com/en-us/forums/html5-application-development)]
62+
63+
<!--**Dev Story blog** - [[Read the full story]()]-->
64+
65+
Get Involved
66+
------------
67+
Want to be part of Dev Story/\*HACK THE CODE\*/? We want you to take the reins (and the credit). Here's how.
68+
69+
Build your new levels, mini challenges and mods. Share your ideas with us. If any of them make it into version 2.0, you’ll get the credit!
70+
71+
Don't forget to register at the [Intel® Developer Zone](http://software.intel.com/)
72+
73+
We can’t wait to see what you create.
74+
75+
Change Log
76+
------------
77+
78+
License
79+
------------
380

4-
Dev Story/*HACK THE CODE*/

css/style.css

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* line 17, ../../../Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
2+
html, body, div, span, applet, object, iframe,
3+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
4+
a, abbr, acronym, address, big, cite, code,
5+
del, dfn, em, img, ins, kbd, q, s, samp,
6+
small, strike, strong, sub, sup, tt, var,
7+
b, u, i, center,
8+
dl, dt, dd, ol, ul, li,
9+
fieldset, form, label, legend,
10+
table, caption, tbody, tfoot, thead, tr, th, td,
11+
article, aside, canvas, details, embed,
12+
figure, figcaption, footer, header, hgroup,
13+
menu, nav, output, ruby, section, summary,
14+
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; }
15+
html { line-height: 1; }
16+
ol, ul { list-style: none; }
17+
table { border-collapse: collapse; border-spacing: 0; }
18+
caption, th, td { text-align: left; font-weight: normal; vertical-align: middle; }
19+
q, blockquote { quotes: none; }
20+
q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none; }
21+
a img { border: none; }
22+
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { display: block; }
23+
*, *:before, *:after {
24+
-webkit-box-sizing: border-box;
25+
-moz-box-sizing: border-box;
26+
box-sizing: border-box;
27+
}
28+
29+
30+
/******************************
31+
** Your styles
32+
******************************/
33+
html { height: 100%; background: #0074c5 url(../media/splash/splash_en.png) no-repeat center; background-size:contain; }
34+
body { height: 100%; background: url(../media/splash/page.png) no-repeat top right; color: #fff; text-align: center; font-size: 100%; font-weight: 200; font-family: sans-serif; line-height: 1.48; }
35+
a { color: #fff; text-decoration: none; font-size: 0.9em; padding:0.5em 0.25em; }
36+
#splash { position: absolute; top:0; left:0; width:100%; height: 100%; z-index: 100; }
37+
#splash #arrow { background: url(../media/splash/arrow_forward.png) bottom right no-repeat; width:32px; height: 32px; background-size:cover; position: absolute; bottom:1em; right:1em; }
38+
#log { font-size: 0.9em; }

index.html

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<!DOCTYPE html><!--HTML5 doctype-->
2+
<html>
3+
<head>
4+
<title>Intel Android</title>
5+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
7+
<link href="css/style.css" rel="stylesheet" type="text/css" />
8+
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
9+
<script type="text/javascript">
10+
if("lockOrientation" in window.screen) {
11+
window.screen.lockOrientation("landscape");
12+
}
13+
function onDeviceReady(){
14+
15+
//window.device_name = device.name;
16+
//window.device_cordova = device.cordova;
17+
//window.device_platform = device.platform;
18+
//window.device_uuid = device.uuid;
19+
//window.device_version = device.version;
20+
21+
navigator.splashscreen.hide();
22+
23+
if(typeof analytics !== "undefined") {
24+
25+
analytics.startTrackerWithId("#GA-ID#");
26+
27+
if(typeof analytics !== "undefined") {
28+
29+
analytics.setUserId(device.uuid);
30+
31+
}
32+
}
33+
34+
}
35+
document.addEventListener("deviceready", onDeviceReady, false);
36+
</script>
37+
<script type="text/javascript" src="src/plugins/modernizr-2.5.3.min.js"></script>
38+
</head>
39+
<body>
40+
41+
<div id="splash">
42+
<div id="arrow"></div>
43+
</div>
44+
45+
<div id="log" style="position:fixed; bottom:0; right:0; background:#000; color:#fff; z-index:1000; display:none;">Log</div>
46+
<div id="actions" style="position:fixed; bottom:0; left:0; background:#000; color:#fff; z-index:1000; display:none;">
47+
<a id="clear" href="javascript:void(0);" >ClrMem</a>
48+
<a id="restart" href="javascript:void(0);">Restart</a>
49+
<a id="outro" href="javascript:void(0);" >Outro</a>
50+
<a id="prev" href="javascript:void(0);">Prev</a>
51+
<a id="next" href="javascript:void(0);">Next</a>
52+
</div>
53+
54+
<script type="text/javascript" src="src/plugins/jquery-1.10.0.min.js"></script>
55+
<script type="text/javascript" src="src/plugins/plugins.min.js"></script>
56+
<script type="text/javascript" src="src/game/config.js"></script>
57+
<script type="text/javascript" src="src/engine/core.js"></script>
58+
<script type="text/javascript" src="src/game/main.js"></script>
59+
</body>
60+
</html>

intelxdk.config.android.xml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:intelxdk="http://xdk.intel.com/ns/v1" id="not.yet.specified" version="1.0.0"><!--This file is generated by the Intel XDK. Do not edit this file as your edits will be lost. --><!--To change the contents of this file, see the documentation on the intelxdk.config.additions.xml file.--><intelxdk:version value="1.0"/><intelxdk:cordova-cli version="3.3"/><name>DevStory</name><content src="index.html"/><access origin="*"/><intelxdk:plugin intelxdk:name="Connection" intelxdk:value="org.apache.cordova.network-information" intelxdk:version="0.2.8"/><intelxdk:plugin intelxdk:name="File" intelxdk:value="org.apache.cordova.file" intelxdk:version="0.2.5"/><intelxdk:plugin intelxdk:name="Media" intelxdk:value="org.apache.cordova.media" intelxdk:version="0.2.8"/><intelxdk:plugin intelxdk:name="Vibration (notification)" intelxdk:value="org.apache.cordova.vibration" intelxdk:version="0.3.5"/><intelxdk:plugin intelxdk:name="SplashScreen" intelxdk:value="org.apache.cordova.splashscreen" intelxdk:version="0.2.5"/><intelxdk:plugin intelxdk:name="In App Browser" intelxdk:value="org.apache.cordova.inappbrowser" intelxdk:version="0.3.0"/><intelxdk:plugin intelxdk:name="Device" intelxdk:value="org.apache.cordova.device" intelxdk:version="0.2.5"/><intelxdk:plugin intelxdk:name="Analytics" intelxdk:value="https://github.com/danwilson/google-analytics-plugin.git"/></widget>

0 commit comments

Comments
 (0)