Permalink
Browse files

Initial commit of HTML5 Emberwind to github from internal repo.

  • Loading branch information...
0 parents commit 60a26405c9928cbaacc2c6742d63903b807accbe @emoller emoller committed Aug 4, 2011
Showing with 138,039 additions and 0 deletions.
  1. BIN icon_114x114.png
  2. BIN icon_57x57.png
  3. BIN icon_72x72.png
  4. +122 −0 index.html
  5. BIN resources/atlas/backgrounds/cave0.png
  6. BIN resources/atlas/backgrounds/cave0_scale1.png
  7. BIN resources/atlas/backgrounds/cave1.png
  8. BIN resources/atlas/backgrounds/cave1_scale1.png
  9. BIN resources/atlas/backgrounds/cave2.png
  10. BIN resources/atlas/backgrounds/cave2_scale1.png
  11. BIN resources/atlas/backgrounds/outer0.png
  12. BIN resources/atlas/backgrounds/outer0_scale1.png
  13. BIN resources/atlas/backgrounds/outer1.png
  14. BIN resources/atlas/backgrounds/outer1_scale1.png
  15. BIN resources/atlas/backgrounds/outer2.png
  16. BIN resources/atlas/backgrounds/outer2_scale1.png
  17. BIN resources/atlas/backgrounds/windmill.png
  18. BIN resources/atlas/backgrounds/windmill_scale1.png
  19. BIN resources/atlas/foes/bandit.png
  20. BIN resources/atlas/foes/banditburnt.png
  21. BIN resources/atlas/foes/bouncer.png
  22. BIN resources/atlas/foes/bouncerburnt.png
  23. BIN resources/atlas/foes/guard.png
  24. BIN resources/atlas/foes/guardburnt.png
  25. BIN resources/atlas/foes/scout.png
  26. BIN resources/atlas/foes/scoutburnt.png
  27. BIN resources/atlas/foes/soup.png
  28. BIN resources/atlas/foes/soupburnt.png
  29. BIN resources/atlas/foes/warrior.png
  30. BIN resources/atlas/foes/warriorburnt.png
  31. BIN resources/atlas/friends/wick.png
  32. BIN resources/atlas/game/battle_text.png
  33. BIN resources/atlas/game/block_effect.png
  34. BIN resources/atlas/game/brownie_houses.png
  35. BIN resources/atlas/game/bubble.png
  36. BIN resources/atlas/game/bullrush.png
  37. BIN resources/atlas/game/cave_entrances.png
  38. BIN resources/atlas/game/chest_pieces.png
  39. BIN resources/atlas/game/coins.png
  40. BIN resources/atlas/game/entrance_boarded.png
  41. BIN resources/atlas/game/entrance_bricks.png
  42. BIN resources/atlas/game/entrance_rocks.png
  43. BIN resources/atlas/game/fairystone.png
  44. BIN resources/atlas/game/flame.png
  45. BIN resources/atlas/game/force_dash_right.png
  46. BIN resources/atlas/game/gremlinbasket.png
  47. BIN resources/atlas/game/gremship.png
  48. BIN resources/atlas/game/hiteffect.png
  49. BIN resources/atlas/game/knife.png
  50. BIN resources/atlas/game/lamp_post.png
  51. BIN resources/atlas/game/laze_sparkle.png
  52. BIN resources/atlas/game/lightshapes.png
  53. BIN resources/atlas/game/magic_acorn.png
  54. BIN resources/atlas/game/pickup_effects.png
  55. BIN resources/atlas/game/pickups.png
  56. BIN resources/atlas/game/stalactites.png
  57. BIN resources/atlas/game/statues.png
  58. BIN resources/atlas/game/timetrap.png
  59. BIN resources/atlas/game/tornado.png
  60. BIN resources/atlas/game/trees.png
  61. BIN resources/atlas/game/water.png
  62. BIN resources/atlas/game/water_splash.png
  63. BIN resources/atlas/game/weepingwillow.png
  64. BIN resources/atlas/game/windmill_vane.p16
  65. BIN resources/atlas/game/windmill_vane.png
  66. BIN resources/atlas/gui/btn_canvas.png
  67. BIN resources/atlas/gui/btn_canvas_disabled.png
  68. BIN resources/atlas/gui/btn_webgl.png
  69. BIN resources/atlas/gui/button.png
  70. BIN resources/atlas/gui/character_icons.png
  71. BIN resources/atlas/gui/controls_iphone.png
  72. BIN resources/atlas/gui/controls_iphone_button_escape.png
  73. BIN resources/atlas/gui/controls_xbox.png
  74. BIN resources/atlas/gui/controls_xbox_large.png
  75. BIN resources/atlas/gui/crystal.png
  76. BIN resources/atlas/gui/devheads.png
  77. BIN resources/atlas/gui/floating_points.png
  78. BIN resources/atlas/gui/frame.png
  79. BIN resources/atlas/gui/generic_background.png
  80. BIN resources/atlas/gui/healthbar.png
  81. BIN resources/atlas/gui/house_display.png
  82. BIN resources/atlas/gui/idols_brownie.png
  83. BIN resources/atlas/gui/kindle_icons.png
  84. BIN resources/atlas/gui/opera_logo.png
  85. BIN resources/atlas/gui/score_tally_items.png
  86. BIN resources/atlas/gui/stage_banner.png
  87. BIN resources/atlas/gui/textbubble.png
  88. BIN resources/atlas/gui/titlescreen0.png
  89. BIN resources/atlas/gui/titlescreen2.png
  90. BIN resources/atlas/gui/titlescreen_kindle_eyes.png
  91. BIN resources/atlas/gui/titlescreen_wick_eyes.png
  92. BIN resources/atlas/gui/titletext_html5.png
  93. BIN resources/atlas/hero/kindle.png
  94. BIN resources/atlas/hero/kindle_barrel.png
  95. BIN resources/atlas/hero/kindle_flurry.png
  96. BIN resources/atlas/hero/kindle_jumpattack.png
  97. BIN resources/atlas/hero/kindle_sprint.png
  98. BIN resources/atlas/hero/kindle_swing.png
  99. BIN resources/atlas/no_c_red/attackeffect.png
  100. BIN resources/atlas/no_c_red/kindle_tally.png
  101. BIN resources/atlas/no_c_red/kindle_tally_upgrade.png
  102. BIN resources/atlas/no_c_red/lamp_post_lit.png
  103. BIN resources/atlas/no_c_red/mushrooms.png
  104. BIN resources/atlas/no_c_red/particles.png
  105. BIN resources/atlas/no_c_red/storyboardintro.png
  106. BIN resources/atlas/no_c_red/titlescreen1.png
  107. BIN resources/atlas/no_c_red/titlescreen3.png
  108. BIN resources/atlas/no_c_red/titlescreen4.png
  109. BIN resources/atlas/no_c_red/titletext.png
  110. BIN resources/atlas/storyboards/storyboard1.png
  111. BIN resources/atlas/storyboards/storyboard2.png
  112. BIN resources/atlas/storyboards/storyboard3.png
  113. BIN resources/atlas/storyboards/storyboard4.png
  114. BIN resources/atlas/tilesets/GremShipBackground.png
  115. BIN resources/atlas/tilesets/castle.png
  116. BIN resources/atlas/tilesets/cleanup.png
  117. BIN resources/atlas/tilesets/indoors.png
  118. BIN resources/atlas/tilesets/outer.png
  119. BIN resources/atlas/tilesets/urban.png
  120. BIN resources/atlas/tilesets/water.png
  121. BIN resources/audio/music.m4a
  122. BIN resources/audio/music.mp3
  123. BIN resources/audio/music.ogg
  124. BIN resources/audio/music.wav
  125. BIN resources/audio/sfx.m4a
  126. BIN resources/audio/sfx.mp3
  127. BIN resources/audio/sfx.ogg
  128. BIN resources/audio/sfx.wav
  129. +116,008 −0 resources/emberwind.json
  130. BIN resources/localized/english/Copyright.png
  131. BIN resources/localized/english/ObjectiveArrows.png
  132. +260 −0 src/Animation.js
  133. +533 −0 src/App.js
  134. +869 −0 src/AppStates.js
  135. +448 −0 src/Audio.js
  136. +592 −0 src/CaveEntrance.js
  137. +504 −0 src/Collision.js
  138. +296 −0 src/Common.js
  139. +281 −0 src/FSM.js
  140. +503 −0 src/GUIButtons.js
  141. +1,226 −0 src/GUIHeadsUp.js
  142. +719 −0 src/Game.js
  143. +619 −0 src/GameObjects.js
  144. +1,144 −0 src/Gremlin.js
  145. +740 −0 src/GremlinStates.js
  146. +612 −0 src/HittableObject.js
  147. +341 −0 src/House.js
  148. +523 −0 src/Input.js
  149. +928 −0 src/Movement.js
  150. +945 −0 src/PCStates.js
  151. +110 −0 src/ParticleSystem.js
  152. +81 −0 src/Perlin.js
  153. +564 −0 src/Pickup.js
  154. +787 −0 src/PlayerCharacter.js
  155. +173 −0 src/ResourceClasses.js
  156. +392 −0 src/ResourceDepot.js
  157. +357 −0 src/Stage.js
  158. +550 −0 src/StageClasses.js
  159. +1,046 −0 src/Trigger.js
  160. +420 −0 src/Wick.js
  161. +816 −0 src/render/Render.js
  162. +486 −0 src/render/RenderCanvas.js
  163. +1,678 −0 src/render/RenderWebGL.js
  164. +116 −0 src/render/Utils.js
  165. +1,834 −0 src/render/glMatrix.js
  166. +241 −0 src/render/shaders.xml
  167. +175 −0 src/render/webgl-utils.js
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,122 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Emberwind</title>
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0"/>
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
+ <link rel="apple-touch-icon-precomposed" href="icon_57x57.png" />
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="icon_72x72.png" />
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="icon_114x114.png" />
+
+ <link href='http://fonts.googleapis.com/css?family=Lobster&subset=latin&v2' rel='stylesheet' type='text/css'/>
+ <link href='http://fonts.googleapis.com/css?family=Allan:700&v2' rel='stylesheet' type='text/css'/>
+ <link href='http://fonts.googleapis.com/css?family=Meddon&v2' rel='stylesheet' type='text/css'/>
+
+ <script type="text/javascript" src="src/Common.js"></script>
+ <script type="text/javascript" src="src/Perlin.js"></script>
+
+ <script type="text/javascript" src="src/render/Render.js"></script>
+ <script type="text/javascript" src="src/render/RenderCanvas.js"></script>
+ <script type="text/javascript" src="src/render/RenderWebGL.js"></script>
+ <script type="text/javascript" src="src/render/Utils.js"></script>
+ <script type="text/javascript" src="src/render/glMatrix.js"></script>
+ <script type="text/javascript" src="src/render/webgl-utils.js"></script>
+
+ <script type="text/javascript" src="src/Audio.js"></script>
+ <script type="text/javascript" src="src/Animation.js"></script>
+ <script type="text/javascript" src="src/Collision.js"></script>
+ <script type="text/javascript" src="src/Movement.js"></script>
+ <script type="text/javascript" src="src/Trigger.js"></script>
+ <script type="text/javascript" src="src/ParticleSystem.js"></script>
+ <script type="text/javascript" src="src/GameObjects.js"></script>
+ <script type="text/javascript" src="src/HittableObject.js"></script>
+
+ <script type="text/javascript" src="src/PlayerCharacter.js"></script>
+ <script type="text/javascript" src="src/Gremlin.js"></script>
+ <script type="text/javascript" src="src/CaveEntrance.js"></script>
+ <script type="text/javascript" src="src/House.js"></script>
+ <script type="text/javascript" src="src/Pickup.js"></script>
+
+ <script type="text/javascript" src="src/ResourceClasses.js"></script>
+ <script type="text/javascript" src="src/ResourceDepot.js"></script>
+ <script type="text/javascript" src="src/Stage.js"></script>
+ <script type="text/javascript" src="src/StageClasses.js"></script>
+
+ <script type="text/javascript" src="src/GUIButtons.js"></script>
+ <script type="text/javascript" src="src/GUIHeadsUp.js"></script>
+ <script type="text/javascript" src="src/FSM.js"></script>
+ <script type="text/javascript" src="src/Game.js"></script>
+ <script type="text/javascript" src="src/Input.js"></script>
+ <script type="text/javascript" src="src/AppStates.js"></script>
+ <script type="text/javascript" src="src/App.js"></script>
+ <script type="text/javascript" src="src/GremlinStates.js"></script>
+ <script type="text/javascript" src="src/PCStates.js"></script>
+ <script type="text/javascript" src="src/Wick.js"></script>
+
+ <script type="text/javascript">
+ var app = null;
+
+ window.onload = function() {
+ utils.loadShaderXml("src/render/shaders.xml", null, function(shaders) {
+ if (shaders instanceof Exception) {
+ app = shaders;
+ } else {
+ try {
+ app = new App('canvas', shaders, null);
+ } catch (e) {
+ app = e;
+ }
+ }
+ });
+ };
+
+ function application() {
+ if (app == null) {
+ alert("Application is absent");
+ throw "no application";
+ } else if (app instanceof Exception) {
+ alert("An exception occured while creating the application:\n" + app.message);
+ throw app;
+ } else {
+ return app;
+ }
+ }
+ </script>
+
+ <style type="text/css">
+ body{
+ margin: 0px; padding: 0px; overflow: hidden;
+ background: #000;
+ }
+ #canvas-holder.active {
+ position: absolute;
+ padding: 0px;
+ left: 50%;
+ top: 50%;
+ }
+
+ #canvas-holder.inactive {
+ position: absolute;
+ top:50%;
+ width: 100%;
+ text-align: center;
+ }
+
+ #canvas {
+ padding: 0px;
+ width: 100%;
+ height: 100%;
+ color: #fff;
+ }
+ </style>
+</head>
+<body>
+<div id="canvas-holder" class="inactive">
+ <div id="canvas">Emberwind is loading...</div>
+</div>
+<div style="font-family: Lobster; visibility: hidden">one</div>
+<div style="font-family: Allan; visibility: hidden">two</div>
+<div style="font-family: Meddon; visibility: hidden">three</div>
+</body>
+</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 60a2640

Please sign in to comment.