Navigation

    Colyseus
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. COCO
    COCO

    COCO

    @COCO

    Chat Follow Unfollow

    Fun is worth.

    7
    Reputation
    127
    Posts
    661
    Profile views
    3
    Followers
    1
    Following
    Joined Last Online
    Website colyseus.io Location China

    • Profile
    • More
      • Continue chat with COCO
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    COCO Follow

    Posts made by COCO

    RE: MapSchema, ArraySchema, SetSchema delete(index) is resetting the Array/Map/Set to zero

    Hello Jim!
    Sorry but I don't see any delete functions in ArraySchema.
    Try to delete an element of an array by delete array[index] or deleteByIndex(index) from ArraySchema.
    Best.

    posted in Questions & Help •
    代理 集群 服务发现 多核 堆 扩展

    (编辑中...)

    posted in 中文 •
    RE: Help in syncing player postion. (solved)

    Hi, bro!
    These should help you greatly. O(∩_∩)O
    https://github.com/colyseus/decentraland
    https://github.com/colyseus/tutorial-phaser
    https://colyseus-phaser-tutorial.glitch.me/

    Good luck!

    posted in Questions & Help •
    RE: localPresence not working on Powered Ascent (PA)(solved)

    Unfortunately no, but the tools at the bottom of the topic are English.

    posted in Colyseus Arena - Cloud Hosting •
    右键菜单 - 在此创建 Colyseus

    为了方便广大用户, Colyseus 提供了初始化 NPM 脚本.
    为了懒惰的我自己, 想出了一个在 Windows 平台上用鼠标右键菜单命令的办法来初始化 Colyseus 项目.
    方法非常简单, 记录如下:

    1. 打开注册表编辑器 Regedit, 在 HKEY_CLASSES_ROOT\Directory\Background\shell 路径下, 新建项作为将来的命令名. 推荐使用英文, 可以带空格, 比如 Colyseus. 新建子项 command, 值为 C:\Program Files\nodejs\npm init colyseus-app . (前面是NodeJS的npm路径, 中间是 init colyseus-app, 后面是一个点).
      0_1652268022681_1.png
    1. 在希望初始化 Colyseus 项目的路径下新建文件夹作为项目名, 进入新建的项目文件夹, 点击鼠标右键, 选择刚刚创建好的命令.
      0_1652268112788_2.png
    1. 一开始需要选择服务器脚本类型, 回车默认 Typescript 即可. 等待命令完成, 项目就初始化好了, 是不是很神奇? (呕~~)
      0_1652268256712_3.png
    posted in 中文 •
    RE: 游戏服务器与 CORS 跨域资源共享

    新版 Colyseus 内部默认使用了上述中间件, 本主题仅作为存档保留.

    posted in 中文 •
    RE: localPresence not working on Powered Ascent (PA)(solved)

    Please import RedisPresence from colyseus package, and replace your local presence (default) with redis presence.
    If you need some code, this is an example: https://github.com/CocosGames/ColyseusAudience/blob/master/src/arena.config.ts#L23
    Please note settings of old colyseus may have a little differences with the latest one.
    It's recommended that you test your project locally with redis presence and redis server before put it onto Arena.
    Here're some tools: https://discuss.colyseus.io/topic/589/再谈-redis-presence

    posted in Colyseus Arena - Cloud Hosting •
    RE: localPresence not working on Powered Ascent (PA)(solved)

    No. I think RedisPresence is the best way.
    You don't need to run a Redis server, Arena will handle this for you.

    posted in Colyseus Arena - Cloud Hosting •
    RE: localPresence not working on Powered Ascent (PA)(solved)

    Reported.

    posted in Colyseus Arena - Cloud Hosting •
    RE: deploy client project in arena(solved)

    @chaimae

    You're right and you are welcome. ❤️

    posted in Colyseus Arena - Cloud Hosting •