commit
ed97bc2232
4
game.js
4
game.js
@ -266,9 +266,7 @@ function Game(id,params){
|
||||
//获取对象列表
|
||||
Stage.prototype.getItemsByType = function(type){
|
||||
return this.items.filter(function(item){
|
||||
if(item.type==type){
|
||||
return item;
|
||||
}
|
||||
return item.type == type;
|
||||
});
|
||||
};
|
||||
//添加地图
|
||||
|
2
index.js
2
index.js
@ -926,7 +926,7 @@
|
||||
update:function(){
|
||||
var coord = this.coord;
|
||||
if(!coord.offset){
|
||||
if(this.control.orientation!='undefined'){
|
||||
if(typeof this.control.orientation != 'undefined'){
|
||||
if(!map.get(coord.x+_COS[this.control.orientation],coord.y+_SIN[this.control.orientation])){
|
||||
this.orientation = this.control.orientation;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user