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.
Fun is worth.
Posts made by COCO
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!
Unfortunately no, but the tools at the bottom of the topic are English.
为了方便广大用户, Colyseus 提供了初始化 NPM 脚本.
为了懒惰的我自己, 想出了一个在 Windows 平台上用鼠标右键菜单命令的办法来初始化 Colyseus 项目.
方法非常简单, 记录如下:
- 打开注册表编辑器 Regedit, 在
HKEY_CLASSES_ROOT\Directory\Background\shell
路径下, 新建项作为将来的命令名. 推荐使用英文, 可以带空格, 比如Colyseus
. 新建子项command
, 值为C:\Program Files\nodejs\npm init colyseus-app .
(前面是NodeJS的npm路径, 中间是 init colyseus-app, 后面是一个点).
- 在希望初始化 Colyseus 项目的路径下新建文件夹作为项目名, 进入新建的项目文件夹, 点击鼠标右键, 选择刚刚创建好的命令.
- 一开始需要选择服务器脚本类型, 回车默认 Typescript 即可. 等待命令完成, 项目就初始化好了, 是不是很神奇? (呕~~)
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
No. I think RedisPresence is the best way.
You don't need to run a Redis server, Arena will handle this for you.
You're right and you are welcome. ❤️