Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如果我做联网游戏,能不能设置进度保存读取
如果是要做成单机游戏常用的多存档栏位的那种,会把全部状态都保存的存档,那联网项目比单机项目做起来难太多,硬要做是可以的,但是不好做,不像单机项目一个动作就搞定了。
用存档组件可以保存在本地,但要自己设置需要保存的变量,如果数据很多就很麻烦了。建议把数据放数组里面,转数组为字符串,在保存为存档。