mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-08 21:54:26 +02:00
before big animation implementation
This commit is contained in:
parent
5ac6b035f5
commit
b7f6bfff5a
6 changed files with 86 additions and 169 deletions
20
src/mine.js
20
src/mine.js
|
@ -2,20 +2,36 @@
|
|||
* Globals
|
||||
*/
|
||||
var events = _.clone(Backbone.Events);
|
||||
|
||||
var sys = null;
|
||||
var graphicsEffects = {};
|
||||
|
||||
var gitEngine = null;
|
||||
var gitVisuals = null;
|
||||
|
||||
var commitCollection = null;
|
||||
var commandCollection = null;
|
||||
var commandBuffer = null;
|
||||
|
||||
$(document).ready(function(){
|
||||
sys = arbor.ParticleSystem(4000, 200, 0.5, false, 55, 0.005, 'verlet');
|
||||
sys.renderer = Renderer('#viewport');
|
||||
|
||||
// the two major collections that affect everything
|
||||
commitCollection = new CommitCollection();
|
||||
commandCollection = new CommandCollection();
|
||||
|
||||
commandBuffer = new CommandBuffer({
|
||||
collection: commandCollection
|
||||
});
|
||||
|
||||
new CommandPromptView({
|
||||
el: $('#commandLineBar')
|
||||
el: $('#commandLineBar'),
|
||||
collection: commandCollection
|
||||
});
|
||||
new CommandLineHistoryView({
|
||||
el: $('#commandLineHistory')
|
||||
el: $('#commandLineHistory'),
|
||||
collection: commandCollection
|
||||
});
|
||||
|
||||
gitEngine = new GitEngine();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue