This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Timer = cc.Class.extend | |
| ctor : -> | |
| @_startTime = 0 | |
| @_pauseTime = 0 | |
| start : -> @_startTime = new Date() | |
| get : -> | |
| if @_startTime | |
| ((new Date() - @_startTime) + @_pauseTime) / 1000 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | res = require('./resource').res | |
| GameLayer = cc.Layer.extend | |
| ctor : -> | |
| @_super() | |
| @_addBg() | |
| size = cc.winSize | |
| helloLabel = new cc.LabelTTF "Hello World", "Arial", 38 | |
| helloLabel.x = size.width / 2 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | res = | |
| noteImage : "res/note.png" | |
| destImage : "res/dest.png" | |
| bgImage : "res/bg.jpg" | |
| music : "res/Ouroboros.mp3" | |
| coverImage : "res/cover.jpg" | |
| resources = [] | |
| resources.push v for k, v of res | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | res = require('./resource').res | |
| resources = require('./resource').resources | |
| cc.game.onStart = -> | |
| GameScene = require './app' | |
| if not cc.sys.isNative and document.getElementById "cocosLoading" | |
| document.body.removeChild(document.getElementById "cocosLoading") | |
| cc.view.enableRetina off | |
| cc.view.adjustViewPort on | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | HelloWorldLayer = cc.Layer.extend | |
| sprite : null | |
| ctor : -> | |
| @_super() | |
| size = cc.winSize | |
| helloLabel = new cc.LabelTTF "Hello World", "Arial", 38 | |
| helloLabel.x = size.width / 2 | |
| helloLabel.y = size.height / 2 | |
| @addChild helloLabel, 5 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | gulp = require 'gulp' | |
| coffee = require 'gulp-coffee' | |
| watchify = require 'gulp-watchify' | |
| watching = false | |
| gulp.task 'enable-watch-mode', -> watching = true | |
| gulp.task 'build:coffee', -> | |
| gulp.src './src/*.coffee' | |
| .pipe coffee() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Layer = cc.Layer.extend | |
| ctor : -> | |
| @_super() | |
| cc.eventManager.addListener | |
| event : cc.EventListener.TOUCH_ONE_BY_ONE | |
| swallowTouches : true | |
| onTouchBegan : @onTouchBegan.bind this | |
| , this | |
| onTouchBegan : (touch, event)-> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | res = | |
| textureImage : "res/particle_texture.png" | |
| texturePlist : "res/particle_texture.plist" | |
| resources = [] | |
| resources.push v for k, v of res | |
| module.exports = | |
| res : res | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Layer = cc.Layer.extend | |
| ctor : -> | |
| @_super() | |
| size = cc.director.getWinSize() | |
| emitter = new cc.ParticleSystem Res.texturePlist | |
| emitter.x = size.width / 2 | |
| emitter.y = size.height / 2 | |
| @addChild emitter | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | res = | |
| textureImage : "res/particle_texture.png" | |
| texturePlist : "res/particle_texture.plist" |