简体   繁体   English

HTML5和Javascript Canvas游戏-如何使玩家保存游戏

[英]HTML5 & Javascript Canvas game - How to make it possible for the player to save their game

I am completely new to programming. 我是编程的新手。 I want to create a game using Javascript and the HTML5 canvases. 我想使用Javascript和HTML5画布创建游戏。 The game will be a stealth zombie game and I need to create a permanent storage of scores. 该游戏将是一个隐形僵尸游戏,我需要创建一个永久性的分数存储区。 I also need to make it possible for them to save at a checkpoint and load it back up at a later date - after the game/webpage has been refreshed. 我还需要使他们能够保存在检查点,并在以后刷新游戏/网页后将其加载回去。 How do I do that/what is the best way to do it? 我该怎么做/最好的方法是什么?

You can use a database for that. 您可以为此使用数据库。 If you don't have sql experience, I prefer you go with a nosql database such as Mongodb . 如果您没有sql的经验,那么我建议您使用nosql数据库,例如Mongodb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM