Permalink
Browse files

Removed ascend from the engine. Moved the main file into the root of …

…the project folder.
  • Loading branch information...
1 parent 2750d0c commit 44e0d6955ad133d1f3540922a9b981c2843b2afe Robert Hurst committed Apr 9, 2012
View
@@ -1,109 +0,0 @@
-(function() {
-
- //create the engine
- var engine = RedLocomotive({
- "baseUrl": '../'
- });
-
- //get the config
- engine.on('ready', function() {
- engine.fetch.json('config.json').on('success', function(config) {
- Ascend(config);
- });
- });
-
- /**
- * Ascend Class
- * @param config
- */
- function Ascend(config) {
- var menus;
-
- //log the config
- log('System Config', config);
-
- //create the menus
- menus = Menus();
-
- /**
- * Outputs a message
- */
- function log( ) {
- var args;
-
- args = Array.prototype.slice.apply(arguments);
-
- if(config.dev && typeof console === 'object' && typeof console.log === 'function') {
- args.unshift('ᚕ᚜ Ascend ᚛ᚕ -');
- args.push('- (' + (new Date).toTimeString() + ')');
- console.log.apply(console, args);
- }
- }
-
- }
-
- /**
- * Menus Class
- */
- function Menus() {
- var api, ui;
-
- ui = UI();
-
- api = {
- "main": MainMenu
- };
-
- return api;
-
- /**
- * Creates the main menu
- */
- function MainMenu() {
- var api, buttons, buttonSprite;
-
- //create the buttons object
- buttons = {};
-
- //create the button sprite
- buttonSprite = engine.spriteSheet();
-
- //create the buttons
- buttons.newGame = ui.button({
- "label": 'New Game',
- "font-family": "Helvetica, Arial, sans-serif",
- "font-size": 24,
- "text-align": "center",
- "sprite": buttonSprite
- });
-
- api = {
- "clear": clear
- };
-
- return api;
-
- /**
- * Clears the menu
- */
- function clear() {
-
- }
- }
- }
-
- /**
- * UI Class
- */
- function UI() {
-
- /**
- * Creates a button
- * @param text
- */
- function button(text) {
-
- }
-
- }
-})();

Large diffs are not rendered by default.

Oops, something went wrong.
Deleted file not rendered
Deleted file not rendered
View
@@ -1,4 +0,0 @@
-{
- "version": "0.0.1",
- "dev": true
-}
View
@@ -1,24 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en-US">
-<head>
- <meta charset="UTF-8">
- <title>Design and build the tower of your dreams - Ascend - The Tower Simulator</title>
- <script type="text/javascript" src="lib/origin.js"></script>
- <script type="text/javascript" src="../red-locomotive/red-locomotive.js"></script>
- <script type="text/javascript" src="ascend.js"></script>
- <meta name="viewport" content="user-scalable=no,width=device-width" />
-
- <style type="text/css">
- body {
- margin: 0;
- overflow: hidden;
- }
- canvas {
- width: 100%;
- height: 100%;
- }
- </style>
-</head>
-<body>
-</body>
-</html>
Oops, something went wrong.

0 comments on commit 44e0d69

Please sign in to comment.