您通常可以通过 localStorage API 获得 5MB 的空间。如果您确实有一款带有声音/音乐的 3D 游戏,那么您的资产很快就会被消耗殆尽(现在的优质 mp3 有多大?)。您需要非常积极地压缩资源,并且很可能必须想出一种机制,在游戏运行时将内容传入和传出本地存储。
我想问为什么游戏服务器和数据库之间需要PHP。游戏服务器不能直接与数据库对话并为您节省一些工作吗?
祝你的项目好运。
You generally get 5MB of space with the localStorage API. If you really have a 3D game with sound/music, that's going to get eaten up really quickly by your assets (how big is a good-quality mp3 these days?). You'll need to be super aggressive with compressing your assets and most likely have to come up with a mechanism to stream stuff in and out of local storage while the game runs.
I would ask why you need PHP between the game server and the database. Can't the game server speak directly with the database and save you some work?
发布评论
评论(1)
您通常可以通过 localStorage API 获得 5MB 的空间。如果您确实有一款带有声音/音乐的 3D 游戏,那么您的资产很快就会被消耗殆尽(现在的优质 mp3 有多大?)。您需要非常积极地压缩资源,并且很可能必须想出一种机制,在游戏运行时将内容传入和传出本地存储。
我想问为什么游戏服务器和数据库之间需要PHP。游戏服务器不能直接与数据库对话并为您节省一些工作吗?
祝你的项目好运。
You generally get 5MB of space with the localStorage API. If you really have a 3D game with sound/music, that's going to get eaten up really quickly by your assets (how big is a good-quality mp3 these days?). You'll need to be super aggressive with compressing your assets and most likely have to come up with a mechanism to stream stuff in and out of local storage while the game runs.
I would ask why you need PHP between the game server and the database. Can't the game server speak directly with the database and save you some work?
Good luck with your project.