XverseRoom.js 395 B

1234567891011121314151617
  1. import JoyStick from "./JoyStick.js"
  2. import Xverse_Room from "./Xverse_Room.js"
  3. export default class XverseRoom extends Xverse_Room {
  4. constructor(e) {
  5. super(e);
  6. this.joyStick = new JoyStick(this)
  7. }
  8. afterJoinRoomHook() {
  9. this.joyStick.init({
  10. style: {
  11. width: "150px",
  12. height: "150px"
  13. }
  14. })
  15. }
  16. }