Skip to content

Commit

Permalink
add in support for harmony transpiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Squeakrats committed Feb 6, 2016
1 parent 0399a7c commit 186abc6
Show file tree
Hide file tree
Showing 18 changed files with 530 additions and 54 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
node_modules/
dist/*
.DS_Store
.sublime-workspace
build.js
tmp/
bower_components/
dist/



349 changes: 349 additions & 0 deletions CruftEngine.sublime-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,349 @@
{
"auto_complete":
{
"selected_items":
[
[
"as",
"async"
],
[
"Ad",
"addEventListener"
]
]
},
"buffers":
[
{
"file": "index.js",
"settings":
{
"buffer_size": 0,
"line_ending": "Unix"
}
},
{
"contents": "",
"file": "Gulpfile.js",
"file_size": -1,
"file_write_time": -1,
"settings":
{
"buffer_size": 0,
"line_ending": "Unix"
}
},
{
"file": "game/TESTFILE.json",
"settings":
{
"buffer_size": 0,
"line_ending": "Unix"
}
},
{
"file": "game/index.html",
"settings":
{
"buffer_size": 0,
"line_ending": "Unix"
}
},
{
"file": "package.json",
"settings":
{
"buffer_size": 0,
"line_ending": "Unix"
}
}
],
"build_system": "",
"command_palette":
{
"height": 102.0,
"selected_items":
[
[
"instal",
"Package Control: Install Package"
],
[
"insta",
"Package Control: Install Package"
]
],
"width": 435.0
},
"console":
{
"height": 132.0
},
"distraction_free":
{
"menu_visible": true,
"show_minimap": false,
"show_open_files": false,
"show_tabs": false,
"side_bar_visible": false,
"status_bar_visible": false
},
"file_history":
[
"/home/yusef/Documents/dev/cruft/game/engine/package.json",
"/home/yusef/Documents/dev/cruft/game/engine/core/http.js",
"/home/yusef/Documents/dev/cruft/game/engine/core/Cache.js",
"/home/yusef/Documents/dev/cruft/game/dist/main.js",
"/home/yusef/Documents/dev/cruft/game/main.js",
"/home/yusef/Documents/dev/cruft/game/engine/core/Pipeline.js",
"/home/yusef/Documents/dev/cruft/game/engine/core/AssetPlugin.js",
"/home/yusef/Documents/dev/cruft/package.json",
"/home/yusef/Documents/dev/cruft/game/js/main.js",
"/home/yusef/Documents/dev/cruft/main.js",
"/home/yusef/Documents/dev/cruft/game/js/dist/bundle.js/main.js",
"/home/yusef/Documents/dev/cruft/Gulpfile.js",
"/home/yusef/Documents/dev/cruft/index.js",
"/home/yusef/Documents/dev/cruft/engine/core/Emitter.js",
"/home/yusef/Documents/dev/cruft/engine/core/http.js",
"/home/yusef/Documents/dev/cruft/engine/core/Cache.js",
"/home/yusef/Documents/dev/cruft/engine/core/Actor.js",
"/home/yusef/Documents/dev/cruft/example/index.js",
"/home/yusef/Documents/dev/cruft/example/public/js/main.js",
"/home/yusef/Documents/dev/cruft/example/public/index.html",
"/home/yusef/Documents/dev/cruft/CruftEngine.sublime-workspace",
"/home/yusef/Documents/dev/cruft/engine/core/util.js",
"/home/yusef/Documents/dev/cruft/CruftEngine.sublime-project",
"/home/yusef/Documents/dev/cruft/.gitignore"
],
"find":
{
"height": 37.0
},
"find_in_files":
{
"height": 0.0,
"where_history":
[
]
},
"find_state":
{
"case_sensitive": false,
"find_history":
[
".\n"
],
"highlight": true,
"in_selection": false,
"preserve_case": false,
"regex": false,
"replace_history":
[
],
"reverse": false,
"show_context": true,
"use_buffer2": true,
"whole_word": false,
"wrap": true
},
"groups":
[
{
"selected": 1,
"sheets":
[
{
"buffer": 0,
"file": "index.js",
"settings":
{
"buffer_size": 0,
"regions":
{
},
"selection":
[
[
0,
0
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage"
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 1,
"file": "Gulpfile.js",
"settings":
{
"buffer_size": 0,
"regions":
{
},
"selection":
[
[
0,
0
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage"
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 2,
"file": "game/TESTFILE.json",
"settings":
{
"buffer_size": 0,
"regions":
{
},
"selection":
[
[
0,
0
]
],
"settings":
{
"syntax": "Packages/JavaScript/JSON.tmLanguage"
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 3,
"file": "game/index.html",
"settings":
{
"buffer_size": 0,
"regions":
{
},
"selection":
[
[
0,
0
]
],
"settings":
{
"syntax": "Packages/HTML/HTML.tmLanguage"
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 4,
"file": "package.json",
"settings":
{
"buffer_size": 0,
"regions":
{
},
"selection":
[
[
0,
0
]
],
"settings":
{
"syntax": "Packages/JavaScript/JSON.tmLanguage",
"tab_size": 2,
"translate_tabs_to_spaces": true
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
}
]
}
],
"incremental_find":
{
"height": 0.0
},
"input":
{
"height": 34.0
},
"layout":
{
"cells":
[
[
0,
0,
1,
1
]
],
"cols":
[
0.0,
1.0
],
"rows":
[
0.0,
1.0
]
},
"menu_visible": true,
"replace":
{
"height": 0.0
},
"save_all_on_build": true,
"select_file":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"select_project":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"show_minimap": true,
"show_open_files": false,
"show_tabs": true,
"side_bar_visible": true,
"side_bar_width": 150.0,
"status_bar_visible": true
}
22 changes: 22 additions & 0 deletions engine/core/Cache.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Pipline from "./Pipeline";
import http from "http";

export default class Cache {
constructor() {
this.assets = {};
this.plugins = [];
}

get(url){
return new Promise((resolve, reject) => {
var assets = this.assets;
if(assets[url] !== undefined){
resolve(assets[url]);
return;
}

//#TODO

})
}
}
5 changes: 5 additions & 0 deletions engine/core/Pipeline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default class Pipeline {
constructor() {

}
}
3 changes: 3 additions & 0 deletions engine/graphics/Geometry.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

import Actor from "engine/core/Actor";

export default class Geometry {
constructor() {
this.vertices = null;
Expand Down
Loading

0 comments on commit 186abc6

Please sign in to comment.