You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
692 B
32 lines
692 B
import { GameMap } from '/static/js/game_map/base.js' |
|
import { Kyo } from './player/kyo.js'; |
|
|
|
|
|
class KOF{ |
|
constructor(id) { |
|
this.$kof = $('#' + id); |
|
this.gamemap = new GameMap(this); // root都是指kof对象 |
|
this.players = [ |
|
new Kyo(this,{ |
|
id: 0, |
|
x: 100, |
|
y: 0, |
|
width: 120, |
|
height: 200, |
|
color: 'blue', |
|
}), |
|
new Kyo(this,{ |
|
id: 1, |
|
x: 740, |
|
y: 0, |
|
width: 120, |
|
height: 200, |
|
color: 'red', |
|
}) |
|
] |
|
} |
|
} |
|
|
|
export { |
|
KOF, |
|
} |