Commit 74794d9a by Sanya

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

parent dd51bf73
node_modules/*
package-lock.json
\ No newline at end of file
package-lock.json
.idea/*
\ No newline at end of file
This diff is collapsed. Click to expand it.
......@@ -324,7 +324,7 @@ GameObject.prototype = {
visible: true,
opacity: 1,
say: function( sentence, duration) {
duration = duration || sentence.length/8;
duration = duration || sentence.length/16;
var actions = [];
sentence = sentence.split('\n');
......
class Key extends GameObject {
step(dt, tfs){
if(this.collide(Player)){
var hole = this.getItem( Zone, { Name: 'Hole' } );
var hole = this.getItem( Zone, { Name: this.AttachedZone } );
this.startTime = tfs;
hole.animate( 'hideWall', function( progress ){
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