Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java でマルチプレイヤー ゲームを作成していますが、メイン サーバーに接続するクライアントがあります。現在、プレーヤーのゲームをJSON形式で保存しています。ファイル名はプレーヤーの名前と同じです。私はそれを行うべきであるより良い方法があるかどうか疑問に思っていました.
配列、ブール値、整数、および文字列を格納する必要があります。
ファイルは、プレイヤーがアイテムを拾うなど、ゲーム内で何かを変更するたびに保存されます。