Commit 74794d9a by Sanya

меняла уровень, Ключ теперь может открывать разные зоны (задаётся в редакторе)

parent dd51bf73
node_modules/* node_modules/*
package-lock.json package-lock.json
.idea/*
\ No newline at end of file
This diff is collapsed. Click to expand it.
...@@ -324,7 +324,7 @@ GameObject.prototype = { ...@@ -324,7 +324,7 @@ GameObject.prototype = {
visible: true, visible: true,
opacity: 1, opacity: 1,
say: function( sentence, duration) { say: function( sentence, duration) {
duration = duration || sentence.length/8; duration = duration || sentence.length/16;
var actions = []; var actions = [];
sentence = sentence.split('\n'); sentence = sentence.split('\n');
......
class Key extends GameObject { class Key extends GameObject {
step(dt, tfs){ step(dt, tfs){
if(this.collide(Player)){ if(this.collide(Player)){
var hole = this.getItem( Zone, { Name: 'Hole' } ); var hole = this.getItem( Zone, { Name: this.AttachedZone } );
this.startTime = tfs; this.startTime = tfs;
hole.animate( 'hideWall', function( progress ){ hole.animate( 'hideWall', function( progress ){
if(progress === 0){ if(progress === 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment