Sha256: 4a82cbb7abb0b9c8167896cc36a16d0385d01c1fcfa92c8fc6f64ee7a54715d7

Contents?: true

Size: 396 Bytes

Versions: 8

Compression:

Stored size: 396 Bytes

Contents

re.scene('load')
.enter(function(){
  
  re.tile.sizeX = re.tile.sizeY = 25;
  
  re.sys.clearColor = '#D6F8FA';
  
  //setup gravity
  re.force.graY = 30 * re.sys.stepSize;
  
  re.load(re.assets)
  .complete(function(){
    
    //move to home
    re.scene('home').enter();
  })
  .error(function(e){
    
  })
  .progress(function(i){
    
  });
  
})
.exit(function(){
  //exit load scene
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
entityjs-0.4.4 templates/platform/scripts/scenes/load.js
entityjs-0.4.3 templates/platform/scripts/scenes/load.js
entityjs-0.4.2 templates/platform/scripts/scenes/load.js
entityjs-0.4.1 templates/platform/scripts/scenes/load.js
entityjs-0.4.0 templates/platform/scripts/scenes/load.js
entityjs-0.3.2 templates/platform/scripts/scenes/load.js
entityjs-0.3.1 templates/platform/scripts/scenes/load.js
entityjs-0.3.0 templates/platform/scripts/scenes/load.js